CadDsdFile
from OpenCAD2D import CadDsdFile
class CadDsdFile(System.Object) ยท CadDsdFile in the .NET reference
A sheet list file, the .dsd (Drawing Set Description) of AutoCAD's Publish: a text file of the INI kind that keeps the sheets of the Publish dialog and where they go. It is read and written as plain sections, so that what a list holds beyond what this program knows, such as AutoCAD's [PdfOptions], comes back out as it went in. CadPublishList.Load and CadPublishList.Save turn it into sheets and options.
Constructors
__init__
def __init__(self) -> None
Properties and fields
Sections
@property
def Sections(self) -> System.Collections.Generic.IList[CadDsdSection]
Gets the sections in the order of the file.
Methods
Find
def Find(self, name: str) -> CadDsdSection
Finds a section by its header, letters of either case the same.
Parse
@staticmethod
def Parse(text: str) -> CadDsdFile
Reads the text of a sheet list. A line before the first header, and a line that is no key=value, is passed over; a blank line and one that begins with a semicolon are too.
Read
@staticmethod
def Read(path: str) -> CadDsdFile
Reads a sheet list file.
ToText
def ToText(self) -> str
Gets the text of the list, CRLF lines, the sections in order and a line each.
Write
def Write(self, path: str) -> None
Writes the list to a file, replacing a file of the name.