acad-plot-publish
Installation
SKILL.md
AutoCAD Plotting and Publishing
Use this skill when plotting layouts to printers or files (PDF, DWF, PLT), configuring plot devices and paper sizes, managing named page setups, batch publishing multiple sheets, displaying plot progress, or reacting to plot events.
PlotSettings and PlotSettingsValidator
Every Layout inherits from PlotSettings. Use PlotSettingsValidator to modify plot parameters on a layout or standalone PlotSettings object.
Configuring a Layout for Plotting
using (Transaction tr = db.TransactionManager.StartTransaction())
{
Layout layout = (Layout)tr.GetObject(layoutId, OpenMode.ForWrite);
PlotSettingsValidator psv = PlotSettingsValidator.Current;
// Always refresh after opening or changing device
psv.RefreshLists(layout);