..... and I need it to be like the third or fourth from the last.
Can you expand on this, Tim? Such as: what else needs to run?
Sure.
This is my batch plot routine. I change it to SDI mode so that I can run a lisp to plot instead of a script or a VBA program. It will plot and all, but when it was trying to execute the new command after it finishes plotting all the drawings, it would crash it. So I tried to code a way to open a new drawing, but that doesn't seem to something that the ActiveX controls support for lisp. The vbastmt waits until the end of the routine finishes, and then runs the statement, which causes an error because now it's in MDI mode.
Psuedo code:
Change to SDI mode
Select the drawings, and plot options
Plot them all
Open a new drawing
Change all variables back, mainly back to MDI mode if Acad was in it before the plot routine.
I hope that is clear.