Draw_rectangle, 35 draw rectangle, Draw rectangle – Achronix ACE Version 5.0 User Manual
Page 330
draw rectangle
Chapter 5. Tcl Command Reference
[-fill]
Optional
The optional -fill option specifies
whether the arc should be filled
with color or not. If this option is
not used, the arc will be hollow.
draw rectangle
draw rectangle
<
x
> <
y
> <
width
> <
height
>
[-layer
<
arg
>
] [-id
<
arg
>
] [-rgb
<
args
>
] [-batch] [-thickness
<
arg
>
] [-fill]
This command allows you to draw a custom rectangle on the GUIs layout view.
Argument
Required/Optional
Description
<
x
>
Required
The required <x> argument
specifies the upper-left x
coordinate for the rectangle.
<
y
>
Required
The required <y> argument
specifies the upper-left y
coordinate for the rectangle.
<
width
>
Required
The required <width>
argument specifies the width of
the rectangle.
<
height
>
Required
The required <height>
argument specifies the height of
the rectangle.
[-layer
<
arg
>
]
Optional
The optional -layer <layer>
option specifies the drawing
layer for the rectangle. If this
option is not used, the top layer
(5) will be used. Using a value of
0 will draw on the background.
[-id
<
arg
>
]
Optional
The optional -id <id> option
specifies a unique id for the
rectangle. If this option is not
used, a unique id will be
automatically generated and
returned by the command.
[-rgb
<
args
>
]
Optional
The optional -rgb <rgb> option
specifies the rgb color value for
the rectangle as a 3 element list
of integers red green blue. If this
option is not used, the color blue
will be used.
[-batch]
Optional
The optional -batch option
causes the GUI to not refresh
after this command. This is
useful when running many
draw commands in a row.
Afterwards, refresh drawing can
be called.
UG001 Rev. 5.0 - 5th December 2012
318