指定文档或属性是只读还是读写。 支持的平台:仅窗口 属性值只读:是的 类型:布尔
言论没有额外的评论。 例子工 务 局: 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
Visual 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-10-30 12:44
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.