How to modify the same object with VLR-commandEnded ?

Discussion in 'AutoCAD' started by MRL, Jul 24, 2003.

  1. MRL

    MRL Guest

    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
     
    MRL, Jul 24, 2003
    #1
  2. MRL

    Mark Propst Guest

    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
     
    Mark Propst, Jul 25, 2003
    #2
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.