|
|
|
@ -88,23 +88,23 @@ namespace connor_zwcadm.commands
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KUtil.Log("plotData.TitleBlockName====" + plotData.TitleBlockName);
|
|
|
|
KUtil.Log("plotData.TitleBlockName====" + plotData.TitleBlockName);
|
|
|
|
if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4及portrait", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("portrait", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A4S.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A4S.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A4H.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A4H.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A3及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A3", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A3H.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A3H.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A2及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A2", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A2H.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A2H.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A1及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A1", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A1H.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A1H.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -127,23 +127,23 @@ namespace connor_zwcadm.commands
|
|
|
|
KUtil.Log("1111111111111111111");
|
|
|
|
KUtil.Log("1111111111111111111");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4及portrait", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("portrait", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A4S.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A4S.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A4H.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A4H.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A3及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A3", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A3H.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A3H.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A2及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A2", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A2H.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A2H.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A1及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A1", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A1H.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A1H.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -152,7 +152,6 @@ namespace connor_zwcadm.commands
|
|
|
|
psv.SetPlotConfigurationName(ps, "DWG to PDF.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "DWG to PDF.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
flag = false;
|
|
|
|
flag = false;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -161,23 +160,23 @@ namespace connor_zwcadm.commands
|
|
|
|
if (flag)
|
|
|
|
if (flag)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4及portrait", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("portrait", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A4S.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A4S.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A4H.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A4H.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A3及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A3", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A3H.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A3H.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A2及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A2", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A2H.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A2H.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A1及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A1", StringComparison.OrdinalIgnoreCase) >= 0 && plotData.TitleBlockName.IndexOf("landscape", StringComparison.OrdinalIgnoreCase) >= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
psv.SetPlotConfigurationName(ps, "A1H.pc5", null);
|
|
|
|
psv.SetPlotConfigurationName(ps, "A1H.pc5", null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|