Model.hm_getunresolvedids#
- Model.hm_getunresolvedids(entity_type, id_pool_id=0)#
Returns the unresolved IDs for a specific entity type and optional ID pool.
- Parameters:
entity_type (EntityFullType) – The type of entity to query.
id_pool_id (int) – The ID of the ID pool to query. If empty, all ID pools are considered.
- Returns:
hwReturnStatus- Status objectHmQueryResultList- Result list object containingHmQueryResultobjects with the following output data:poolName (str)
listOfUnresolvedIds (numpy.ndarray)
Note
If there is no ID pool for the specified entity type, “” will be returned for
id_pool_id.
Examples#
Get the list of entity types with unresolved IDs , and query the IDs#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getunresolvedids( entity_type=ent.Material(model, 100), id_pool_id=0 ) print("poolName:", result.poolName) print("listOfUnresolvedIds:", result.listOfUnresolvedIds)
Get the list of entity types with unresolved IDs , and query the IDs for pool 1 only#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getunresolvedids( entity_type=ent.Material(model, 100), id_pool_id=1 ) print("poolName:", result.poolName) print("listOfUnresolvedIds:", result.listOfUnresolvedIds)