*CE_ConvertLinksByMark
Converts connector links to a new entity type.
Syntax
*CE_ConvertLinksByMark mark_id target_entity_type link_index ?target_link_rule? ?target_link_state? ?keep_current_state?
Type
HyperMesh Tcl Modify Command
Description
Converts connector links to a new entity type.
Inputs
- mark_id
- The ID of the mark containing the connectors to update. Valid values are 1 and 2.
- target_entity_type
- The entity type to which the link is converted. Valid values are:
- link_index
- The index of the link to be converted, starting from 0.
- ?target_link_rule?
- The optional rule to set for the converted link entity. Valid rules are:
- ?target_link_state?
- The flag to set for the link entity that specifies if you are connecting to mesh or to geometry. The supported values are:
- ?keep_current_state?
- Optional option to keep the current connector state after the update operation. Valid states are:
Examples
*createmark connectors 1 displayed
*CE_ConvertLinksByMark 1 parts 0
*createmark connectors 1 3
*CE_ConvertLinksByMark 1 parts -1
*createmark connectors 1 displayed
*CE_ConvertLinksByMark 1 parts -1 5
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0
2017.2 - Added new optional arguments target_link_rule, target_link_state and keep_current_state.