Oh i got it! (Duh!?)
Its not the reactor or the "enviroment" its your 'Or' statment thats causing that.
Um, nope. Let me try this again. After loading the reactor into the first opened drawing where SDI>0, I open a new drawing (which closes the first one) and I don't load ANY code, I get this:
Command: AECOPEN
Closing Autodesk Map project...
Opening an AutoCAD 2000 format file.
Regenerating model.
Command:
Command:
Initializing...
; error: no function definition: JMM:CMDEND
Command:
AutoCAD Express Tools Copyright © 2000 Autodesk, Inc.
; error: no function definition: JMM:CMDEND
AutoCAD menu utilities loaded.; error: no function definition: JMM:CMDEND
; error: no function definition: JMM:CMDEND
Command: (vlr-reactors)
((:VLR-Editor-Reactor #<VLR-Editor-Reactor>))
Command: !jmm:plot_reactor
nil
So that bit of code: (or sym (setq sym.....)) works great to keep it from reloading in the MDI arena, but when in SDI you get this when loading the first time in the second drawing:
Command: (vlr-reactors)
((:VLR-Editor-Reactor #<VLR-Editor-Reactor> #<VLR-Editor-Reactor>)) and the event is triggered twice. Now if I open a third drawing, guess what....yep, load my handy doody reactor and it gets fired 3 times.....
Does that 'splain it a bit better?