What does RECTANG do?
RECTANG creates a rectangular closed polyline from two opposite corner points or from specified dimensions and other geometric settings. Because the result is a single polyline object rather than four separate lines, the rectangle can be selected, moved, offset or edited as one object. The command also supports rounded corners, chamfers, rotation and predefined dimensions.
How to use the command
- Type
RECTANGor its shortcut REC, then press Enter. - Specify the first corner point of the rectangle.
- Specify the opposite corner point to define its width and height.
- Alternatively, choose Dimensions to enter an exact length and width.
- Use Rotation when the rectangle needs to be drawn at a specific angle.
- GstarCAD creates the result as one closed rectangular polyline.
Command: REC ↵
Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width/Oblique]: 0,0 ↵
Specify other corner point or [Area/Dimensions/Rotation]: @4000,3000 ↵
Key RECTANG options
The available options allow you to control the rectangle’s size, orientation and corner geometry before placing it in the drawing.
Practical example: draw a 4000 × 3000 mm room
Suppose a room outline must measure 4000 mm by 3000 mm. Start RECTANG and enter 0,0 as the first corner. For the opposite corner, enter the relative coordinate @4000,3000. GstarCAD creates one closed rectangular polyline with the required dimensions, ready for operations such as OFFSET, HATCH or area measurement.
Tip
Use Dimensions when the exact length and width are known but the opposite corner position is not. Use Fillet or Chamfer before placing the rectangle when all four corners require the same treatment.