找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1066|回复: 2

[讨论]:AutoCAD2005中的 acad-push-dbmod

[复制链接]

已领礼包: 593个

财富等级: 财运亨通

发表于 2004-9-3 12:21:57 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
;|(只读)
类型:整数
不保存

用位码指示图形的修改状态。该值是下列位码值之和:


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 数据库变量被修改都包括了哪些?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2004-9-3 13:40:22 | 显示全部楼层
儲存於:圖面--------資料庫變數 (ORTHOMODE)
儲存於:登錄--------非資料庫變數 (OSMODE)
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 604个

财富等级: 财运亨通

发表于 2013-7-16 08:54:42 | 显示全部楼层
这个好象highflybir有所研究,实在是搞不懂,帮你顶一下。希望有看到高手们讨论:D
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-9-25 10:30 , Processed in 0.197003 second(s), 36 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表