GstarCAD command

RECTANG command

Create precise rectangular polylines using corner points, dimensions, area, rotation, chamfer or fillet settings.

Command
RECTANG
Alias
REC
Tool group
Draw
Level
Beginner

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

  1. Type RECTANG or its shortcut REC, then press Enter.
  2. Specify the first corner point of the rectangle.
  3. Specify the opposite corner point to define its width and height.
  4. Alternatively, choose Dimensions to enter an exact length and width.
  5. Use Rotation when the rectangle needs to be drawn at a specific angle.
  6. 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.

Dimensions
Defines the rectangle using an exact length and width instead of locating the opposite corner manually.
Area
Creates a rectangle based on a specified area together with a length or width value.
Rotation
Sets the angle of the rectangle relative to the current coordinate system.
Chamfer
Creates bevelled corners using specified chamfer distances instead of standard 90-degree corners.
Fillet
Rounds all rectangle corners using a specified fillet radius.
Width
Sets the width of the polyline segments that form the rectangle.

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.

All commands Updated 29 September 2026
Continue learning
View all commands

Ready to switch to GstarCAD?

Get personalized advice on licensing, migration, and deployment for your business.

Contact us Buy now

No obligation — reply within 24h

Your Cart

Subtotal

Price does not include local taxes or duties.

Proceed to Checkout

Cookie preferences

Choose which cookies you want to allow. Essential and payment cookies cannot be disabled as they are required for the site to function.

Essential

Required

Core functionality including authentication, shopping cart, and language preferences.

Payment

Required

Required for processing payments securely through Stripe and PayPal.

Analytics

Help us understand how visitors interact with our site to improve the experience.

Marketing

Used to deliver relevant advertisements and measure campaign performance.

Functional

Order attribution and traffic source tracking to help us understand how customers find our store.