Message 1 of 6

Not applicable
06-15-2017
08:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Using Revit 2018.
I have a C4R project that I open and have pulled out the user-viewable path for:
BIM 360://Admin Project/C4ROpenAndActivateTest.rvt
I read in the docs to use ModelPath for loading server-based files, so I did this:
var modelPath = ModelPathUtils.ConvertUserVisiblePathToModelPath("BIM 360://Admin Project/C4ROpenAndActivateTest.rvt"); var document = _uiApp.OpenAndActivateDocument(modelPath, new OpenOptions(), false);
Which looks good at first glance, because modelPath.CentralServerPath is set to https://model15.skyscraper.autodesk.com:443/ModelService2015/ModelService.svc/basichttpbuffer, but I get the exception:
The document to be opened does not exist.
and in looking at modelPath, both GetModelGUID() and GetProjectGUID() return Guid.Empty.
Am I missing a step somewhere to get the OpenAndActivateDocument() call to open a C4R RVT?
Solved! Go to Solution.