How do you think about %TEMP% folder

How do you think about %TEMP% folder

XARMA
Advocate Advocate
1,300 Views
8 Replies
Message 1 of 9

How do you think about %TEMP% folder

XARMA
Advocate
Advocate

I am asked about accessing central problem etc...

sometimes it is solved after make %TEMP% folder clearly.

but I don't know accurately correlation between central files and %TEMP% files.

I just guess the temp files make ghosts log and they hold synchronize continuously, so anyone can't access Workset and synchronize with Central file.

 

I usually see advices in forum like clean your temp files and drive volume, turn off the computer everyday.

but I think there are no one who can say exact reason. 

who can say about it?

I want to hear your thinking or guess also

0 Likes
Accepted solutions (1)
1,301 Views
8 Replies
Replies (8)
Message 2 of 9

RSomppi
Mentor
Mentor

@XARMA wrote:

I think there are no one who can say exact reason. 

who can say about it?

I want to hear your thinking or guess also


Some of us know.

0 Likes
Message 3 of 9

HVAC-Novice
Advisor
Advisor

Every few days I clean the tmp folder and get rid of a few GB. i never got around it, but I wanted to find a script or automation to do that daily for me. one issue is, that script also has to automatically skip the files currently locked. 

 

Revit is the only software I have that suffers from tmp folder fill-up. My best guess it is a programming error in the spaghettis code. 

 

Re-starting the PC every once a while is good practice anyway. I admit I leave my projects open the end of the day since opening up a project takes so long. But our IT seems to enforce a re-start every few days. 

Revit Version: R2026.4
Hardware: i9 14900K, 64GB, Nvidia RTX 2000 Ada 16GB
Add-ins: ElumTools; Ripple-HVAC; ElectroBIM; Qbitec
Message 4 of 9

TripleM-Dev.net
Advisor
Advisor
Accepted solution

The Temp normally gets cleaned up pretty good, a crash or closing a PC to soon after closing a model (or other software) can leave stuff behind. I delete everything (possible) in it once every 3-months or so.

 

Why does some issues get resolved after the temp is cleared, because a file in the temp could have become corrupt and/or locked and some part of the software can't buffer or process something and will behave badly (in short)

 

Closing Revit and/or restarting the PC once a day, well that just clears the memory and any faults in it that has to be registered by windows. This will make it run faster again (depends on type of memory, server for instance normally have a different type of memory that generates less errors/faults)

 

If you only have a single model open whole day, that won't matter much with modern systems. But opening multiple models in the same session (at the same time or after one another) will keep things in memory and Revit will continue to slow down due to memory leaks and/or full memory at worst.

 

Ps:

If you want to save disk space look into the Journal location, you'll be surprised at it's content.

C:\Users\%USERNAME%\AppData\Local\Autodesk\Revit\Autodesk Revit <Version>\Journals\

 

If no Revit sessions are open of that version, the content of the Journal can be deleted (I think some is used so a undo can be performed I think)

 

Message 5 of 9

HVAC-Novice
Advisor
Advisor

I clean the tmp every few days, and it is 3GB or so. I don't want to imagine waiting 3 months 🙂

 

thanks for reminding me of the journals. it had a lot of families in it..... 

 

It would be nice to have so me automated cleanup every wee k or so. 

 

 

 

 

Revit Version: R2026.4
Hardware: i9 14900K, 64GB, Nvidia RTX 2000 Ada 16GB
Add-ins: ElumTools; Ripple-HVAC; ElectroBIM; Qbitec
Message 6 of 9

Simon_Weel
Advisor
Advisor

To keep things nice & tidy, we store the local files in a separate folder, like C:\Revit_Local:

 

Simon_Weel_0-1730103643526.png

 

And the files in the temp folder are cleaned out by the Domain Login script. We use the command line utility delage.exe to delete all files older than a day.

Cleaning up the Journal files is something Revit can do on its own. See Options > tab General:

Simon_Weel_1-1730104076717.png

 

 

Message 7 of 9

TripleM-Dev.net
Advisor
Advisor

Hi@HVAC-Novice ,

 

The temp should be relative clear, if no crashes happend it wouldn't grow that large. But it will over time.

On my work laptop it's about a few GB every 3 month's. And hard drive space isn't a real issue.

 

If you're temp fills up with 3GB every few days...I would say something is wrong. Could it be some other software?

 

Message 8 of 9

HVAC-Novice
Advisor
Advisor

One temp folder that isn't from a different software is this and has 2.33 GB that can't be deleted in the current session.

I haven't had a crash in ages. 

 

I also found outlook and windows diagnostics files, but they shouldn't impact Revit. Current project is 125 MB. Looks like some temporary files are larger than that. 

 

HVACNovice_1-1730218364810.png

 

 

 

 

Revit Version: R2026.4
Hardware: i9 14900K, 64GB, Nvidia RTX 2000 Ada 16GB
Add-ins: ElumTools; Ripple-HVAC; ElectroBIM; Qbitec
0 Likes
Message 9 of 9

Simon_Weel
Advisor
Advisor

Current project is 125 MB. Looks like some temporary files are larger than that. 

That's because a Revit file is simply a ZIP file. You can open a Revit file with something like 7Zip and then you'll notice the content pretty much resembles the files in the temp-folder. I.e. - Revit unzips the file in the temp-folder.

Most of the files are in xml format, so you can do some serious hacking too....