hm_ce_getresolvedlinkentities

Retruns resolved link entity information.

Syntax

hm_ce_getresolvedlinkentities ce_id link_entity_type

Type

HyperMesh Tcl Query

Description

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.

Inputs

ce_id
The ID of the connector to query.
link_entity_type
The link entity type to query.

Examples

For connector ID 7 with link 1 as component_1, link 2 as component_2, and both components exist in the model:

hm_ce_getresolvedlinkentities 7 comps;
output: 1 2
hm_ce_getresolvedlinkentities 7 parts;
output: 0 0

For connector ID 7 with link 1 as component_1, link 2 as component_2, and only component_1 exists in the model:

hm_ce_getresolvedlinkentities 7 comps;
output: 1 0
hm_ce_getresolvedlinkentities 7 parts;
output: 0 0

For connector ID 7 with link 1 as {component_1 component_2}, link 2 as component_3, and only component_1 and component_3 exist in the model:

hm_ce_getresolvedlinkentities 7 comps;
output: {1 0} 2
hm_ce_getresolvedlinkentities 7 parts;
output: {0 0} 0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

2019