Javatpoint Logo
Javatpoint Logo

Line Command

The line in AutoCAD is drawn by specifying the starting and ending point through the cursor.

When we place the cursor on the Line icon, a window appears as shown in the below image:

Line Command

The window here will specify the characteristics of a line.

The steps to create a line are listed below:

  1. Open the AutoCAD software.
  2. Select the Line icon from the ribbon panel or type L or Line and press Enter on the command line.
    The line icon will look like the given image:
    Line Command
  3. Specify the starting point and endpoint using the cursor on the workspace or drawing area, as shown in the below image:
    Line Command
    We can also continue the line segments by specifying the endpoints.
  4. Press Enter or Esc to exit.

Line using Coordinates

The steps to create a line by specifying the coordinates are given below:

  1. Open the AutoCAD software.
  2. Select the Line icon from the ribbon panel or type L or Line and press Enter on the command line.
    The line icon will look like the given image:
    Line Command
  3. Type the coordinate value for the first point in the form of X-coordinate, Y-coordinate.
    For example, 3, 4
    The value of the x-axis and y-axis will be determined with respect to the UCS icon. So we can place the UCS according to the requirements.
  4. Now, type the coordinate value for the second point or endpoint. For example, 10, 6.
  5. The line created is shown in the below image:
    Line Command
    We can continue the line segment by specifying other points.
  6. Press Enter or Esc or Spacebar to exit.

Line using Angle

The left angle bracket (<) represents the angle. We need to move the cursor in the corresponding direction for the angle indication. For example, 50 degrees will be represented as <50.

The steps to create a line with a specific angle are given below:

  1. Open the AutoCAD software.
  2. Select the Line icon from the ribbon panel or type L or Line and press Enter on the command line.
    The line icon will look like the given image:
    Line Command
  3. Specify the first point. We can specify it by using the coordinates or by randomly using the cursor. For example, 4, 5.
  4. Enter the polar coordinates in the form of length, and angle. For example, 7<55. Here, 7 is the length of a line, and 55 is the angle.
    The angle will be drawn w.r.t the previous point.
  5. Press Enter or Esc or Spacebar to exit.
  6. The created line with a specific angle is shown in the below image:
    Line Command
    We can continue the line segment by specifying other coordinates.
  7. Press Enter or Esc or Spacebar to exit.

Line using Relative Coordinate

The relative coordinate is represented using @ symbol. For example, @4, 5. It measures the value from the current point.

It is also used when the dynamic input is off.

The steps to create a line using the relative coordinates are listed below:

  1. Open the AutoCAD software.
  2. Select the Line icon from the ribbon panel or type L or Line and press Enter on the command line.
    The line icon will look like the given image:
    Line Command
  3. Specify the first point. We can specify it by using the coordinates or by randomly using the cursor. For example, 4,3.
  4. Specify the endpoint as the relative coordinate. For example, @3, 3.
  5. The line will appear as the below image:
    Line Command
    We can continue the line segment by specifying other coordinates.
  6. Press Enter or Esc or Spacebar to exit.

What is the difference between relative (@5, 4) and (5, 4)?

The (@5, 4) measures the distance from the current point, while (5, 4) is the value measured from the origin.

Let's consider an example.

The endpoint formed by typing two times @2, 4 from the origin will be 4, 8. We can use any specified point instead of origin.

The endpoint formed by typing two times 2, 4 from the origin will be 2, 4 only. We cannot use any specific point, because the distance will be calculated from the origin only.


Next TopicArc in AutoCAD





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA