Create Rectangles and Squares
- Last UpdatedApr 27, 2023
- 1 minute read
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 centre of the rectangle, and dfnpt2 defines the position of a corner. |
|
ASDEFine dfnpt1 dfnpt2 |
Defines a square where dfnpt1 defines the centre 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 centre 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 centre 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. Refer to CIRCLE (CIRC) for further information.