|
发表于 2022-7-6 12:35:32
|
显示全部楼层
The problem guys is your overlooking the simple answer it being run by a batch file !
A batch file runs outside autocad from the operating system command line once you start the loop the batch file opens a session of autocad and it expects you to close it as well, hence why quit works and not close.
The easier way is to stay inside autocad and use a script to loop through the drawings and yes use close not quit. We have done for 100+ drawings no problems.
A couple of extra real help full tips after you create your dir *.dwg >mydwgs.txt file use WORD to edit it, remove the junk till you get just filenames only use "hold alt key" and use mouse for vertical selection then delete, an unknown fact is that you can find/replace the end of line with something new uselly my script commands.
eg
mydwg1.dwg
mydwg2.dwg etc
find replace g^p with g zoom e domylisp^p
ie
mydwg1.dwg zoom e domylisp
mydwg2.dwg zoom e domylisp
also add blank line at top ^p replace ^oopen (space after n)
open mydwg1.dwg zoom e domylisp
open mydwg2.dwg zoom e domylisp
delete blank line
save as a script
Hope this helps. it only takes a couple of minutes to edit the dwg txt file. |
|