Author Topic: this reactor is having problems  (Read 2310 times)

0 Members and 1 Guest are viewing this topic.

dubb

  • Swamp Rat
  • Posts: 1105
this reactor is having problems
« on: July 14, 2005, 04:01:40 PM »
i have this reactor that triggers a lisp routine after the "plot" command..it works, but on other systems it loops twice.
let me xplain..

the lisp routine has a dialogue box with radio buttons and the user inputs the information then its written to a text file.

the reactor is loaded as a part of the lisp routine.

what happens is..the dialogue box pops up again after entering in the information.

is the the routine or the reactor thats causing this?


the reactor..it was made by jeff m..
Code: [Select]
(or jmm:plot_reactor
    (setq jmm:plot_reactor (vlr-editor-reactor nil '((:vlr-commandEnded . jmm:cmdEnd)))))
(defun jmm:cmdEnd (calling cmd /)
  (cond ((eq "PLOT" (strcase (car cmd))) (c:PLOG))
   ;you could add other commands to track and do other things here
   )
    (princ)
  )
;;end of plot reactor

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
this reactor is having problems
« Reply #1 on: July 14, 2005, 07:09:06 PM »
I think this comes from the same issue as found in that other thread. Did you try replacing the first 2 lines with the code I showed in that thread?
Code: [Select]
(or jmm:plot_reactor
    (setq jmm:plot_reactor (cadr (car (vlr-reactors :vlr-editor-reactor))))
    (setq jmm:plot_reactor (vlr-editor-reactor nil '((:vlr-commandEnded . jmm:cmdEnd)))))
That, I believe, seemed to solve it.

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
this reactor is having problems
« Reply #2 on: July 14, 2005, 07:15:55 PM »
I really don't have time to test this, but you might want to try adding this little snip into your acaddoc.lsp Make sure it goes before any reactors are loaded.
(vlr-remove-all)

dubb

  • Swamp Rat
  • Posts: 1105
this reactor is having problems
« Reply #3 on: July 18, 2005, 11:25:22 AM »
thanks jefff...i will try this one..i think the problem was the same, i wasnt sure of the terminology so i createda new thread..thanks man.