# 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:** ![](Help%20System/GSTARCAD/2027/assets/eddc8aee352f95b9ad11194413ec24e9a16a690eb9d730debf3c7d96f8d8db7b.png) > **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. ![](Help%20System/GSTARCAD/2027/assets/164304e4d37aab63ab11e348a282f32ceecb90a36e191582cb77f4ef061dec21.png) - **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. ![](Help%20System/GSTARCAD/2027/assets/220f5c9b3d35dad8505b3ef534f845ae7f8cb04ca4ef4d8bf2f426e98cbaa775.png) - **Dimensions:** Creates a rectangle by length and width. - **Rotation:** Creates a rectangle at a specified rotation angle. ![](Help%20System/GSTARCAD/2027/assets/56b4b0d907c84194dbd87d0ef3300c59985ee6e728d25eea677972a18b13038e.png) ## **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. ![](Help%20System/GSTARCAD/2027/assets/9253f08f63270c109eaffa9e9f0beaca4efe9ec867fbd47b92f062a8303ab4e6.png) --- **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.