Message 1 of 3
Not applicable
10-01-2018
07:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This question relates to API version: Revit 2019 API (RevitAPI 19.0.0.0 and RevitAPIUI 19.0.0.0).
Hi all,
When I use FileOpenDialog to let the user select a file, and when ItemSelectionDialogResult is ItemSelectionDialogResult.Confirmed, getting the actual file path does not seem possible.
API documentation lists GetSelectedModelPath as the method which returns ModelPath:
FileOpenDialog Members
| Public method | GetSelectedModelPath | Returns the selected file path chosen by the user. (Inherited from FileDialog) |
However, ModelPath has no properties which actually contain the file path:
ModelPath Members
| Public property | CentralServerPath | A path to the location of the central Revit server. |
| Public property | CloudPath | Whether this path represents a path on an Autodesk server such as BIM360. |
| Public property | Empty | Whether this path is empty |
| Public property | IsValidObject | Specifies whether the .NET object represents a valid Revit entity. |
| Public property | ServerPath | Whether this path is a server path (as opposed to a file path or cloud path) |
Has this been overlooked in the API version I am using or am I missing something?
Thank you.
Edit reason: cleaned up HTML
Solved! Go to Solution.