- 积分
- 15341
- 明经币
- 个
- 注册时间
- 2002-2-4
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2002-11-19 12:36:00
|
显示全部楼层
Sets the value of an AutoCAD system variable.
Sets the value of an AutoCAD system variable.
Signature
object.SetVariable Name, Value
Object Document
The object or objects this method applies to.
Name String; input-only
The name of the system variable to set.
Value Variant; input-only
The new value for the specified system variable.
Remarks
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 also 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 it is passed.
For a list of all AutoCAD system variables and their types, please refer to System Variables in the AutoCAD Command Reference. |
|