DraftSight script - almost working...
DraftSight script - almost working...
(OP)
Hi,
I need to convert 20000 Autocad Drawings to pdf. At our site, we don't use Autocad, and I used a 1-month trial of Autocad to do the job. After some fiddling, I succeeded in writing a script that works. However, in the coming weeks (after expiration of Autocad), I´ll need to do some more pdf conversions. I did some modifications to the scr file in order to get it working on DraftSight, and everything works now EXCEPT the close command.
I use the line
close "n"
but Draftsight will keep coming with a Dialog "Save Changes to blabla.dwg?"
This way, DraftSight will not close the drawing, and probably run out of memory.
Does anyone know a trick that will make DraftSight listen to the close command properly??
See the complete scr listing at htt p://files. engineerin g.com/getf ile.aspx?f older=4b5d 73be-5b75- 400e-8596- 3815503fa1 6d&fil e=DraftSig ht_example _script_fo r_batch_pl otting.scr
Thanks in advance,
regards, Jaap
I need to convert 20000 Autocad Drawings to pdf. At our site, we don't use Autocad, and I used a 1-month trial of Autocad to do the job. After some fiddling, I succeeded in writing a script that works. However, in the coming weeks (after expiration of Autocad), I´ll need to do some more pdf conversions. I did some modifications to the scr file in order to get it working on DraftSight, and everything works now EXCEPT the close command.
I use the line
close "n"
but Draftsight will keep coming with a Dialog "Save Changes to blabla.dwg?"
This way, DraftSight will not close the drawing, and probably run out of memory.
Does anyone know a trick that will make DraftSight listen to the close command properly??
See the complete scr listing at htt
Thanks in advance,
regards, Jaap





RE: DraftSight script - almost working...
Type in QSAVE on the line above CLOSE
See if that works.
RE: DraftSight script - almost working...
thanks for the suggestion! I also tried this, but the script still stops. It does manage to open, print and close the first drawing, but it stops after that. The command line says "open", and if I press Enter, it asks what script file I want to run; as default it gives me the same script I just ran.
So my impression is that the close command terminates the script?!
Regards, Jaap