获取视区的当前活动状态。 支持的平台:仅窗口 属性值只读:是的 类型:布尔
言论没有额外的评论。 例子工 务 局: 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
Visual 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-29 11:10
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.