79735968

Date: 2025-08-14 23:16:13
Score: 2
Natty:
Report link

In AutoCAD’s COM API, Layout.SetCustomScale(1, 0.2) may not apply as expected when plotting directly to PDF because the plot settings must be applied to the active layout’s PlotConfiguration and saved before plotting. You should call doc.ActiveLayout = layout, then use layout.StandardScale = 0 (Custom), set CustomScaleNumerator and CustomScaleDenominator instead of SetCustomScale, and finally doc.Regen(1) before PlotToFile to ensure the custom scale is honored.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Martin P