Get highlighted objects
Syntax
get_highlighted_objects [‑color_index <arg>] [‑rgb <args>] [‑color <arg>]
[‑quiet] [‑verbose]
Returns
list of highlighted objects
Usage
Name | Description |
---|---|
[-color_index]
|
Color index |
[-rgb]
|
RGB color index list |
[-color]
|
Valid values are red green blue magenta yellow cyan and orange |
[-quiet]
|
Ignore command errors |
[-verbose]
|
Suspend message limits during command execution |
Categories
Description
Gets the highlighted objects in the current design open in the Vivado IDE. Objects can be highlighted with the highlight_objects
command.
You can get all highlighted objects in the design, or specify highlighted objects by color, by color index, or by RGB value.
Arguments
-color_index
<arg> - (Optional) Valid values are integers from 1 to 19. Specifies the color index used for highlighting the selected object or objects. The color index is defined by the category of the command. Refer to the Vivado Design Suite User Guide: Using the IDE (UG893) for more information on setting themes.
-rgb
<args> - (Optional) The color used for highlighting objects in the form of an RGB code specified as {R G B}. For instance, {255 255 0} specifies the color yellow.
-color
<arg> - (Optional) The color used for highlighting the specified object or objects. Supported highlight colors are: red, green, blue, magenta, yellow, cyan, and orange.
select_objects
command.-quiet
- (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution.
-verbose
- (Optional) Temporarily override any message limits and return all messages from this command.
set_msg_config
command.Examples
get_highlighted_objects
get_highlighted_objects -color cyan