Shortcuts

AutoCAD XL Shortcut : XLINE : Creates a line of infinite length

Intro

If you use AutoCAD for drafting and need precise reference geometry, the XLINE (construction line) command is one of the fastest ways to create infinite lines that help position and trim other objects. This guide explains, step by step, how to use the XLINE shortcut, what each option does, common problems and fixes, practical alternatives, and tips to improve your workflow.


What is the xline shortcut?

The XLINE command in AutoCAD (often referred to as the xline shortcut) creates a construction line of infinite length. construction lines are not limited by drawing extents — they extend infinitely in both directions — and are ideal as alignment aids, cutters for TRIM, or references for geometry layout.

Common prompt options for XLINE include: Hor, Ver, Ang, Bisect, Offset, and Undo. In most installations you launch it by typing XLINE then Enter (some users set an alias such as XL).


When to use XLINE

  • To create reference axes or centrelines that extend through the whole drawing.
  • To trim or extend objects using the xline as a cutting edge.
  • To construct bisectors between two lines or to place a line at a precise angle.
  • When you need temporary geometry that you will later erase or move to a non-printing layer.

How to use xline shortcut (step by step)

Basic command flow:

  1. Type XLINE and press Enter.
  2. At the prompt you can either:
    • Click a point to define the line by two points (you will be prompted to specify a second point to set direction), or
    • Choose one of the options: Hor, Ver, Ang, Bisect, Offset, Undo.
Read Also:  AutoCAD REG Shortcut : REGION : Converts An Object That Encloses An Area Into A Region Object

Detailed options and examples:

  • Horizontal (Hor)

    • Type H (or choose Hor) after starting XLINE.
    • Click a point or enter coordinates. AutoCAD creates an infinite horizontal line through that point (parallel to the current X-axis in the UCS).
  • Vertical (Ver)

    • Type V (or choose Ver).
    • Click a point or enter coordinates. Creates an infinite vertical line through the picked point.
  • Angle (Ang)

    • Type A (or choose Ang).
    • Enter the angle (relative to the current UCS X-axis) and pick a point for the line to pass through. Creates an infinite line at that specified angle.
  • Bisect (Bisect)

    • Choose Bisect.
    • Select two lines (or linear edges). XLINE creates the angle bisector(s) between the two selected lines — useful to find centerlines or symmetrical axes.
  • Offset (Offset)

    • Choose Offset.
    • Enter an offset distance, then select an existing xline or line and indicate the side to place a parallel infinite line at that distance.
  • Direct two-point creation

    • After starting XLINE, click the first point and then the second point. The infinite line will follow the direction defined by the two picked points.

Practical example (create a construction centerline at 30° through a known point):

  • Type XLINE Enter → Ang Enter → type 30 Enter → click the reference point. An infinite line at 30° through that point is created.

Practical examples (before/after)

  • Before: You have two offset walls and need the centerline between them.
    Use XLINE > Bisect (select the two outer lines). The bisector becomes your centerline.

  • Before: You need a reference axis at 90° through a corner.
    Use XLINE > Ver (or Hor) through that corner point to create the axis.

  • Before: You need a construction grid spaced every 500 mm.
    Use XLINE with Offset repeatedly (or create one xline and then OFFSET to generate parallels).


Alternatives to XLINE

  • RAY — creates a semi-infinite line starting at a point and extending infinitely in one direction. Use when you need a one-way guide.
  • LINE with long length — quick workaround if infinite behavior is not required (but not as clean for TRIM).
  • Temporary lines on a non-printing layer — create regular lines on a dedicated “CONSTRUCTION” layer set to No Plot (use Layer state to turn off when done).
  • Offset command on an existing line — for parallel guides at a known distance.
  • Guides with Polar tracking/Ortho — build precise direction-controlled lines without creating infinite geometry.
  • Construction geometry in blocks or reference files — if you reuse the same layout repeatedly.
Read Also:  AutoCAD DRA Shortcut : DIMRADIUS : Creates A Radius Dimension For A Circle Or An Arc

Common problems and fixes (Why xline shortcut doesn’t work)

