Are references unique across documents?

Are references unique across documents?

grubdex
Enthusiast Enthusiast
442 Views
1 Reply
Message 1 of 2

Are references unique across documents?

grubdex
Enthusiast
Enthusiast

Hi,

I was wondering whether References are unique across documents in my project? I know that UniqueIDs are and IDs are not.

0 Likes
443 Views
1 Reply
Reply (1)
Message 2 of 2

ricaun
Advisor
Advisor

Probably yes, the Reference has the UniqueId embedded in the stable representation.

 

Using a UniqueId of the element with Reference.ParseFromStableRepresentation gonna result in the Reference of the element.

Reference reference = Reference.ParseFromStableRepresentation(document, element.UniqueId);

 

 

 

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils