Table of Contents

CadMakeArgs

from OpenCAD2D import CadMakeArgs

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

The arguments of one CadMake.Run call: names with a text, a number, a yes or no, a list of texts, a list of numbers or a table of texts, which the app's Remote channel carries as JSON and a drawing worked on in this process takes as they are.

Constructors

__init__

def __init__(self) -> None

Properties and fields

Values

.NET

@property
def Values(self) -> System.Collections.Generic.IReadOnlyDictionary[str, Any]

Gets the arguments set, by name.

Methods

Flag

.NET

def Flag(self, name: str, fallback: bool = ...) -> bool

Gets a yes or no; the fallback where the argument is not given.

Number

.NET

def Number(self, name: str) -> float | None

Gets a number; null where the argument is not given.

Numbers

.NET

def Numbers(self, name: str) -> System.Collections.Generic.IReadOnlyList[float]

Gets a list of numbers; an empty list where the argument is not given.

Rows

.NET

def Rows(self, name: str) -> System.Collections.Generic.IReadOnlyList[System.Array[str]]

Gets a table of texts, row by row; an empty table where the argument is not given.

Set

.NET

def Set(self, name: str, value: object) -> CadMakeArgs

Sets an argument: a String, a Double, a Boolean, a string[], a double[] or a string[][]; null leaves it out.

Text

.NET

def Text(self, name: str, fallback: str | None = ...) -> str

Gets a text; the fallback where the argument is not given.

Texts

.NET

def Texts(self, name: str) -> System.Collections.Generic.IReadOnlyList[str]

Gets a list of texts; an empty list where the argument is not given.