Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am attempting to ascertain if the active document is a local copy or the central model. I have used the BasicFileInfo IsCreatedLocal and IsLocal properties on a local copy of a central model and both return false? If I extract the IsCentral property I get true when I would expect false. I have done some simple checks, like checking the Document.PathName against the BasicFileInfo CentralPath property and both outputs are correct. As a workaround I can simply test both addresses for equality but I want to know what is causing this unusual behaviour?
bool docIsLocal; try { docIsLocal = BasicFileInfo.Extract(doc.PathName).IsLocal; } catch (Autodesk.Revit.Exceptions.FileArgumentNotFoundException) { docIsLocal = false; }
This was tested in Revit 2016, and Dynamo (using Python) 1.3
Solved! Go to Solution.