asterisk-solid Classes available in-person (strict social distancing) or live online with an extended free retake period. See details.

Hero image for AutoCAD and Line Command

AutoCAD and Line Command

Free AutoCAD Tutorials

Discover how to use the Line Command to draw straight lines. You'll be introduced to how the Command Line works and how to use keystrokes to specify the distance and angle for each line in order to draw the complex shapes.

Make sure you have our free AutoCAD class files downloaded prior to beginning the tutorial.

Preview line command

Getting Started

1. If AutoCAD isn’t already open, launch it now.

2. You should see the Start tab.

3. Click on the large Start Drawing button.

A new Drawing1 tab will open. Drawing files use a .dwg file format and are based on a Drawing Template file (.dwt). For now we'll use the default template file, but you'll see how to use customized templates in a later exercise.

Using the Line Command

1. In the lower right corner, notice the Status Bar.

This contains buttons that can be used to turn some useful features on or off. When a button is turned on, it's highlighted in blue.

2. For now, we want to make sure both Polar Tracking and ORTHOMODE are disabled. If either option is blue, click it to switch it off. You'll learn how these work in the next exercise.

3.  Let's start drawing a line. In the Ribbon panel at the top of the screen, click on the first Line tool.

4. At the bottom of the screen, notice that choosing the tool has activated the Command Line panel.

The Command Line

When entering a command with the mouse or keyboard, it appears in the Command Line. You'll see the command you are in, the stage of the command, and the options that are available. Paying close attention to the Command Line will make you a more effective user.

5. As you'll see with most AutoCAD drawing tools, the first step when a command is entered is to specify the start point. While we could click with the mouse to specify a coordinate, let's be more specific and type it in: To specify the starting point for our shape, press the 2 key, comma (,), then 4 key again so that you end up with 2,4 in the command line:

line starting point

6. Press the Enter key to apply the start point coordinates.

7. Using the mouse, move the cursor upwards to indicate the direction of the next point.

NOTE: You need to use the mouse to point in the general direction you want the line segment to go before entering the distance and angle values.

8. To enter the desired distance amount, type 6, then press Tab to switch to the angle input field.

first line segment

9. We want a 90° angle for this line so type 90 and press Enter. You have just completed your first line segment!

10. For the next line segment (the angeled top-left corner):

  • Move the cursor towards the right (to indicate direction)
  • Type in a distance of 8 units
  • Press Tab
  • Enter an angle of 22°
  • Press Enter to finish drawing the line segment

11. For the next line segment (the horizontal top):

  • Move the cursor towards the right
  • Type in a distance of 10 units
  • Press Tab
  • Enter an angle of 0°
  • Press Enter to finish drawing the line segment

12. For the next line segment (the angeled top-right corner):

  • Move the cursor towards the right
  • Type in a distance of 8 units
  • Press Tab
  • Enter an angle of 22°
  • Press Enter

13. For the next line segment (the vertical right side):

  • Move the cursor towards down
  • Type in a distance of 6 units
  • Press Tab
  • Enter an angle of 90°
  • Press Enter

14. We can use the Close option to both close the shape and end the command. To draw the bottom horizontal line segment, in the Command Line click Close

15. Congratulations, you've just drawn your first shape! Save the file by going to File > Save As

16. Name the file my first line drawing.dwg and click Save.

Learn More About AutoCAD

Create professional blueprints and mechanical drawings through our robust suite of AutoCAD classes in NYC. Our expert instructors will guide you through step-by-step tutorials and have you drafting like a pro in no time!