*autocolorwithmark

Autocolors the selected entities.

Syntax

*autocolorwithmark entity_type mark_id ?option?

Type

HyperMesh Tcl Modify Command

Description

Autocolors the selected entities. This command offers three different modes: random, legacy, and accessibility.

Inputs

entity_type
The type of entity to autocolor.
mark_id
The ID of the mark containing the input entities.
option
The coloring mode.
0 – Random (default)
1 – Legacy
2 – Accessibility

Examples

To autocolor all properties using the random mode:
*createmark properties 1 all
*autocolorwithmark properties 1 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

2023 – Added optional argument option.