PDA

View Full Version : Plotting w/Reactor


rad.77676
2005-01-21, 01:01 AM
I have setup a dcl/lisp routine with command reactor to load dcl prior to autocad's plot dialog.
The problem is:
If I open a drawing and plot everthing is fine, the problem arises when I open another drawing "without closing autocad" and plot.
It seems that the reactor will fire an additional time for each drawing that I open.
Ex: If I open 4 drawings in a row to plot, in the fourth drawing the reactor is firing 4 times.

Anyone know how to fix this?
Thanx - Rob

peter
2005-01-21, 01:51 PM
Try this.

Use a global flag variable in the drawing that swtiches on during the first Plot reaction, and then prevents the reactor callback from running again until the command ended reactor for the plot command fires.

Peter Jamtgaard

rad.77676
2005-01-21, 06:09 PM
? Could you say that in english
Did I mention that I don't know much about reactors, I'm just flying by the seat of my pants here.