Model.hm_me_entitiesget#
- Model.hm_me_entitiesget(module_id, search_entity_type)#
Returns the entity IDs of a specific entity type contained in a part.
- Parameters:
module_id (int) – The ID of the part set to query.
search_entity_type (EntityFullType) – The type of entity to query. Valid entity values are components.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:entities (EntityList)
Example#
Get the components contained in Component with ID 10#import hm import hm.entities as ent model = hm.Model() _,result = model.hm_me_entitiesget(module_id=10, search_entity_type=ent.Component) print("entities", result.entities)