Product Documentation
Virtuoso Space-based Router Command Reference
Product Version IC23.1, September 2023

add_rectangle

add_rectangle 
-color s_color 
-rect {f_xlo f_ylo f_xhi f_yhi} 
[ -fillColor s_color ] 
[ -lineWidth i_pixel ] 
[ -opacity i_opacity ] 
[ -text s_text ] 

Description

Adds a rectangle annotation to the active window.

Arguments

-color s_color

Specifies the color for the rectangle as a character string (such as blue) or in the hexadecimal representation of the color preceded by a pound sign (#). A list of colors and their hexadecimal equivalents can be found on http://eies.njit.edu/~walsh/rgb.html.

-fillColor s_color

Specifies the color for the interior of the rectangle as a character string (such as blue) or in the hexadecimal representation of the color preceded by a pound sign (#).

Default: No fill

-lineWidth i_pixel

Specifies the width (in pixels) of the line.

Default: 1

-opacity i_opacity

Specifies the opacity for rectangle fill. Valid values are 0 (transparent) through 255 (opaque). If -fillColor is not given, the -color setting is used for the fill.

Default: 255 (opaque) when -fillColor is given.

-rect {f_xlo f_ylo f_xhi f_yhi}

  

Specifies the bounding box coordinates for the rectangle.

-text s_text

Specifies text to fit in the rectangle. If this argument is given, -fillColor and -opacity are ignored.

Default: No text is included.

Examples

The following example adds a rectangle annotation, colored blue, with enclosed text of vm1.

add_rectangle -color blue -lineWidth 2 -rect {120.1 132.3 123.6 134.1} -text vm1

Related Topics

Collaborate Commands

add_arrow


Return to top
 ⠀
X