Table of Contents

CadPublishOptions

from OpenCAD2D import CadPublishOptions

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

What the Publish dialog sets besides the list of sheets: where they go, one PDF or a PDF each, the number of copies, the folder and the name of the PDF, which sheets are listed when a drawing is added, and what is done once it is published. A sheet list file (.dsd) keeps the first five and Open in viewer (see CadDsdFile); Publish in background is a box that does nothing here, as every publish runs at once.

Constructors

__init__

def __init__(self) -> None

Properties and fields

Copies

.NET

@property
def Copies(self) -> int
@Copies.setter
def Copies(self, value: int) -> None

Gets or sets the number of copies, 1 to 99, printed of each sheet that goes to a printer; a PDF has one.

CreateBookmarks

.NET

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

Gets or sets AutoCAD's Create bookmarks: each PDF written carries an outline, a bookmark Sheets and Views with a bookmark under it for each page, named as the sheet is in the list, that goes to the page. False until set; a sheet list file does not keep it. The sheets of a sheet set are published with it on.

FileName

.NET

@property
def FileName(self) -> str
@FileName.setter
def FileName(self, value: str | None) -> None

Gets or sets the name of the multi-sheet PDF, with or without .pdf, and with a folder where it is not the output folder; empty for the name of the first drawing listed, as plan-level2.pdf for plan-level2.dxf.

.NET

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

Gets or sets AutoCAD's Include hyperlinks for the sheets of the list: the hyperlinks of the objects plotted become links of the PDF (CadPlotSettings.PdfHyperlinks). False until set; a sheet list file does not keep it.

IncludeLayouts

.NET

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

Gets or sets AutoCAD's Include Layouts when adding sheets: true until set.

IncludeModel

.NET

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

Gets or sets AutoCAD's Include Model when adding sheets: true until set.

MultiSheet

.NET

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

Gets or sets whether a PDF is one file of a page for each sheet (the multi-sheet file of AutoCAD) rather than a file for each sheet; true until set. Sheets plotted as the plotter of their page setup is a printer are not in the file.

OpenInViewer

.NET

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

Gets or sets AutoCAD's Open in viewer when done: each PDF written is opened in the program Windows gives its type.

OutputFolder

.NET

@property
def OutputFolder(self) -> str
@OutputFolder.setter
def OutputFolder(self, value: str | None) -> None

Gets or sets the folder the PDFs are written to, AutoCAD's Default output location; empty for the folder of the first drawing listed that has a file, else Documents.

PublishInBackground

.NET

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

Gets or sets AutoCAD's Publish in background. The box is kept and does nothing: a publish here runs at once and ends with its report.

PublishTo

.NET

@property
def PublishTo(self) -> CadPublishTo
@PublishTo.setter
def PublishTo(self, value: CadPublishTo) -> None

Gets or sets where the sheets go; CadPublishTo.Pdf until set.

Methods

Clone

.NET

def Clone(self) -> CadPublishOptions

Makes a copy that changes apart from this one.