Model.hm_me_entitiesall#
- Model.hm_me_entitiesall(id)#
Returns all of the entity types and IDs contained in a part.
- Parameters:
id (int) – The ID of the part to query.
- Returns:
hwReturnStatus- Status objectHmQueryResultList- Result list object containingHmQueryResultobjects with the following output data:entityType (str)
ids (numpy.ndarray)
Example#
Get the entities contained in a part with ID 10#import hm import hm.entities as ent model = hm.Model() _,resultlist = model.hm_me_entitiesall(id=10) for result in resultlist: print("entityType", result.entityType) print("ids", result.ids)