How to modify the same object with VLR-commandEnded ?

MRL

Usenet Archive
Joined
Jul 8, 2003
Messages
45
Reaction score
0
Hello,

How can i start a reactor and modify a DIM-object i've just modified?

I add a reactor to a DIM-object with:

(VLR-Command-Reactor
nil
'((:VLR-commandEnded . vlmr:Modify-DimOrdinate))
)

(defun vlmr:Modify-DimOrdinate (calling-reactor endcommandInfo) (princ calling-reactor) (princ endcommandInfo)
)

After i modified *that* object it want to start a reactor that modify the same object.

Any ideas?

Martin
 
there's tons of stuff on reactors on google. Basically i think the idea is, since you cant' modify the object with it's own reactor event, you just store it's name - ename or handle - in whatever storage medium you want, dictionary, xdata, ldata, xrecord,...etc, then after the reactor is done another function starts that reads the storage location, gets the id of the object to modify and goes modify it. I'm not sure how you have to call *that* function. I'm not sure if your callback function can call that as it's last action, after storing the name, or if that would qualify as the same as modifying the object from within it;s own callback. I'm sure you'll find what you need in a google search. goodluck Mark
 

Latest threads

Back
Top