# RECTANG Command
[GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [Commands](Help%20System/GSTARCAD/2027/Commands/(Commands).md)
**Function Description:**
This command is used to create a rectangular polyine.
Users can use this command to specify the rectangular parameters (length, width, and rotated angle) and control corner types (fillet, chamfer or right angle).
**Command Access:**
> **Icon:** 
> **Menu:** Draw > Rectangle
> **Ribbon:** Home > Draw > Rectangle
> **Toolbar:** Draw > Rectangle
> **Command:** RECTANG
> **Alias:** REC
**Command Prompts:**
```
Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width/Oblique]:
```
## **First corner point**
Specifies a corner point of the rectangle.
- **Other corner point:** Specifies another corner point to create a rectangle.

- **Area:** Creates a rectangle by the area and a length or a width. It can create chamfers or fillets on the rectangle by setting the Chamfer or Fillet option.

- **Dimensions:** Creates a rectangle by length and width.
- **Rotation:** Creates a rectangle at a specified rotation angle.

## **Chamfer**
Specifies the chamfer distances for the rectangle.
## **Elevation**
Specifies the Z value for the rectangle. The default is 0.0.
## **Fillet**
Specifies the fillet radius for the rectangle.
## **Thickness**
Specifies the thickness of the rectangle.
## **Width**
Specifies the polyline width for the rectangle.

---
**Related References:**
- [Commands about Linear Geometric Objects (GstarCAD 2026)](../../2026/Commands/Commands%20about%20Linear%20Geometric%20Objects.md)
**Related Tasks:**
- [To Draw a Rectangle (GstarCAD 2026)](../../2026/Commands/To%20Draw%20a%20Rectangle.md)
- [To Draw Polylines (GstarCAD 2026)](../../2026/Commands/To%20Draw%20Polylines.md)
---
[Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/commandReferences/RECTANG.html) · © Gstarsoft Co., Ltd.