Saved 属性 (ActiveX)
指定文档是否有任何未保存的更改。 支持的平台:仅限 Windows 属性值只读:是的 类型:布尔
言论没有其他评论。 例子VBA: 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 可视化 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, 2024-12-15 12:51
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.