CadDrawingPropertiesRequest
from OpenCAD2D import CadDrawingPropertiesRequest
class CadDrawingPropertiesRequest(System.Object) ยท CadDrawingPropertiesRequest in the .NET reference
The Drawing Properties dialog of DWGPROPS, as data its command and the window share. The Summary tab's texts and the custom properties are the drawing's DxfDatabase.SummaryInfo as the dialog has them, written back on OK as one undo step; the General tab (the file) and the Statistics tab (made, saved, edited) are shown as text and never written. A drawing of R2004 or later keeps the properties in its header, an older one in its DWGPROPS record, as AutoCAD saves them, and a DWG written by the presenter keeps them too.
Properties and fields
Action
@property
def Action(self) -> CadDialogAction
@Action.setter
def Action(self, value: CadDialogAction) -> None
Gets or sets what the dialog was closed with; Cancel until set.
Author
@property
def Author(self) -> str
@Author.setter
def Author(self, value: str | None) -> None
Gets or sets the author (Summary tab).
Comments
@property
def Comments(self) -> str
@Comments.setter
def Comments(self, value: str | None) -> None
Gets or sets the comments (Summary tab); one line, as a group of DXF holds one.
CustomProperties
@property
def CustomProperties(self) -> System.Collections.Generic.List[System.Collections.Generic.KeyValuePair[str, str]]
Gets the custom properties (Custom tab), each a name and a value in the order the drawing keeps them. Rows with no name and no value are left out on OK; a name two rows share, letters of either case the same, is refused.
FileName
@property
def FileName(self) -> str
Gets the name of the file without its folder, or "Drawing" where the drawing has none.
General
@property
def General(self) -> System.Collections.Generic.IReadOnlyList[System.Collections.Generic.KeyValuePair[str, str]]
Gets the rows of the General tab: Type, Location, Size, Created, Modified and Accessed of the file, as the file system gives them; Type alone where the drawing has no file yet.
HyperlinkBase
@property
def HyperlinkBase(self) -> str
@HyperlinkBase.setter
def HyperlinkBase(self, value: str | None) -> None
Gets or sets the base of the drawing's relative hyperlinks (Summary tab).
IsHidden
@property
def IsHidden(self) -> bool
Gets whether the file is hidden (the General tab's check box, greyed); false where there is no file.
IsReadOnly
@property
def IsReadOnly(self) -> bool
Gets whether the file is read-only (the General tab's check box, greyed); false where there is no file.
Keywords
@property
def Keywords(self) -> str
@Keywords.setter
def Keywords(self, value: str | None) -> None
Gets or sets the keywords (Summary tab).
Statistics
@property
def Statistics(self) -> System.Collections.Generic.IReadOnlyList[System.Collections.Generic.KeyValuePair[str, str]]
Gets the rows of the Statistics tab: Created, Modified, Last saved by, Revision number and Total editing time, from the header ($TDCREATE, $TDUPDATE, $TDINDWG) and the properties; a date the header lacks is empty.
Subject
@property
def Subject(self) -> str
@Subject.setter
def Subject(self, value: str | None) -> None
Gets or sets the subject (Summary tab).
Title
@property
def Title(self) -> str
@Title.setter
def Title(self, value: str | None) -> None
Gets or sets the title (Summary tab).
WindowTitle
@property
def WindowTitle(self) -> str
Gets the title of the window: the name of the file and "Properties", as AutoCAD writes Plan.dwg Properties.
Methods
TryBuild
def TryBuild(self) -> tuple[bool, DxfDatabaseSummaryInfo, str]
Makes the properties the dialog stands for: the texts and custom properties as they are now, the drawing's last-saved-by and revision number kept as they were.