Model.hm_ce_getresolvedlinkentities#
- Model.hm_ce_getresolvedlinkentities(connector, link_entity_type)#
Returns the link information for the resolved entities organized per link-index.
The output will contain the entity ID if the link-entity is present in current model else it will be 0.
- Parameters:
connector (Entity) – The object describing the connector entity to query.
link_entity_type (EntityFullType) – The link entity type to query.
- Returns:
hwReturnStatus- Status object
Example#
Get link information for connector with ID 7 with components and parts that exist in the model#import hm import hm.entities as ent model = hm.Model() _, resultlist = model.hm_ce_getresolvedlinkentities( connector=ent.Connector(model, 7), link_entity_type=ent.Component ) for result in resultlist: print("Entity IDs: ", result.entityIds) _, resultlist = model.hm_ce_getresolvedlinkentities( connector=ent.Connector(model, 7), link_entity_type=ent.Part ) for result in resultlist: print("Entity IDs: ", result.entityIds)