Persistent Reference IDs
Selectable objects in a SOLIDWORKS model document are assigned unique
reference IDs. The reference IDs persist for the objects in the model
document across SOLIDWORKS sessions. Other applications can use persistent
reference IDs to locate objects at runtime.
These methods support the retrieval of persistent reference IDs:
NOTE:
See swSelectType_e
for a list of selectable objects. You can select the objects via the user
interface or programmatically by using IModelDocExtension::SelectByID2.