Hello,
Does a unique ID every change? I want to say yes, during syncronization on a workseted file?
If this is true is there a way of catching the old unique ID and the new unique ID?
Regards
Chris Mckeown
UniqueId does not change; you can rely on it even in work-shared files between synchronizations.
However, it is possible, naturally, that the element with a certain UniqueId is no longer available after synhronizing with the central model.
Hi Arnošt,
Thank you for the prompt reply.
What do you mean "However, it is possible, naturally, that the element with a certain UniqueId is no longer available after synhronizing with the central model."?
I have been recording element id's within a workshared file, very little in this file is being deleted, mostly additions and modifications, however a couple of days have gone by of saving and synchronizing the file, and yesterday I went to compare the ids in the external database against those in Revit, only to find over 60% of the ids in the external database are not findable within Revit, again limited deletions are occurring in this file. The only conclusion is that the unique Id's, may change from that in the local file to the central file upon synchronization depending on the uniqueness of the id and to remove duplicated ids?
Regards
Chris Mckeown
Chris.
Are you talking about ElementID's or UniqueID which is a GUID?
Cheers
Phillip
Hi PhillipM,
Unique ID.
From http://thebuildingcoder.typepad.com/blog/2009/02/uniqueid-dwf-and-ifc-guid.html "Every element has such a unique identifier, which is returned through the API as a string. This string is formatted in groups of 8-4-4-4-12-8 hexadecimal characters. It is thus similar to the standard GUID format, but has 8 additional characters at the end. These 8 additional hexadecimal characters are large enough to store 4 bytes or a 32 bit number, which is exactly the size of a Revit element id."
I want to know if the unique id every changes during synch, i.e. if two users add a new element to their local files, can those unique id's be the same in the local files, and when both files are synch to the central is one of the 2 ids is modified to keep both truely unique in the central???
Regards
Chris Mckeown