Sets the value of an AutoCAD system variable.
See Also | Example
object.SetVariable Name, Value
The object or objects this method applies to.
The name of the system variable to set.
The new value for the specified system variable.
When setting system variables, AutoCAD may require integers, text, or double values. Passing the wrong data type (for example, passing a variant of type double when an integer is required) will generate an error. The easiest way to avoid this is to use one of the Cxxx functions, such as CInt(), to explicitly type your data before passing it.
For a list of all AutoCAD system variables and their types, please refer to "System Variables" in the AutoCAD Command Reference.