add_highlight
add_highlight -colors_color-names_name-setd_setObj
Description
Highlights the specified objects. If no arguments are given, an empty highlight set is created. Once created, the highlight set is listed in the Objects section of the Layer Object Display Panel under highlights.
The GUI equivalent for this command is Edit—Highlight—Create Highlight Set….
Arguments
|
Specifies the color to use for highlighting. Default: The next available color as shown in the Create Highlight Set form. |
|
Value Returned
|
The highlight set is created and the given objects are highlighted. |
Examples
In the following example, the find command finds instances matching the given expression. The results are stored in myset, then are highlighted in green in the artwork window. The highlight set is given the name I101s.
set myset [find_instance -name I101*]
add_highlight -color "green" -set $myset -name I101s
Related Topics
Return to top