找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1497|回复: 5

[精彩文萃] 反应器用法参考

[复制链接]

已领礼包: 20个

财富等级: 恭喜发财

发表于 2018-9-25 23:35:46 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
本帖最后由 marting 于 2018-9-25 23:43 编辑

Reactor Functions Reference (AutoLISP/ActiveX)[]Products and versions covered

Note: ActiveX support in AutoLISP is limited to Windows only.


Reactor functions define, query, and delete reactors and reactor properties. Before you can use these functions, you must load AutoLISP reactor support by issuing the following function:
(vl-load-com)
The vl-load-com function initializes reactor support and a number of other AutoLISP extensions.

Reactor functions
Function
Description
(vl-load-com)
Loads AutoLISP reactor support functions and other AutoLISP extensions
(vlr-acdb-reactor data callbacks)
Constructs a database (global) reactor object
(vlr-add obj)
Enables a disabled reactor object
(vlr-added-p obj)
Tests to determine whether a reactor object is enabled
(vlr-beep-reaction [args])
Produces a beep sound
(vlr-command-reactor data callbacks)
Constructs an editor reactor that notifies of a command event
(vlr-current-reaction-name)
Returns the name (symbol) of the current event, if called from within a reactor's callback
(vlr-data obj)
Returns application-specific data associated with a reactor
(vlr-data-set obj data)
Overwrites application-specific data associated with a reactor
(vlr-deepclone-reactor obj data)
Constructs an editor reactor object that provides notification of deep clone events
(vlr-docmanager-reactor obj data)
Constructs a reactor object that provides notification of MDI-related events
(vlr-dwg-reactor obj data)
Constructs an editor reactor object that provides notification of a drawing event (for example, opening or closing a drawing file)
(vlr-dxf-reactor obj data)
Constructs an editor reactor object that notifies of an event related to reading or writing of a DXF file
(vlr-editor-reactor data callbacks)
Constructs an editor (global) reactor object
(vlr-insert-reactor data callbacks)
Constructs an editor reactor object that notifies of an event related to block insertion
(vlr-linker-reactor data callbacks)
Constructs a linker (global) reactor object
(vlr-lisp-reactor data callbacks)
Constructs an editor reactor object that notifies of a LISP event
(vlr-miscellaneous-reactor data callbacks)
Constructs an editor reactor object that does not fall under any of the other editor reactor types
(vlr-mouse-reactor data callbacks)
Constructs an editor reactor object that provides notification of a mouse event (for example, a double-click)
(vlr-notification reactor)
Determines whether or not a reactor's callback function will execute if its associated namespace is not active
(vlr-object-reactor owners data callbacks)
Constructs an object reactor object
(vlr-owner-add reactor owner)
Adds an object to the list of owners of an object reactor
(vlr-owner-remove reactor owner)
Removes an object from the list of owners of an object reactor
(vlr-owners reactor)
Returns the list of owners of an object reactor
(vlr-pers reactor)
Makes a reactor persistent
(vlr-pers-list [reactor])
Returns a list of persistent reactors in the current drawing
(vlr-pers-p reactor)
Determines whether or not a reactor is persistent
(vlr-pers-release reactor)
Makes a reactor transient
(vlr-reaction-name reactor-type)
Returns a list of all callback conditions for this reactor type
(vlr-reaction-set reactor event function)
Adds or replaces a callback function in a reactor
(vlr-reactions reactor)
Returns a list of pairs ( event-name . callback_function) for the reactor
(vlr-reactors [reactor-type ...])
Returns a list of reactors of the specified types
(vlr-remove reactor)
Disables a reactor
(vlr-remove-all reactor-type)
Disables all reactors of the specified type
(vlr-set-notification reactor 'range)
Defines whether or not a reactor's callback function will execute if its associated namespace is not active
(vlr-sysvar-reactor data callbacks)
Constructs an editor reactor object that provides notification of a change to a system variable
(vlr-toolbar-reactor data callbacks)
Constructs an editor reactor object that provides notification of a change to the bitmaps in a toolbar
(vlr-trace-reaction)
A pre-defined callback function that prints one or more callback arguments in the Trace window
(vlr-type reactor)
Returns a symbol representing the reactor type
(vlr-types)
Returns a list of all reactor types
(vlr-undo-reactor data callbacks)
Constructs an editor reactor object that provides notification of an undo event
(vlr-wblock-reactor data callbacks)
Constructs an editor reactor object that provides notification of an event related to writing a block
(vlr-window-reactor data callbacks)
Constructs an editor reactor object that notifies of an event related to moving or sizing an AutoCAD window
(vlr-xref-reactor data callbacks)
Constructs an editor reactor object that provides notification of an event related to attaching or modifying XREF



Related Concepts
Related Reference




论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!

已领礼包: 568个

财富等级: 财运亨通

发表于 2018-9-26 08:43:50 | 显示全部楼层
你这全英文,看不懂。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 6468个

财富等级: 富甲天下

发表于 2018-9-26 09:05:22 | 显示全部楼层
哪位大神给翻译一下!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 5295个

财富等级: 富甲天下

发表于 2018-9-26 12:35:30 | 显示全部楼层
不错的资料,好好学习一下。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 5个

财富等级: 恭喜发财

发表于 2019-10-17 15:36:34 | 显示全部楼层
浏览器好翻译的
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2019-10-17 16:25:36 来自手机 | 显示全部楼层
学习一下,全英文的哇
来自: 微社区
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-11-15 04:17 , Processed in 0.216185 second(s), 38 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表