hm_getreplacecomponentpairing
Returns the component pairing for part replacement.
Syntax
hm_getreplacecomponentpairing existing_component_mark incoming_component_mark pairing_mode
Type
HyperMesh Tcl Query Command
Description
Returns the component pairing for part replacement.
Inputs
- existing_component_mark
- The ID of the mark containing the existing/old components.
- incoming_component_mark
- The ID of the mark containing the incoming/new components.
- pairing_mode
- Option to define how pairing should be done:
0 - Consider bounding box and collision approach.
1 - Consider matching name of components first and then bounding box and collision approach.
Example
To find the pairing of source comps 301 302 and target comps 503 505:
*createmark comps 1 301 302
*createmark comps 2 503 505
hm_getreplacecomponentpairing 1 2 1
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2017.2