Reactors and the UNDO command

Discussion in 'AutoCAD' started by archie999, Mar 30, 2005.

  1. archie999

    archie999 Guest

    Hi,

    I have written a program which sets reactors to certain objects which causes run a LISP program when they are modified - This bit works fine.

    I have now added a bit to remove the reactor when the object is deleted by the user so that an error doesn't occure.

    But I've noticed that if the user accidently deletes the object which has the modify reactor set on it, and then types UNDO to restore it - it comes back but the reactor is not restored.

    AutoCAD users expect the UNDO command to restore everything back to its original state - this seems not to be the case with an object that has a reactor on it - The user wont realise that the restored objects will now not run the LISP program when modified?

    (BTW I am using UNDO GROUP and UNDO END in the lisp program)

    Is this the case - Or am I missing something??
     
    archie999, Mar 30, 2005
    #1
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.