The ElementId object is used as a unique identification for an element within a single project.
Assembly: RevitAPI (in RevitAPI.dll) Version: 126.96.36.199 (188.8.131.52)
The Value within the ElementId is only unique with a single project. It is not unique across several projects. The Id can be used to retrieve a specific element from the database when needed. However ids are subject to change during an Autodesk Revit session and as such should not be retained and used across repeated calls to external commands. If a manner is needed to uniquely identify an element beyond this limitation then a shared parameter should be added to the element containing a unique identifier managed by the external application.