Topics Covered in This AutoCAD Tutorial:
Using the Rectangle Command
Learning Objectives
Rectangle Command Mastery
Learn to use the Rectangle tool from the Ribbon panel to create precise rectangular shapes with coordinate input.
Polyline Understanding
Understand the difference between single polyline objects and multiple separate line segments for better drawing efficiency.
Dynamic Input Control
Master Dynamic Input settings to control coordinate behavior and avoid unexpected rectangle placement results.
Exercise Preview

Exercise Overview
In this exercise, you'll master the Rectangle Command to create rectangular polylines—one of the most fundamental yet versatile tools in AutoCAD. Understanding polylines is crucial for efficient drafting: they're single, unified objects even when composed of multiple line segments. This distinction matters significantly in professional practice. When you draw a rectangle using the Line Command, each side becomes a separate object requiring individual selection and modification. The Rectangle Command, however, creates a single continuous polyline that behaves as one entity, streamlining your editing workflow and improving drawing performance in complex projects.
This approach becomes especially valuable when working with large architectural plans or mechanical drawings where object management and file efficiency are paramount.
Rectangle Command vs Line Command
| Feature | Rectangle Command | Line Command |
|---|---|---|
| Object Type | Single polyline object | Multiple separate objects |
| Editing Efficiency | Select once to edit entire shape | Must select each line segment individually |
| Drawing Speed | Two corner points only | Four separate line segments |
Using the Rectangle Command
To initiate rectangle creation, locate the Rectangle tool
in the top Ribbon panel and click it.The command line will confirm that the Rectangle Command is now active and awaiting your input.
Like most drawing commands in AutoCAD, the Rectangle Command requires you to establish a starting reference point. You can accomplish this by clicking directly in the drawing area or by entering precise X,Y coordinates for maximum accuracy.
For this exercise, type 2,2 to set your first corner point, then press Enter to confirm.
With the first corner established, AutoCAD now requires the opposite corner coordinates to define your rectangle's dimensions and complete the geometry.
Type 4,6 and press Enter. Notice how this second coordinate pair simultaneously defines both the rectangle's width (4 units) and height (6 units) while completing the command in one efficient step.
Professional Tip: You can specify negative X,Y values to position the opposite corner to the left and/or below your starting point—a useful technique when working within constrained design spaces or when your reference point isn't the lower-left corner.
Press Enter to repeat the Rectangle Command and create a second rectangle. This command repetition feature saves time during repetitive drafting tasks.
For the second rectangle's first corner, type the coordinates 8,11 and press Enter.
Complete the second rectangle by typing 10,4 and pressing Enter. This places the opposite corner and finalizes the geometry.
Preserve your work by navigating to File > Save As and locating your Class Files > AutoCAD Class directory.
Name your file rectangle line drawing.dwg and click Save to store your progress.
Creating Your First Rectangle
1Access Rectangle Tool
Click the Rectangle tool in the top Ribbon panel to start the Rectangle Command.
2Set First Corner Point
Type coordinates 2,2 and press Enter to establish the starting corner point.
3Define Opposite Corner
Type coordinates 4,6 and press Enter to complete the rectangle with 4 units width and 6 units height.
4Save Your Work
Go to File > Save As, navigate to Class Files > AutoCAD Class, name it 'rectangle line drawing.dwg' and click Save.
Coordinate FlexibilityYou can enter negative X, Y values to specify the opposite corner to the left and/or below the starting corner point, giving you full directional control.
Dynamic Input
Understanding AutoCAD's coordinate systems is essential for professional drafting accuracy. When you disable the Dynamic Input button
in the Status Bar, AutoCAD reverts to Absolute Coordinate format, fundamentally changing how the Rectangle Command interprets your input. With Dynamic Input disabled, coordinate entries specify absolute positions on the drawing's XY grid rather than relative dimensions. For example, entering 5,3 would place the rectangle's opposite corner at the absolute coordinates 5X, 3Y instead of creating a rectangle with a 5-unit width and 3-unit height. This behavior can produce unexpected results that may compromise your drawing accuracy. If your rectangles aren't appearing as intended, verify that Dynamic Input is enabled—it's become the standard workflow for most drafting professionals since AutoCAD 2006 and remains the default in current versions through 2026.
If Dynamic Input is disabled in the Status Bar, AutoCAD reverts to Absolute Coordinate format, which fundamentally changes how the Rectangle Command interprets your coordinate inputs.
Dynamic Input On vs Off
| Feature | Dynamic Input Enabled | Dynamic Input Disabled |
|---|---|---|
| Coordinate Interpretation | Width and height dimensions | Absolute XY grid positions |
| Input 5,3 Result | Rectangle 5 wide by 3 high | Corner placed at grid position 5X, 3Y |
| Predictability | Relative to first corner | Absolute grid reference |
Troubleshooting Rectangle Command Issues
Ensures coordinates are interpreted as width/height rather than absolute positions
Understand whether you're inputting dimensions or grid positions
Use simple test coordinates to confirm current input behavior