Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CACHEMAXFILES = 1 makes DELETE and SAVEAS very slow (AutoCAD 2013)

1 REPLY 1
Reply
Message 1 of 2
Ixath
5345 Views, 1 Reply

CACHEMAXFILES = 1 makes DELETE and SAVEAS very slow (AutoCAD 2013)

 

I'm not sure if this issue is very specific to what I'm working on or if it's a more general problem. Either way, I thought it might be helpful to someone so I'm sharing it:

 

Setting CACHEMAXFILES to 0 and emptying the cache directory (below) provided a huge increase in speed when deleting objects and saving immediately after. Set at 1, it was taking 13 seconds to delete 5956 objects (all surfaces) and 48 seconds to saveas immediately afterwards. Set at 0, it takes less than 1 second to save those objects and the saveas time was reduced to 25 seconds.

 

In AutoCAD 2012, before CACHEMAXFILES was introduced, both the DELETE and SAVEAS commands were instantaneous. Please keep in mind that I've only tested this decently large files (20-40 megs) and the only objects in the drawing were surfaces (imported .sat files). This might not be an issue with other object types or smaller files. I have the SAVEAS set to use the ac2013_dwg format.

 

Weird Times

With CACHEMAXFILES = 0, using ac2013_dwg, save time (after delete) is 25 seconds.

With CACHEMAXFILES = 0, using ac2010_dwg, save time (after delete) is instant.

 

With CACHEMAXFILES = 1, using ac2013_dwg, delete time is 13 seconds, save time (after delete) is 48 seconds.

With CACHEMAXFILES = 1, using ac2010_dwg, delete time is 13 seconds, save time (after delete) is 48 seconds.

 

Graphics Cache Location - Windows 7

C:\Users\[username]\AppData\Local\Autodesk\MEP 2013\enu\GraphicsCache\

Change the username bit to the correct username, unless your username is [username]... which would be very weird of you.

 

The only thing I'm not sure about, is why the ac2013_dwg format is still taking 25 seconds longer to save than the ac2010_dwg format 😕

 

Good luck and I hope this is helpful to somebody out there.

1 REPLY 1
Message 2 of 2
rkmcswain
in reply to: Ixath

Ixath wrote:
Graphics Cache Location - Windows 7

C:\Users\[username]\AppData\Local\Autodesk\MEP 2013\enu\GraphicsCache\

Change the username bit to the correct username

Another way of getting there is to just paste this to the address bar in Windows Explorer:
%LocalAppData%

...which will get you this far : C:\Users\[username]\AppData\Local

...then you just need to go \Autodesk\[Product]\enu\GraphicsCache

...Or, if you want to do it from the AutoCAD Command Line, paste this in to take you straight to the folder.

(startapp "explorer" (strcat (getvar "LocalRootPrefix") "GraphicsCache"))

R.K. McSwain     | CADpanacea | on twitter

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost