Jacob Scheib
Jacob Scheib

Reputation: 35

Unique Revit Model Identifier 2016-2018

We are looking for a way to distinguish between Revit models from multiple different computers. For BIM360 and Revit Server models, we are able to use

document.GetWorksharingCentralModelPath().GetModelGUID()

However, for local models and central models, we are not able to grab any sort of unique identifier for the model. We cannot set a parameter with a GUID due to the fact that multiple users start from a template Revit model, therefore copying the unique identifier and making them non-unique. Is there any way to uniquely distinguish a Revit model using the Revit API?

Upvotes: 0

Views: 546

Answers (2)

Matters
Matters

Reputation: 1

in my opinion, copying the Revit Document should NOT result in a new ProjectId.

Additionally, These members don't deliver good results:

Document.ProjectInformation.Id
Document.ProjectInformation.UniqueId

The soultion above proposed by The Building Coder will work, if you want to program some kind of uploader. You will then create a GUID and save it in the "invisible storage" called ExtensibleStorage, that only your program can read again.

The easiest apporach is:

ExportUtils.GetGBXMLDocumentId(Document);

Upvotes: 0

Jeremy Tammik
Jeremy Tammik

Reputation: 8294

The Building Coder discussed the issue of creating your own unique project id and using Named Guid Storage for Project Identification.

Upvotes: 1

Related Questions