UI.FileOpenDialog Choose a folder instead of a file

UI.FileOpenDialog Choose a folder instead of a file

GertjanvandenbroekVKAE
Advocate Advocate
1,454 Views
2 Replies
Message 1 of 3

UI.FileOpenDialog Choose a folder instead of a file

GertjanvandenbroekVKAE
Advocate
Advocate

I need to be able to designate 2 folders for importing and exporting activities. But the file dialog does not allow for me to select a folder... only files.

 

So how would I go about asking the user for a folder using the revitapi?

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

jeremytammik
Autodesk
Autodesk
Accepted solution

Use the .NET or Windows API instead.

 

I know that The Building Coder has implemented and documented such methods. Don't know where, though, off-hand.

  

By the way, similar questions have also been discussed right here in the past, e.g., 

 

https://forums.autodesk.com/t5/revit-api-forum/folderbrowserdialog-in-revit/m-p/8370066

 

Please always search before asking.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 3

GertjanvandenbroekVKAE
Advocate
Advocate

I swear I did search for this topic before I created it. Probably just the wrong search terms.

Thanks for the suggestion though,I'll mark it as accepted.

 

But that folder browser dialog is all sorts of awful, isn't there a more elegant dialog option available?

0 Likes