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

 1. [FAQ](/faq)
2. »
3. [IFC](/faq/ifc)

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

```
OdIfcEntityPtr pInst = ...; // or IfcWallPtr pWallInst = ...;
OdDAIObjectId id = pInst->id();
OdDbHandle h = id.getHandle();
```
