Table of Contents

Class CadParameters

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

The parameters of a drawing as AutoCAD 2021's Parameters Manager works with them: the names of the dimensional constraints (d1, rad1, ang1) and the user parameters, each with an expression and the value it comes to. A parameter's expression may name others (d1=2d2, up1=d12+3); changing one moves the objects its constraints hold, as AutoCAD 2021 does, and each change is one undo step. The palette and -PARAMETERS both work through these.

public static class CadParameters
Inheritance
CadParameters
Inherited Members

Methods

Delete(CadDocument, string)

Deletes a user parameter that no expression and no constraint uses.

Edit(CadDocument, string, string)

Gives a parameter a new expression: the objects its constraints hold move to meet the value it comes to.

New(CadDocument, string, string)

Makes a user parameter.

Rename(CadDocument, string, string)

Renames a parameter, in the expressions that name it and the words of its dimensions too.

Rows(CadDocument)

The parameters of the working space, in the order the drawing keeps them.