reactor: Z value not 0

jclaidler

Usenet Archive
Joined
Apr 30, 2003
Messages
185
Reaction score
0
Is there a way, using reactors, to perform certain tasks when an entity in a drawing is not at z=0 ??
 
Is there a way, using reactors, to perform certain tasks when an entity in a drawing is not at z=0 ??

I'm sure that there is a way ;-))

(sorry, couldn't resist)
 
I have one request by a user, so that the ucsicon automatically comes on for 3D and off for 2D. I have a lisp routine that does this when the drawing is open, but was just wondering if it could be done with reactors.
 
anyway.. here's my lisp version: (setq ex (getvar "extmax"))(setq z (caddr ex))(if (not (= 0 z))(setvar "ucsicon" 1))
 
just jumping in because of curiousity: how's the probability to get away with setting a sysvar in a reaction to a change of a sysvar without negative consequences?
 
Ruul,
You can temporarily disable the reactor during
the callback.
ok. reactor gets fired, reaction is disabled, variable set and reactor enabled again.

i asked because i thought there maybe is some other trick of setting a variable without the event being triggered.

thanks
 
I'm a reactor amateur, so bare with me, but you seem to wait for UCSICON being changed. then EXTMAX is checked and UCSICON set.

shouldn't a change of EXTMAX trigger a different setting of UCSICON?

EXTMAX gets set after display list recalculation but doesn't trigger the reactor.

just wondering
 

Latest threads

Back
Top