For some EntityInstance, how do I get the id from the STEP file?

  1. FAQ
  2. »
  3. STEP

You can get OdDAIObjectId of an entity instance and then get a # from it if needed:

OdDAI::ApplicationInstance pInst = ...; // arbitrary instance of SDAI Model
OdDAIObjectId id = pInst->id();
OdDbHandle h = id.getHandle();