*CE_ConnectorCreateByListWithCC
Creates a connector from a list and assigns a connectorcontrol/connectorcontroldefault.
Syntax
*CE_ConnectorCreateByListWithCC entity_type list_id ce_style num_links link_entity_type link_mark_id string_array number_of_strings cc_type cc_name
Type
HyperMesh Tcl Modify Command
Description
Creates a connector from a list and assigns a connectorcontrol/connectorcontroldefault.
Inputs
- entity_type
- The entity type that specifies the location to create connectors. Valid values are:
- list_id
- The ID of the list containing the entities. Valid values are 1 and 2.
- ce_style
- The style of connectors to create. Valid values are apply_mass, area, bolt, seam, and spot.
- num_links
- The number of links to use.
- link_entity_type
- The type of entity to create links for. Valid values are:
- link_mark_id
- The ID of the mark of link entities. Valid values are 1 and 2.
- string_array
- The string array ID that contains the additional input parameters. The string array is created using the *createstringarray command. This should always be set to 1.
- number_of_strings
- Integer indicating the size (number of strings) in the string array created using *createstringarray.
- cc_type
- The type of control to assign. Valid values are connectorcontrol and connectorcontroldefault.
- cc_name
- The name of the connectorcontrol/connectorcontroldefault to assign.
Examples
Create a seam connector at the location of line 10 to connect component 3 and 4 using a
tolerance of 6.0 and assign connectorcontrol
seam_quad_ltb:
*createlist lines 1 10
*createmark components 2 3 4
*createstringarray 5 "link_elems_geom=elems" "link_rule=now" "relink_rule=none" "tol_flag=1" "tol=6.000000"
*CE_ConnectorCreateByListWithCC lines 1 "seam" 2 comps 2 1 5 connectorcontrol "seam_quad_ltb"
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
2021