ReadOnly 属性 (ActiveX)
指定文档或属性是只读的还是读写的。 支持的平台:仅限 Windows 属性值只读:是的 类型:布尔
言论没有其他评论。 例子VBA: Sub Example_ReadOnly() ' This example shows if current drawing file is read only or not If ThisDrawing.ReadOnly Then MsgBox "The current drawing file is read only.", , "ReadOnly Example" Else MsgBox "The current drawing file is read-write.", , "ReadOnly Example" End If End Sub 可视化 LISP: (vl-load-com) (defun c:Example_ReadOnly() ;; This example shows if current drawing file is read only or not (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) (if (= (vla-get-ReadOnly doc) :vlax-true) (alert "The current drawing file is read only.") (alert "The current drawing file is read-write.") ) ) |
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-3-14 05:56
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.