AutoCAD/AutoCAD System-Resources increase
Expert: Bill DeShawn - 8/17/2010
QuestionHello Allexperts!
I Have a problem in AutoCAD Map 2010, but I think it's a problem of the whole release 2010:
per script I open new AutoCAD-drawing, insert a dxf with dxfin and save the drawing as dwg and close the drawing. (and repeat it with 55000 files)
It worked fine with Autocad 2002 (Map5), but in Release 2010 the windows-process "acad.exe" uses 975 MB of RAM and is very slow (now I could do that faster per mouseklick).
the first 2 files of the sript are:
_new .
dxfin v:\DKM\DKM_2010_03\conv_dxf\VA60\5525\G5525061-0.dxf
-layer
ein
*
_zoom _e
_save
V:\DKM\DKM_2010_03\dwg\5525\G5525061-0.dwg
_close
_new .
dxfin v:\DKM\DKM_2010_03\conv_dxf\VA60\5525\G5525062-0.dxf
-layer
ein
*
_zoom _e
_save
V:\DKM\DKM_2010_03\dwg\5525\G5525062-0.dwg
_close
Is there a way to clear the used cache in ACAD or "close completly" a drawing, so that it doesn't use more RAM as possible?
AnswerChristian:
You are correct in your assesment of how long it takes to load AutoCAD. I, too, have seen this. But once this has loaded the first time, successive loads are faster.
Also, if by chance the language is a problem, you could change "ein" to "_on", -layer to "_.-layer"
Also, you may know this, but saving with _.SAVE or _SAVE will preserve your current drawing and leave it in an unsaved state. You started a new drawing and it may have a default name like Drawing1.dwg or similar German name. So, therefore, when you close the drawing, as you do in your script, AutoCAD is probably wanting you to make a choice of whether or not you want to save your Drawing1.dwg. If you don't want this, you might want to change your script to use the _.SAVEAS command instead of the _SAVE command.
Try applying some of these ideas to your script and let me know how it goes.
Bill DeShawn
http://my.sterling.net/~bdeshawn