Table of Contents

CadPlotJob

from OpenCAD2D import CadPlotJob

class CadPlotJob(System.Object) ยท CadPlotJob in the .NET reference

A plot a command hands to the window (CadUiRequestEventArgs.Plot): the space, how it is plotted, what the view showed when it was asked, and, from -PLOT, the file to write. PLOT and PAGESETUP hand one to their dialog, which asks for a window on the canvas by CadPlotJob.PicksWindow, as the Window< button of AutoCAD's Plot dialog does.

Constructors

__init__

.NET

def __init__(self, space: CadSpace, settings: CadPlotSettings, display: DisplayBox, fileName: str) -> None

Makes a plot to hand to the window.

Properties and fields

AsksFile

.NET

@property
def AsksFile(self) -> bool
@AsksFile.setter
def AsksFile(self, value: bool) -> None

Gets or sets whether the dialog's OK left the file to the command, as with FILEDIA 0: the command then asks "Enter file name <plan-level2-Model.png>:" and has the plot written to the file named, as -PLOT does.

Display

.NET

@property
def Display(self) -> DisplayBox

Gets what the view showed, in drawing units, for a plot of the display; empty for none.

FileName

.NET

@property
def FileName(self) -> str | None

Gets the file to write, from -PLOT; null where the window asks for one.

PicksWindow

.NET

@property
def PicksWindow(self) -> bool
@PicksWindow.setter
def PicksWindow(self, value: bool) -> None

Gets or sets whether the dialog closed to have a window picked on the canvas: the command then asks "Specify first corner:" and "Specify opposite corner:", sets the window as the area plotted, and shows the dialog again.

Settings

.NET

@property
def Settings(self) -> CadPlotSettings
@Settings.setter
def Settings(self, value: CadPlotSettings) -> None

Gets or sets how it is plotted: a dialog that asks for a window sets what it shows here, to be shown again after.

Space

.NET

@property
def Space(self) -> CadSpace

Gets the space plotted.