CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 2023 开发者帮助

LayoutSwitched 事件 (ActiveX)

2024-5-18 18:58| 发布者: admin| 查看: 308| 评论: 0|原作者: admin|来自: AutoCAD

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

路过

雷人

握手

鲜花

鸡蛋

最新评论

群   号:715888130

【 京东配送 正版图书 】 大语言模型开发:用开源模型开发本地 范煜 著 清华大学出版社 9787302670513

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1   苏公网安备32011402011833)

GMT+8, 2025-9-17 13:47

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部