- UID
- 14
- 积分
- 8264
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-4
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
;|(只读)
类型:整数
不保存
用位码指示图形的修改状态。该值是下列位码值之和:
1 对象数据库被修改
4 数据库变量被修改
8 窗口被修改
16 视图被修改
32 字段被修改
保存图形时,DBMOD 的值被重置为 0。
|;
;;Stores the current value of the DBMOD system variable
(acad-push-dbmod)
;;This function is used with acad-pop-dbmod to control the DBMOD system variable.
;;You can use this function to change a drawing without changing the DBMOD system
;;variable. The DBMOD system variable tracks changes to a drawing and triggers
;;save-drawing queries.
;;This function is implemented in acapp.arx, which is loaded by default.
;;This function pushes the current value of the DBMOD system variable onto
;;an internal stack. To use acad-push-dbmod and acad-pop-dbmod, precede operations
;;with acad-push-dbmod and then use acad-pop-dbmod to restore the original value of
;;the DBMOD system variable.
;;Return Values
;;Always returns T.
;;Examples
;;The following example shows how to store the modification status of a drawing,
;;change the status, and then restore the original status.
(acad-push-dbmod)
(setq new_line '((0 . "LINE") (100 . "AcDbEntity") (8 . "0")
(100 . "AcDbLine") (10 1.0 2.0 0.0) (11 2.0 1.0 0.0)
(210 0.0 0.0 1.0)))
(entmake new_line) ; Set DBMOD to flag 1
(command "_color" "2") ; Set DBMOD to flag 4
(command "_-vports" "_SI") ; Set DBMOD to flag 8
(command "_vpoint" "0,0,1") ; Set DBMOD to flag 16
(acad-pop-dbmod)
;;acad-pop-dbmod
;;Restores the value of the DBMOD system variable to the value that was
;;most recently stored with acad-push-dbmod
(acad-pop-dbmod)
;;This function is used with acad-push-dbmod to control the DBMOD system
;;variable. The DBMOD system variable tracks changes to a drawing and
;;triggers save-drawing queries.
;This function is implemented in acapp.arx, which is loaded by default.
;;This function pops the current value of the DBMOD system variable off
;;an internal stack.
;;Return Values
;;Returns T if successful; otherwise, if the stack is empty, returns nil.
问题:4 数据库变量被修改都包括了哪些? |
|