- UID
- 1
- 积分
- 16111
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-3
- 最后登录
- 1970-1-1
|
发表于 2002-8-12 19:52:46
|
显示全部楼层
最初由 江山 发布
[B]请问acedSetVar()函数格式?Thanks. [/B]
int
acedSetVar(
const char* sym,
const struct resbuf* val);
Include File
acedads.h
Sets the AutoCAD system variable specified by sym to the value contained in the result buffer val. The sym string must contain a valid system variable name (the case of the characters is not significant). The val argument must point to a result buffer, because the system variables consist of a variety of types. The result buffer must be initialized and must contain a valid result type code and value that correspond to the type and values allowed for the specified system variable.
AutoCAD system variables that take integer values are 16-bit short integers. The value supplied in the val->resval.rint field of the result buffer must be between -32,768 and +32,767.
Some AutoCAD commands inspect the values of system variables before they prompt the user. If the application calls acedSetVar() while such a command is in progress, the new value may not become current until the command has completed its execution.
This function is the complement of the acedGetVar() function.
If acedSetVar() succeeds, it returns RTNORM; otherwise, it returns an error code. When acedSetVar() fails, it sets the system variable ERRNO to a value that indicates the reason for the failure. |
|