Lt Dan's l 发表于 2022-7-6 09:05:04

Vlr-pers??

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?

Lee Mac 发表于 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

Lt Dan's l 发表于 2022-7-6 10:13:21

Thank you!
页: [1]
查看完整版本: Vlr-pers??