指定文档是否有任何未保存的更改。 支持的平台:仅窗口 属性值只读:是的 类型:布尔
言论没有额外的评论。 例子工 务 局: Sub Example_Saved() ' This example checks to see if the current drawing has been modified. If Not ThisDrawing.Saved Then MsgBox "Drawing has been modified! Use the Save or SaveAs method to save the drawing.", , "Saved Example" Else MsgBox "Drawing has not been modified since the last save.", , "Saved Example" End If End Sub Visual LISP: (defun c:Example_Saved() ;; This example checks to see if the current drawing has been modified. (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) (if (= (vla-get-Saved doc) :vlax-false) (alert "Drawing has been modified! Use the Save or SaveAs method to save the drawing.") (alert "Drawing has not been modified since the last save.") ) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:18
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.