CadDsdSection
from OpenCAD2D import CadDsdSection
class CadDsdSection(System.Object) ยท CadDsdSection in the .NET reference
One section of a sheet list file: its header, as Target or DWF6Sheet:plan-level2-Layout1, and its key=value lines in order.
Constructors
__init__
def __init__(self, name: str) -> None
Makes an empty section.
Properties and fields
Name
@property
def Name(self) -> str
Gets the header between the brackets.
Pairs
@property
def Pairs(self) -> System.Collections.Generic.IReadOnlyList[System.Collections.Generic.KeyValuePair[str, str]]
Gets the lines in the order of the file.
Methods
Get
def Get(self, key: str) -> str
Gets the value of a key, letters of either case the same; the last line of the key counts.
Set
def Set(self, key: str, value: str) -> None
Sets the value of a key where the section has it, in place, else adds the line at the end.