*CE_AutoCreateMatingConnectors

Identifies the mating holes in selected parts and creates connectors.

Syntax

*CE_AutoCreateMatingConnectors entity_type mark_id <option1>=<value1> <option2>=<value2> … <optionN>=<valueN>

Type

HyperMesh Tcl Modify Command

Description

Identifies the mating holes in selected components or parts and creates a connector at the specified locations of the mating holes.

Inputs

entity_type
The input entity type. Valid values are components and parts.
mark_id
The ID of the mark containing the entities. Valid values are 1 and 2.
Allow_Hole_to_Tube=<value>
Allows identifying tube hole mates. Valid values are 0 and 1.
Allow_mismatched_shapes=<value>
Allows identifying mismatched holes. Valid values are 0 and 1 (default).
Allow_Self=<value>
Allows identifying mating holes within the same part/component. Valid values are 0 and 1.
Center_CE=<value>
Allows the connector to be created at the center of the two mating holes. Valid values are 0 and 1.
Hole_Type=<value>
The type of the hole to be identified as the mating hole.
1 - General
2 - Circular
4 - Rounded
7 - All
8 - Square
16 - Rectangular
Lateral_Distance=<value>
The lateral distance (default true).
Max_Angle=<value>
The maximum lateral angle within which the mating holes should be identified.
Max_Dia=<value>
The maximum diameter of the hole considered for hole identification.
Max_Distance=<value>
The range within which the mating holes should be identified.
Max_lateral_factor=<value>
The maximum lateral factor (default 0).
Min_Dia=<value>
The minimum diameter of the hole considered for hole identification.

Examples

To identify mating holes and create connectors between the displayed parts at the identified locations:
*createmark parts 1 displayed
*CE_AutoCreateMatingConnectors parts 1 Hole_Type=7 Max_Distance=10 Max_dia=20 Min_dia=0 Max_Angle=5 Max_lateral_distance=0.874886635 Max_lateral_factor=0 Allow_mismatched_shapes=1 Allow_Hole_to_Tube=0 Allow_Self=0 Lateral_Distance=1 Lateral_Factor=0 Center_CE=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

2022.3