RECTANGLE (RECT)
- Last UpdatedFeb 27, 2026
- 2 minute read
Attributes
|
PTRF |
- |
Point reference for origin |
|
NLSTYLE |
- |
Note line style |
|
NLCOLOUR |
- |
Note line color |
|
FSTYLE |
- |
Fill style |
|
FCOLOUR |
- |
Fill color |
|
OCOD |
- |
Origin code (center, LSID, TLEFT, TSIDE, BSIDE, RSIDE, TRIGHT, BLEFT, BRIGHT) |
|
ADEG |
Angle in owner |
|
|
XLEN |
X axis length |
|
|
YLEN |
Y axis length |
|
|
FRAD |
Fillet radius |
Resize
|
XLEN value [DESIGN] YLEN value [DESIGN] |
Design option applies to VNOT members only |
|
SQUARE value [DESIGN] |
Sets XLEN and YLEN to value specified. |
|
XLEN @ YLEN @ |
Uses relevant offset from origin of primitive to define XLEN or YLEN as required. |
|
XLEN X value Y value YLEN X value Y value |
Manual method |
|
THROUGH @ THRU @ |
Prompts: Input a point on the current Sheet Sets XLEN and YLEN so that a corner of the rectangle is positioned at the point specified. |
|
THR X value Y value |
Manual method |
|
FRADIUS value [DESIGN] |
Sets FRAD to value specified. If this is too big for the existing XLEN or YLEN values then a warning is output and the rectangle is drawn square-cornered. FRAD is set as specified and is used when XLEN and YLEN are made large enough. |
Redefine the Origin
As for ELLIPSE, but also:
ORIG TLEFT
ORIG TRIGHT
ORIG BLEFT
ORIG BRIGHT
Create Rectangles and Squares
Rectangles can be created using the commands:
|
ADEFine dfnpt1 dfnpt2 |
Defines a rectangle where dfnpt1 defines a position (2D, 3D, p-point) which is the center of the rectangle, and dfnpt2 defines the position of a corner. |
|
ASDEFine dfnpt1 dfnpt2 |
Defines a square where dfnpt1 defines the center of the rectangle, and dfnpt2 defines the position of a corner. |
|
SDEFine dfnpt1 dfnpt2 |
Defines a square where dfnpt1 and dfnpt2 define the positions of the corners |
For example:
|
ADEF X400 Y400 X500 Y450 |
Defines a RECT 200 by 100 with its center at X400 Y400 and a corner at X500 Y450. |
|
SDEF X400 Y400 X500 Y450 |
Defines a RECT 100 square with one corner at X400 Y400 and the other at X500 Y500. |
|
ASDEF X400 Y400 X500 Y450 |
Defines a RECT 200 square with its center at X400 Y400 and a corner at X500 Y500. |
These commands can also be used with the cursor, for example:
ADEFine @
A prompt requests two 2D points to be input.
All other operations are as for Circles. See CIRCLE (CIRC).