Posts: 15
Registered: ‎08-05-2008
Message 1 of 2 (187 Views)

Accessing A Custom Plot Configuration Property Through Code

187 Views, 1 Replies
12-05-2012 10:58 AM

Hello, I'll keep this simple. Does anyone know how to access and get/set the "Open in PDF viewer when done" checkbox on the "DWG To PDF Properties" dialog, via code?




Posts: 157
Registered: ‎09-15-2011
Message 2 of 2 (169 Views)

Re: Accessing A Custom Plot Configuration Property Through Code

12-05-2012 11:58 AM in reply to: tracer123

The option “Open in PDF viewer when done” is stored on the AutoCAD plotter configuration file (PC3). When you check or uncheck this checkbox, and hit OK, it will save the info back to the file DWG To PDF.pc3.

I don’t see the .NET API that can modify a PC3 file. We may try to look to import from ObjectARX SDK. The class PlotSettings and PlotConfig also do not have the “open file” option. We can use the PC3 file with method PlotSettingsValidator.SetPlotConfigurationName(plotSettings, plotConfigurationName, canonicalMediaName).

The plotConfigurationName is the name of PC3 file to use (plotConfigurationName = “DWG To PDF.pc3”). You can create another PC3 file copied from the original DWG To PDF.pc3 file with the saved unchecked “Open in PDF viewer when done” option.

Kean’s code presents how to plot a window using a PC3 file.


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community