Table of Contents

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__

.NET

def __init__(self, name: str) -> None

Makes an empty section.

Properties and fields

Name

.NET

@property
def Name(self) -> str

Gets the header between the brackets.

Pairs

.NET

@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

.NET

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

.NET

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.