PlotToDevice Method

Plots a layout to a device.

See Also | Example


RetVal = object.PlotToDevice [plotConfig]


The object or objects this method applies to.


String; input-only; optional
The full path and file name of the PC3 file to use instead of the current configuration. If this parameter is not provided, the current configuration will be used. If the configuration file is not found at the specified path, AutoCAD will search the printer configuration path for the file before it defaults to the current configuration.



TRUE: The plot was successfully sent to the device.

FALSE: The plot was not sent to the device. There was either a plot process failure or the plot was cancelled.


The drawing from which the plot is initiated must be active for the plot to succeed.

To plot in the foreground using VBA, you must set the BACKGROUNDPLOT system variable to 0. Otherwise, plotting occurs in the background.

The plot device is specified using the ConfigName property for the layout or plot configuration.

If the PC3 file specified or the current plot configuration contains plot-to-file information, this method may actually send the plot to a file instead of to a device. Be careful to review all current plot configuration information for the specified layout. To plot several layouts, you can use the SetLayoutsToPlot method before invoking the PlotToDevice method.

To create a new configured plotter (PC3) file, use the Add-a-Plotter wizard in AutoCAD. For more information about PC3 files, see "Set Up Plotters and Printers" in the AutoCAD Driver and Peripheral Guide.