main
李建辉 1 month ago
parent 8938e09ab7
commit a66c9b929e

@ -88,13 +88,29 @@ namespace connor_zwcadm.commands
try
{
KUtil.Log("plotData.TitleBlockName====" + plotData.TitleBlockName);
if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("portrait", StringComparison.OrdinalIgnoreCase) >= 0)
if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4及portrait", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "DWG to PDF.pc5", null);
psv.SetPlotConfigurationName(ps, "A4S.pc5", null);
}
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "A4H.pc5", null);
}
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A3及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "A3H.pc5", null);
}
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A2及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "A2H.pc5", null);
}
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A1及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "A1H.pc5", null);
}
else
{
psv.SetPlotConfigurationName(ps, "DWG to PDF横向.pc5", null);
psv.SetPlotConfigurationName(ps, "DWG to PDF.pc5", null);
}
psv.RefreshLists(ps);
StringCollection medlist = psv.GetCanonicalMediaNameList(ps);
@ -111,17 +127,32 @@ namespace connor_zwcadm.commands
KUtil.Log("1111111111111111111");
if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("portrait", StringComparison.OrdinalIgnoreCase) >= 0)
if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4及portrait", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "A4S.pc5", null);
}
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "A4H.pc5", null);
}
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A3及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "A3H.pc5", null);
}
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A2及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "DWG To PDF.pc5", medlist[j]);
psv.SetPlotConfigurationName(ps, "A2H.pc5", null);
}
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A1及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "A1H.pc5", null);
}
else
{
psv.SetPlotConfigurationName(ps, "DWG to PDF横向.pc5", medlist[j]);
psv.SetPlotConfigurationName(ps, "DWG to PDF.pc5", null);
}
flag = false;
break;
}
@ -130,14 +161,29 @@ namespace connor_zwcadm.commands
if (flag)
{
if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("portrait", StringComparison.OrdinalIgnoreCase) >= 0)
if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4及portrait", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "DWG To PDF.pc5", plotData.MediaName);
psv.SetPlotConfigurationName(ps, "A4S.pc5", null);
}
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A4及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "A4H.pc5", null);
}
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A3及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "A3H.pc5", null);
}
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A2及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "A2H.pc5", null);
}
else if (!string.IsNullOrEmpty(plotData.TitleBlockName) && plotData.TitleBlockName.IndexOf("A1及landscape", StringComparison.OrdinalIgnoreCase) >= 0)
{
psv.SetPlotConfigurationName(ps, "A1H.pc5", null);
}
else
{
psv.SetPlotConfigurationName(ps, "DWG to PDF横向.pc5", plotData.MediaName);
psv.SetPlotConfigurationName(ps, "DWG to PDF.pc5", null);
}
}

Loading…
Cancel
Save