*CE_SetColorByMark
Assigns color value to selected connectors.
Syntax
*CE_SetColorByMark mark_id color_value
Type
HyperMesh Tcl Modify Command
Description
Assigns color value to connectors in a mark.
Inputs
- mark_id
- The ID of the mark containing connector entities to which to assign a color. Valid values are 1 and 2.
- color_value
- The integer value representing the color to be assigned to the connectors.
Examples
To assign color defined by value 1553407 to connectors ID 1, 2, 3 and 4 and color value
10724259 to connectors ID 6 and 8 and let the color of connector ID 7 remain
unchanged:
*createmark connectors 1 1 2 3 4
*CE_SetColorByMark 1 1553407
*clearmark connectors 1
*createmark connectors 1 6 8
*CE_SetColorByMark 1 10724259
*setoption g_ce_colorby=7
# Reset color
*setoption g_ce_colorby=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
2025