How to handle Temporary (.ac$) files

How to handle Temporary (.ac$) files

eirij
Advocate Advocate
795 Views
2 Replies
Message 1 of 3

How to handle Temporary (.ac$) files

eirij
Advocate
Advocate

Hi,

 

I have developed a code to slice a solid in specific intervals, and what I have observed that during the process the CIVIL3D creates the Temporary (.ac$) file in temp folder and it keeps increasing its size during the process.

 

How to control the Temporary file in the code? Is there anything am I missing? 

 

Best Regards,

Eirij

0 Likes
Accepted solutions (1)
796 Views
2 Replies
Replies (2)
Message 2 of 3

_gile
Consultant
Consultant

Hi,

Have a look at the SAVETIME sysvar.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 3

eirij
Advocate
Advocate
Accepted solution

Hi @_gile,

 

Thank you for your reply, I have tried with the system variable SAVETIME and it didn't work for me, but doing some research on Temporary files I have figured out the problem. Temporary files (.ac$) contain information that is used by various AutoCAD commands (such as UNDO) and this was the reason for creating a huge (.ac$) file in the temp folder while performing the long slicing process.

You can easily enable or disable UNDO recording by 

 

db.DisableUndoRecording(bool disable)

if disable == true UNDO recording is off.