Method SetVariable
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
namestringThe name, letters of either case alike.
valueobjectAn 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.