Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Active Contributor
Posts: 36
Registered: ‎12-05-2011
Message 1 of 1 (1,544 Views)

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

1544 Views, 0 Replies
01-23-2013 10:34 AM


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 thi