Table of Contents

Method SetVariable

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

SetVariable(string, object)

Sets a system variable of the drawing as AutoLISP's setvar does; one the drawing keeps is an undo step of the app, SETVAR.

public void SetVariable(string name, object value)

Parameters

name string

The name, letters of either case alike.

value object

An int, a double, a string, or a double[] of two or three coordinates.

Exceptions

ArgumentNullException

Thrown when the name or the value is null.

ArgumentException

Thrown when the value is of another type.

CadRemoteException

Thrown when the drawing is closed, the app has no variable of that name, it is read only, or it refuses the value.