SysVar Reactor Cleanup

Discussion in 'AutoCAD' started by partenheimer, Feb 10, 2004.

  1. partenheimer

    partenheimer Guest

    On my first ever attempt at creating a Lisp routine with a reactor I've hit a snag.

    I've got a SysVar Rector set up to change my LTSCALE and PSLTSCALE settings whenever TILEMODE os changed. The routine works great but I'm evidently having trouble cleaning up after myself.

    In Single Document Mode as I open each successive drawing, I get an accumulation of "No function definition" error messages.

    The more drawings I open, the more messages accumulate. I have a feeling that I'm missing something really basic. Can anyone give me a hand?

    Mike Partenheimer
     
    partenheimer, Feb 10, 2004
    #1
  2. partenheimer

    Mark Propst Guest

    I know nothing about single doc mode and very little about reactors.
    But from your description it sounds like you have 2 issues.
    First, the routine the reactor calls must be loaded before the reactor is
    loaded.
    Check google for how to do that, I'm not sure exactly but have seen it
    discussed much.
    Second, it sounds like you're creating multiple reactors and that's why the
    messages "accumulate"
    you need something like (if(not *MyReactor*)(setq
    *MyReactor*(createMyReactor))) in place of where you're creating it now...
    hth
    Mark

    settings whenever TILEMODE os changed. The routine works great but I'm
    evidently having trouble cleaning up after myself.
    accumulation of "No function definition" error messages.
    that I'm missing something really basic. Can anyone give me a hand?
     
    Mark Propst, Feb 11, 2004
    #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.