Method GetVariable
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
GetVariable(string)
Gets the value of a system variable 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, of two for a variable AutoCAD keeps as a 2D point (SNAPBASE).
A variable is the drawing's own: another drawing has its own value.
public object GetVariable(string name)
Parameters
namestringThe name, letters of either case alike.
Returns
- object
The value.
Exceptions
- ArgumentNullException
Thrown when the name is null.
- ArgumentException
Thrown when the presenter has no variable of that name.