Message 1 of 7
Revit 2020 temp path changes every session
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
In our add-in for Revit we are using the temp path, which can be requested using Path.GetTempPath() in C#.
When this is requested in pre 2020 version, this returned the %TMP% environment variable path.
Since Revit 2020 the requested temp path contains an additional guid at the end of the path, which changes after every restart of Revit(ie. C:\Users\USERNAME\AppData\Local\Temp\84ae8c0d-197b-4b44-b8d3-8823fabbba4f). It seems like Revit changes the temp path for the scope of the application.
Of course we can remove the guid from the path in our add-in, but I'm wondering if this has been done by purpose or could be a bug?
Best regards,
Niels
Revit version: 20.0.0.377 20190327_2315(x64)