乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 94|回复: 2

[编程交流] Vlr-pers??

[复制链接]

62

主题

466

帖子

404

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
310
发表于 2022-7-6 09:05:04 | 显示全部楼层 |阅读模式
Is there a way to set an object reactor to stay with the object?
 
A great example is associative dimensions or associative hatch. It stays with the object no matter who opens the drawing.
 
Is it vlr-pers? If not, what is vlr-pers used for?
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 09:57:35 | 显示全部楼层
vlr-pers will make a reactor persistent, however, the callback functions will still need to be loaded into the active document when the reactor is triggered.
 
However, I would recommend you avoid the use of persistent reactors, in my experience and from others' opinions, I believe them to be troublesome.
 
Instead, I would recommend you store the data required for the reactor to function in either entity xData, LData or better,  a drawing Dictionary; then rebuild the transcient reactors when loading the callback functions.
 
Here are two examples of using this method:
 
Associative Centerlines
Object Lock
回复

使用道具 举报

62

主题

466

帖子

404

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
310
发表于 2022-7-6 10:13:21 | 显示全部楼层
Thank you!
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-7 08:17 , Processed in 0.575564 second(s), 58 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表