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();
 
            Our Business Development Managers are available 
to discuss any questions you might have
 
             
            
                    Connect on WeChat
                    
                        stjiaxu