Problem: Typing XLINE does nothing / command not found

  • Fixes:
    • Ensure you are in an AutoCAD product that supports XLINE (most full AutoCAD and AutoCAD LT versions do). If using a specialized or older product, verify command availability.
    • Check your command aliases: open acad.pgp or the CUI to see if the alias is missing or reassigned.
    • Type the full XLINE (not an ambiguous single-letter alias like X, which is a different command).

Problem: Xlines are created but invisible / off-screen

  • Fixes:
    • Verify the current layer is not frozen or turned off. Xlines follow the current layer visibility.
    • Zoom to extents (type ZOOM > E) to locate a far-off infinite line that may appear off-screen due to coordinate mis-entry.
    • Check UCS orientation: xlines are created in the current UCS plane; an unusual UCS may position the xline out of the expected view.

Problem: Xline appears but cannot be used to trim/modify objects

  • Fixes:
    • Use TRIM and select the xline as a cutting edge (xlines work well for trimming other objects).
    • If a command won’t accept xlines, convert the xline to a regular line (use BREAK or draw a short line), or create a working line on a construction layer.

Problem: OFFSET won’t create parallel xlines (or other unexpected Offset behavior)

  • Fixes:
    • Use the Offset option inside the XLINE command rather than the global OFFSET command if behavior differs.
    • Make sure you selected the correct object type; some versions may have constraints or require selecting an xline explicitly.

Problem: Xlines print on final drawings

  • Fixes:
    • Place xlines on a dedicated CONSTRUCTION layer and set that layer to No Plot/Do not print, or erase them before plotting.
Read Also:  AutoCAD POL Shortcut : POLYGON : Creates An Equilateral Closed Polyline

Problem: Working in 3D — xlines are not in the expected plane

  • Fixes:
    • Set the UCS to the plane where you want the xline (e.g., UCS World or UCS Object), or use PLAN to align view to UCS before creating the xline.

Tips and best practices

  • Keep a dedicated CONSTRUCTION or C-REFERENCE layer set to No Plot for all xlines and temporary geometry. This keeps your model clean and avoids plotting artifacts.
  • Use Object Snaps (OSNAP) such as Endpoint, Midpoint, Intersection to place xlines precisely.
  • Use Bisect to quickly find symmetry axes without manual calculations.
  • After using xlines as references, erase them or move to a non-printing layer to avoid accidental plotting.
  • Use XLINE > Offset to generate multiple parallel guides quickly (use repetition or the regular OFFSET on a line if you prefer).
  • Use Ctrl+R / F8 (Ortho) and Polar Tracking to help define directions before creating an xline by two points.

FAQ

How do I delete all xlines in my drawing?

Use a selection filter: type QSELECT, set Object Type = XLINE, Operator = Select All, then click OK and press Delete. Alternatively use FILTER command to select and erase.

Can I convert an xline to a normal finite line?

Yes. You can draw a finite LINE along the xline using Object snap to two points, or use BREAK with two points to limit the xline to a segment, then EXPLODE/EDIT as needed. Another method: draw a normal line on top of the xline and then erase the xline.

Why does XLINE create lines at strange orientations in 3D models?

XLINE creates lines in the current UCS plane. If your UCS is rotated or aligned to a non-standard plane, xlines will follow that orientation. Set the UCS to World or the intended plane before creating xlines.

Do xlines print?

By default xlines are regular drawing objects and can print. Best practice: place them on a No Plot layer (construction layer) or erase them before printing to prevent them from appearing in output.

Is there a shortcut alias for XLINE?

The full command is XLINE. Some users create a custom alias like XL in acad.pgp. Avoid single-letter aliases that conflict with built-in commands.

How can I create multiple parallel xlines quickly?

Create one xline, then use XLINE > Offset or use a finite line with the OFFSET command and then convert the result if you need infinite guides. Using a combination of OFFSET and a construction layer is a fast approach.

Why can’t I snap to intersections with xlines?

If you can’t snap, verify Object Snap settings (OSNAP) are enabled and include Intersection. Also ensure both objects are on visible layers and not frozen/locked.