You are here:

AutoCAD/AutoCAD System-Resources increase

Advertisement


Question
Hello 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?  

Answer
Christian:
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

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


Bill DeShawn

Expertise

I can address all 2-D questions and some 3-D questions. I do programming in AutoLISP if it doesn`t involve solid modeling. I can also address menu customization issues and can help you find answers to questions I can`t answer by taking your question directly to Autodesk via their newsgroups.

Experience

I used to do electronic and mechanical design for a flat panel monitor manufacturer, and now I do architectural drafting for an architect. I did and do AutoLISP and menu customization and take pride in making my lisp routines to do the work exactly the way the client likes them done.

Publications
I had a routine published in CADENCE magazine (no longer in publication and taken over by CADALYST). Some of my routines are published on my website at http://my.sterling.net/~bdeshawn

©2012 About.com, a part of The New York Times Company. All rights reserved.