Table of Contents

Method GetVariable

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

GetVariable(string)

Gets the value of a system variable of the drawing as AutoLISP's getvar gives it: an int for a whole number or a switch, a double for a real (an angle in radians), a string for a text and a double[] of three coordinates for a point, two for a variable AutoCAD keeps as a 2D point.

public object GetVariable(string name)

Parameters

name string

The name, letters of either case alike.

Returns

object

The value.

Exceptions

ArgumentNullException

Thrown when the name is null.

CadRemoteException

Thrown when the drawing is closed or the app has no variable of that name.