CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 文档中心

vlr-xref-reactor (AutoLISP/ActiveX)

2023-1-7 08:18| 发布者: admin| 查看: 394| 评论: 0|来自: AutoCAD

摘要: 构造一个编辑器反应器对象,该对象通知与附着或修改外部参照相关的事件

构造一个编辑器反应器对象,该对象通知与附着或修改外部参照相关的事件

支持的平台:仅窗口

签名

(vlr-xref-reactor data callbacks)
数据

类型:整数、实数、字符串、列表、VLA 对象、安全数组、变体、T 或 nil

要与反应器对象关联的任何 AutoLISP 数据;否则,如果没有数据。nil

回调

类型:列表

以下形式的对列表:

(事件名称 。callback_function)

  • 事件名称是以下外部参照反应器事件之一:

    外部参照反应器事件

    事件名称

    描述

    :VLR-开始附加

    即将附加外部参照。

    :VLR-其他附加

    正在将外部参照添加到图形数据库中。此事件发生在克隆对象之后,但在任何转换之前。此回调函数紧随其后发送,但仅在外部参照连接过程中发生。beginDeepCloneXlation notification

    :VLR-中止附加

    外部参照附着操作在成功完成之前已终止。

    :VLR-endAttach

    外部参照附着操作已成功完成。

    :VLR重定向

    正在修改外部参照图形中的对象 ID,以指向正在参照的图形中的关联对象。

    :VLR通信

    对象的对象 ID 将追加到要外部参照的图形的符号表中。

    :VLR-开始恢复

    即将解析现有外部参照(通常在加载具有外部参照的图形时)。

    :VLR-中止恢复

    外部参照卸载或重新加载在成功完成之前已终止。

    :VLR-endRestore

    已解析现有外部参照(通常在具有外部参照的图形完成加载时)。

    :VLR-xrefSubcommandBindItem

    已调用外部参照的 BIND 子命令,或者正在绑定预先存在的外部参照。

    注意:BIND 子命令是交互式的,可触发多个事件。

    :VLR-xrefSubcommandAttachItem

    已调用外部参照的 ATTACH 子命令,或者正在解析先前存在的外部参照。

    注意:附加子命令是交互式的,可触发多个事件。

    :VLR-外部参照子命令覆盖项

    已调用外部参照的叠加子命令,或者正在解析预先存在的外部参照。

    注意:OVERLAY 子命令是交互式的,可触发多个事件。

    :VLR-xrefSubcommandDetachItem

    外部参照的 DETACH 子命令被调用。

    注意:DETACH 子命令是交互式的,可触发多个事件。

    :VLR-xrefSubcommandPathItem

    外部参照的 PATH 子命令被调用。

    Note: The PATH subcommand is interactive and triggers multiple events.

    :VLR-xrefSubcommandReloadItem

    The RELOAD subcommand of XREF was invoked, or a preexisting xref is being reloaded.

    Note: The RELOAD subcommand is interactive and triggers multiple events.

    :VLR-xrefSubcommandUnloadItem

    The UNLOAD subcommand of XREF was invoked, or a preexisting xref is being unloaded.

  • callback_function is a symbol representing a function to be called when the event fires. Each callback function accepts two arguments:

    reactor_object -- The VLR object that called the callback function.

    list -- A list of extra data elements associated with the particular event. The contents of this list for particular events are shown in the “XREF reactor callback data” table.

    XREF reactor callback data

    Name

    List length

    Parameters

    :VLR-beginAttach

    3

    First parameter is a VLA-object pointing to the target drawing database.

    Second parameter is a string containing the file name of the xref being attached.

    Third parameter is a VLA-object pointing to the drawing database that contains the objects being attached.

    :VLR-otherAttach

    2

    First parameter is a VLA-object pointing to the target drawing database.

    Second parameter is a VLA-object pointing to the drawing database that contains the objects being attached.

    :VLR-abortAttach

    1

    A VLA-object pointing to the drawing database that contains the objects being attached.

    :VLR-endAttach

    1

    A VLA-object pointing to the target drawing database.

    :VLR-redirected

    2

    First parameter is an integer containing the object ID for the redirected symbol table record (STR) in the drawing being referenced.

    Second parameter is an integer containing the object ID for the object in the xref drawing.

    :VLR-comandeered

    3

    First parameter is a VLA-object pointing to the database receiving the xref.

    Second parameter is an integer containing the object ID of the object being commandeered.

    Third parameter is a VLA-object pointing to the drawing database that contains the objects being attached.

    :VLR-beginRestore

    3

    First parameter is a VLA-object pointing to the database receiving the xref.

    Second parameter is a string containing the xref block table record (BTR) name.

    Third parameter is a VLA-object pointing to the drawing database that contains the objects being attached.

    :VLR-abortRestore

    :VLR-endRestore

    1

    A VLA-object pointing to the target drawing database.

    :VLR-xrefSubcommandBindItem

    2

    First parameter is an integer indicating the activity the BIND is carrying out. Possible values are

    0 -- BIND subcommand invoked.

    2 -- xref with the indicated object ID is being bound.

    3 -- xref with the indicated object ID was successfully bound.

    4 -- BIND subcommand completed.

    5 -- BIND operation is about to either terminate or fail to complete on the specified object ID.

    6 -- BIND operation has either terminated or failed to complete on the specified object ID.

    7 -- Sent for an XDep block bound by XBind.

    8 -- Sent for all other symbols: Layers, Linetypes, TextStyles, and DimStyles.

    Second parameter is an integer containing the object ID of the xref being bound, or 0 if not applicable.

    :VLR-xrefSubcommandAttachItem

    2

    First parameter is an integer indicating the activity the ATTACH is carrying out. Possible values are

    0 -- BIND subcommand invoked.

    2 -- xref with the indicated object ID is being bound.

    3 -- xref with the indicated object ID was successfully bound.

    4 -- BIND subcommand completed.

    5 -- BIND operation is about to either terminate or fail to complete on the specified object ID.

    6 -- BIND operation has either terminated or failed to complete on the specified object ID.

    Second parameter is a string identifying the file being attached; otherwise if not applicable. nil

    :VLR-xrefSubcommandOverlayItem

    2

    First parameter is an integer indicating the activity the OVERLAY is carrying out. Possible values are

    0 -- BIND subcommand invoked.

    2 -- xref with the indicated object ID is being bound.

    3 -- xref with the indicated object ID was successfully bound.

    4 -- BIND subcommand completed.

    5 -- BIND operation is about to either terminate or fail to complete on the specified object ID.

    6 -- BIND operation has either terminated or failed to complete on the specified object ID.

    Second parameter is a string identifying the file being overlaid; otherwise if not applicable. nil

    :VLR-xrefSubcommandDetachItem

    2

    First parameter is an integer indicating the activity the DETACH is carrying out. Possible values are

    0 -- BIND subcommand invoked.

    2 -- xref with the indicated object ID is being bound.

    3 -- xref with the indicated object ID was successfully bound.

    4 -- BIND subcommand completed.

    5 -- BIND operation is about to either terminate or fail to complete on the specified object ID.

    6 -- BIND operation has either terminated or failed to complete on the specified object ID.

    Second parameter is an integer containing the object ID of the xref being detached, or 0 if not applicable.

    :VLR-xrefSubcommandPathItem

    3

    First parameter is an integer indicating the activity the DETACH is carrying out. Possible values are

    0 -- BIND subcommand invoked.

    2 -- xref with the indicated object ID is being bound.

    3 -- xref with the indicated object ID was successfully bound.

    4—BIND subcommand completed.

    5 -- BIND operation is about to either terminate or fail to complete on the specified object ID.

    6 -- BIND operation has either terminated or failed to complete on the specified object ID.

    Second parameter is an integer containing the object ID of the xref being operated on, or 0 if not applicable.

    Third parameter is a string identifying the new path name of the xref; otherwise if not applicable. nil

    :VLR-xrefSubcommandReloadItem

    2

    First parameter is an integer indicating the activity the RELOAD is carrying out. Possible values are

    0 -- BIND subcommand invoked.

    2 -- xref with the indicated object ID is being bound.

    3 -- xref with the indicated object ID was successfully bound.

    4 -- BIND subcommand completed.

    5 -- BIND operation is about to either terminate or fail to complete on the specified object ID.

    6 -- BIND operation has either terminated or failed to complete on the specified object ID.

    第二个参数是一个整数,其中包含要重新加载的外部参照的对象 ID,如果不适用,则为 0。

    :VLR-xrefSubcommandUnloadItem

    2

    第一个参数是一个整数,指示卸载正在执行的活动。可能的值为

    0 -- 调用 BIND 子命令。

    2 -- 正在绑定具有指示对象 ID 的外部参照。

    3 -- 已成功绑定具有指示对象 ID 的外部参照。

    4 -- BIND 子命令已完成。

    5 -- BIND 操作即将终止或无法在指定的对象 ID 上完成。

    6 -- 指定对象 ID 上的 BIND 操作已终止或无法完成。

    第二个参数是一个整数,其中包含正在卸载的外部参照的对象 ID,如果不适用,则为 0。

返回值

类型:VLR 对象

reactor_object来自callback_function的论点。

例子

不适用


路过

雷人

握手

鲜花

鸡蛋

最新评论

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

GMT+8, 2024-12-15 14:44

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部