Current location of local revit documents?

Current location of local revit documents?

Anonymous
Not applicable
2,605 Views
5 Replies
Message 1 of 6

Current location of local revit documents?

Anonymous
Not applicable

Hi,

 

Im trying to locate the current location for local documents.

I've looked through the Application type members around 10 times and found all other file locations (point cloud, default template, library paths etc), but not the local user file location. Is this information not avaliable or can I find it somewhere else in the API?

Basically all I want to do is to create a new local copy with the default path.
I know I can dig into the revit.ini, but it would have been much easier if it was just a property.

 

Any ideas?

 

Thanks


Erik

0 Likes
2,606 Views
5 Replies
Replies (5)
Message 2 of 6

augusto.goncalves
Alumni
Alumni
If I understood you correctly, the OPEN/SAVE dialogs will show the location where the last file was open or saved, this is not a Revit default location. Is that what you're asking?
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 3 of 6

Anonymous
Not applicable
No, Im afraid thats not what Im asking.
If you look in revit, under the application menu-> options->File locations
you will se a textbox with the label Default path for user files:
I want to get this path using the API.
0 Likes
Message 4 of 6

augusto.goncalves
Alumni
Alumni
Ok, got it. Indeed is stored at the .ini file

"C:\Users\<<USER_NAME>>\AppData\Roaming\Autodesk\Revit\Autodesk Revit 2016\Revit.ini"
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 5 of 6

Anonymous
Not applicable
Ok, thats what I was afraid of. I get the feeling that someone forgot to add that though.
I'll make a feature request for it.
But I'll use the ini file for now.
Thanks
0 Likes
Message 6 of 6

lionel.kai
Advisor
Advisor
@Anonymous I didn't see your Idea (maybe this was before the forum), so I created one here: be able to access 'Default path for user files' through API https://forums.autodesk.com/t5/revit-ideas/be-able-to-access-default-path-for-user-files-through-api/idi-p/8718043

Lionel J. Camara
BIM Manager at KAI Hawaii, Inc. - Structural and Forensic Engineers
Autodesk Certified Professional
0 Likes