Message 1 of 7
How "reload from" (reload) local file to a models in cloud (A360)

Not applicable
03-12-2018
01:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Part of my code looks link this:
if (path.StartsWith("RSN://revitark.nauindigo.dk/")) { using( Transaction tx = new Transaction( doc ) ) { tx.Start("Reload" + linkname); res = typeLink.LoadFrom(newlocation, new WorksetConfiguration()); tx.Commit(); } }
This returns:
"There is not a valid Revit file at path's location\r\nParameter name: path"
and is seems link Reivt don't know the pathtype "Cloud, even though I use Revit 2018.2.
Autodesk.Revit.Exceptions.InvalidOperationException: The PathType of the Revit link cannot be determined (or set), because it was not loaded from a local disk drive or from Revit Server.
at Autodesk.Revit.DB.RevitLinkType.get_PathType()