CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 2024 开发者帮助

SelectionChanged 事件 (ActiveX)

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

SelectionChanged 事件 (ActiveX)

在当前 pickfirst 选择集更改时触发。

支持的平台:仅限 Windows

签名

VBA:

object.SelectionChanged()
对象

类别: 文档

计算结果为有效容器对象的对象表达式。在这种情况下,唯一有效的容器是文档。

言论

显示模式对话框时不会触发任何事件。

例子

VBA:

Private Sub AcadDocument_SelectionChanged()
    ' This example intercepts a drawing SelectionChanged event.
    '
    ' This event is triggered when the current selection set in a drawing is modified.
    '
    ' To trigger this example event: Select or deselect objects in any open drawing

    MsgBox "The selection set in a drawing was just changed!"
End Sub

可视化 LISP:

Not available

路过

雷人

握手

鲜花

鸡蛋

最新评论

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

GMT+8, 2025-3-28 16:38

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部