*CE_AddLinkEntitiesWithRules
Update connectors at the specified locations with rules.
Syntax
*CE_AddLinkEntitiesWithRules connector_mark_id entity_type entity_mark_id entity_state ce_rules ce_le_rule tolerance_flag tolerance num_ents
Type
HyperMesh Tcl Modify Command
Description
This command updates connectors at the specified locations with rules.
Inputs
- connector_mark_id
- The ID of the mark containing the connectors to update. Valid values are 1 and 2.
- entity_type
- Type of entity to be added to the connectors as links.
- entity_mark_id
- The ID of the mark containing the entities to use as links. Valid values are 1 and 2.
- entity_state
- The state of the link entities. Valid values are:
- ce_rules
- Flag indicating when to make the links. Valid values are:
- ce_le_rule
- Flag indicating how to make the links. Valid values are:
- tolerance_flag
- Flag indicating whether to use the default tolerance. Valid values are:
- tolerance
- Used to add entities only within the given tolerance from the specified connector.
- num_ents
- Number of entities to add/update connector (connectors thickness (2T, 3T, etc.) value).
Examples
Update connectors 1 and 2 to add the nearest two out of four components specified, using a
tolerance of 1.0. Components will be linked by
IDs:
*createmark connectors 1 1 2
*createmark comps 1 21 23 24 27
*CE_AddLinkEntitiesWithRules 1 comps 2 1 1 1 1 1.0 2
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}