reactor: Z value not 0

Discussion in 'AutoCAD' started by jclaidler, Sep 16, 2003.

  1. jclaidler

    jclaidler Guest

    Is there a way, using reactors, to perform certain tasks when an entity in a drawing is not at z=0 ??
     
    jclaidler, Sep 16, 2003
    #1

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


    (sorry, couldn't resist)
     
    ruul morawetz, Sep 16, 2003
    #2
  3. jclaidler

    jclaidler Guest

    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.
     
    jclaidler, Sep 16, 2003
    #3
  4. jclaidler

    jclaidler Guest

    thanks
     
    jclaidler, Sep 16, 2003
    #4
  5. jclaidler

    jclaidler Guest

    anyway.. here's my lisp version: (setq ex (getvar "extmax"))(setq z (caddr ex))(if (not (= 0 z))(setvar "ucsicon" 1))
     
    jclaidler, Sep 16, 2003
    #5
  6. jclaidler

    jclaidler Guest

    I'll have to try this on A2K4, it doesn't work on A2Ki.
     
    jclaidler, Sep 16, 2003
    #6
  7. 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 morawetz, Sep 16, 2003
    #7
  8. jclaidler

    Doug Broad Guest

    Ruul,
    You can temporarily disable the reactor during
    the callback.
     
    Doug Broad, Sep 16, 2003
    #8
  9. 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
     
    ruul morawetz, Sep 16, 2003
    #9
  10. 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
     
    ruul morawetz, Sep 16, 2003
    #10
  11. jclaidler

    jclaidler Guest

    Thanks... I'll give it a try.
     
    jclaidler, Sep 17, 2003
    #11
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.