StatusID 属性 (ActiveX)
获取视口的当前活动状态。 支持的平台:仅限 Windows 属性值只读:是的 类型:布尔
言论没有其他评论。 例子VBA: Sub Example_StatusID()
' This example displays the setting of StatusID.
Dim currStatusID As Boolean
' Display the current setting of statusID
currStatusID = ThisDrawing.Application.statusID(ThisDrawing.ActiveViewport)
MsgBox "The statusID of the active viewport is: " & currStatusID, , "StatusID Example"
End Sub
可视化 LISP: (vl-load-com)
(defun c:Example_StatusID()
;; This example displays the setting of StatusID.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
;; Display the current setting of statusID
(setq currStatusID (vla-get-statusID acadObj (vla-get-ActiveViewport doc)))
(alert (strcat "The statusID of the active viewport is: " (if (= currStatusID :vlax-true) "True" "False")))
)
|
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-10-31 02:45
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.