I Have made a program that will create a script file from a directory & File search the Problem that I ran into is when I run the Script file Draftsight just runs through the code not pausing for the print command to respond. I tried to add the PAUSESCRIPT command and all it does is stop the whole program from running anything, in stead of just stopping the next line of code in the script and allow the previous command to finish? I have also tried the -Print and filled in all the option getting the same result from the print function
Here's My Code
^C ^C DisPlayDialogs "Closes command Dialog Box"
No
_Open
C:\\Electrical Schematics\\150012-01.dwg
PauseScript
800
PauseScript
800
CLOSE
NO
_Open
C:\\Electrical Schematics\\150012-02.dwg
PauseScript
800
PauseScript
800
CLOSE
NO
_Open
C:\\Electrical Schematics\\150012-03.dwg
PauseScript
800
PauseScript
800
CLOSE
NO
DisPlayDialogs
Yes
I Can enter each Line of the above code at the command line and it works fine but when streamed from the script file it only prints the first file twice never anything else and always never finishes turning back on the Display Dialog box
I have also rearranged the code to put all the drawings file to open first and they are all there in order Its when the Print command is used that things get screwed up also it will not print the current drawing in the view it will only print the first drawing loaded
If I remove the Print and Pause functions it will open and close each of the drawings
Looking for answer this sound like a base code issue
If I can get this to work I would like to publish My search/ script builder it seam there are a lot of People looking to do a batch Printing process
Thanks Larry
