CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 文档中心

vlr-editor-reactor (AutoLISP/ActiveX)

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

摘要: 构造编辑器反应器对象

构造编辑器反应器对象

支持的平台:仅窗口

签名

(vlr-editor-reactor data callbacks)
数据

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

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

回调

类型:列表

以下形式的对列表:

(事件名称 。callback_function)

  • 事件名称是以下编辑器反应器事件之一:

    编辑器反应器事件

    事件名称

    描述

    :VLR-开始关闭

    图形数据库将被关闭。

    :vlr-beginDxfIn

    DXF 文件的内容将追加到图形数据库中。

    :vlr-abortDxfIn

    DXF 导入未成功。

    :vlr-dxf不完整

    DXF 导入成功完成。

    :vlr-beginDxfout

    AutoCAD 即将将图形数据库输出到 DXF 文件中。

    :vlr-abortDxfOut

    DXF 导出操作失败。

    :vlr-dxfOutComplete

    DXF 导出操作成功完成。

    :vlr-databaseToBeDestroy

    图形数据库的内容即将从内存中删除。

    :vlr-unknown命令

    发出了 AutoCAD 不知道的命令。

    :vlr-commandWillStart

    已调用 AutoCAD 命令。

    vlr-commandEnd

    AutoCAD 命令已完成。

    :vlr-命令已取消

    AutoCAD 命令已被取消。

    :vlr-commandFailed

    AutoCAD 命令无法完成。

    :vlr-lispWillStart

    要计算 AutoLISP 表达式。

    :vlr-lispEnd

    AutoLISP 表达式的计算已完成。

    :vlr-lisp已取消

    AutoLISP 表达式的计算已被取消。

    :vlr-beginDwgOpen

    AutoCAD is about to open a drawing file.

    :vlr-endDwgOpen

    AutoCAD has ended the open operation.

    :vlr-dwgFileOpened

    A new drawing has been loaded into the AutoCAD window.

    :vlr-beginSave

    AutoCAD is about to save the drawing file.

    :vlr-saveComplete

    AutoCAD has saved the current drawing to disk.

    :vlr-sysVarWillChange

    AutoCAD is about to change the value of a system variable.

    :vlr-sysVarChanged

    The value of a system variable has changed.

  • 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 “Editor reactor callback data” table.

    Editor reactor callback data

    Name

    List length

    Parameters

    :vlr-lispEnded

    :vlr-lispCancelled

    :vlr-beginClose

    :vlr-beginDxfIn

    :vlr-abortDxfIn

    :vlr-dxfInComplete

    :vlr-beginDxfOut

    :vlr-abortDxfOut

    :vlr-dxfOutComplete

    :vlr-databaseToBeDestroyed

    0

    :vlr-unknownCommand

    :vlr-commandWillStart

    :vlr-commandEnded

    :vlr-commandCancelled

    :vlr-commandFailed

    1

    A string containing the command name.

    :vlr-lispWillStart

    1

    A string containing the first line of the AutoLISP expression to evaluate.

    :vlr-beginDwgOpen

    :vlr-endDwgOpen

    :vlr-dwg文件打开

    1

    A string identifying the file to open.

    :vlr-开始保存

    2

    第一个参数是要保存的数据库对象。

    第二个参数是包含用于保存的默认文件名的字符串,用户可以更改该文件名。

    :vlr-saveComplete

    2

    第一个参数是要保存的数据库对象。

    第二个参数是包含用于保存的实际文件名的字符串。

    :vlr-sysVarWillChange

    1

    命名系统变量的字符串。

    :vlr-sysVarChanged

    2

    第一个参数是命名系统变量的字符串。

    第二个参数是一个整数,指示更改是否成功(1 = 成功,0 = 失败)。

返回值

类型:VLR 对象

reactor_object来自callback_function的论点。

例子

不适用


路过

雷人

握手

鲜花

鸡蛋

最新评论

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

GMT+8, 2024-5-19 12:11

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部