So I managed to create an object reactor that is changing the width of the frame of a dynamic block based n the size of the attribute inside it.
Now I am trying to disable it when necessary for some blocks.
Somehow I cannot make it work for me.
I am trying to use vlr-owner-remove, but fail to understand how I should define reactor's name within vlr-owner-remove function.
My first try was:
(vlr-owner-remove '#<VLR-Object-Reactor> ownerobj)
Error: bad argument type: Object reactor: #<VLR-OBJECT-REACTOR>
Here is the example from help:
(vlr-owner-remove circleReactor archie)
#<VLA-OBJECT IAcadArc 03ad0bcc>
But how that "circleReactor" variable had to be defined previously? Within the same function, or maybe in the initial function that was creating this reactor?
I am creating a reactor called TagFieldReactor in a separate command.
If I try to make TagFieldReactor a global variable, and use same variable name in future, I have following error.
(setq TagFieldReactor (vlr-object-reactor (reverse (cons vlaobj vlaattobj))
"TagFieldReactor" '((:vlr-modified . UpdateTagField))))
(vlr-owner-remove TagFieldReactor ownerobj)
Error: bad argument type: Object reactor: nil
I know I do something stupid somewhere, could you please point out what exactly ?