LayoutSwitched 事件 (ActiveX)
在用户切换到其他布局后触发。 支持的平台:仅限 Windows 签名VBA: object.LayoutSwitched(LayoutName)
言论显示模式对话框时不会触发任何事件。 例子VBA: Private Sub AcadDocument_LayoutSwitched(ByVal LayoutName As String) ' This example intercepts a drawing LayoutSwitched event. ' ' This event is triggered when the user switches to a different ' drawing layout view. ' ' To trigger this example event: Open a drawing and change its layout view ' ' For example: Switch the drawing from Model view to Layout1 view ' Use the "LayoutName" variable to determine the which layout view we changed to MsgBox "The drawing layout was just changed to: " & LayoutName End Sub 可视化 LISP: Not available |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2024-12-15 11:34
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.