- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am writing an external command to download a revit file from a remote server to the local machine and then open that file to interact with it. The code is very simple and generally flows like below.
Send HTTP get request to remote server, server sends back download urls, code downloads the revit files from those urls into the local temp directory, then call app.OpenDocumentFile(path).
The app.OpenDocumentFile(path) causes an internal exception in Revit. Both parts of the code work correctly when unlinked, ie, I can comment out the openDocument code and the files download properly, then I can comment out the download code and the recently downloaded files open properly. When I try to call the functions one after the other in the same external command is where the internal exception occurs.
Any ideas or help would be greatly appreciated. Thanks
Solved! Go to Solution.