Displays the browse-for-folder dialog box allowing the user to select a folder.
rhinoscript.userinterface.BrowseForFolder (folder=None, message=None, title=None)
rhinoscriptsyntax.BrowseForFolder (folder=None, message=None, title=None)
folder |
Optional. String. A default folder. |
message |
Optional. String. A prompt or message. |
title |
Optional. String. A dialog box title. |
String |
The selected folder if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
folder = rs.BrowseForFolder("C:\\Program Files\\" )
if folder: print folder