AutoCAD Extend, Lengthen and Join Commands, With Worked Examples
When to use EXTEND, LENGTHEN or JOIN in AutoCAD 2027 and LT, why a line won't extend or join, and what each LENGTHEN option really does. Worked mechanical examples, from a 29.282 mm extension to an arc lengthened by angle, each checked by a script.

EXTEND, LENGTHEN and JOIN all change where an object ends, but each answers a different question. EXTEND stretches a line or arc until it meets another object (a boundary). LENGTHEN changes an object by a number you type: a delta, a percentage or a total length or angle. JOIN merges separate lines, arcs or polylines into one object. Pick the command by what you know: a boundary, a number, or pieces to merge.
In short (AutoCAD 2027 documentation)
- EXTEND runs in Quick mode by default (TRIMEXTENDMODE = 1, since AutoCAD 2021): every object is a potential boundary, so you just pick near the end to extend. Hold Shift while picking to trim instead.
- A boundary that stops short still works if Edge is set to Extend (EDGEMODE = 1, initial value 0): AutoCAD extends to the boundary's imaginary continuation.
- LENGTHEN has four options: DElta (add or subtract), Percent (a percentage of the current length, so 75 makes it shorter), Total (final length or arc angle) and DYnamic (drag). It acts on the end nearest your pick and does not affect closed objects.
- JOIN merges collinear lines even with gaps, arcs on the same centre and radius, and touching lines, arcs and polylines (which become one polyline). Construction lines, rays and closed objects can't be joined.
- Worked numbers in this guide (a 29.282 mm extension, five LENGTHEN results on a 110 mm line, an arc going from 41.888 to 52.360 mm) were computed and checked by Skill-Lync with a script.
This guide is for mechanical engineering students and junior design engineers who already draw lines and arcs in AutoCAD or AutoCAD LT and want to clean up and finish drawings faster. Command behaviour is quoted from Autodesk's AutoCAD 2027 help (AutoCAD 2027 was released on 25 March 2026); all three commands are in AutoCAD LT 2027 too, and they behave the same way in 2021-2026 releases.
Extend, Lengthen or Join: which command do you need?
Use EXTEND when the line must stop exactly on another object. Use LENGTHEN when you know the change as a number (add 5 mm, make it 140 mm, make the arc 90°). Use JOIN when a feature is drawn in several pieces that should be one object.
| Command | You know | Typical mechanical use |
|---|---|---|
| EXTEND EXTEND (alias EX) | Where it must stop: another line, arc, circle or polyline | Run a hidden line or a rib edge up to the outline; close a corner after OFFSET |
| LENGTHEN LENGTHEN (alias LEN) | A delta, a percentage, a total length, or an arc angle | Centre lines a few mm past a hole; make a slot arc exactly 90° |
| JOIN JOIN | Several pieces should be one object | Rebuild a profile broken by BREAK or a DXF import; one polyline for an outline before OFFSET or area checks |
How does the Extend command work in AutoCAD?
Type EXTEND (or EX) and click the line or arc near the end you want to lengthen. In the default Quick mode every object in the drawing acts as a boundary, so AutoCAD runs the end along its natural path to the first object it meets. Press Enter to finish. Hold Shift while clicking to trim instead of extend.
Quick mode became the default in AutoCAD 2021 and is controlled by the TRIMEXTENDMODE system variable (initial value 1). It accepts three ways of picking: click objects one by one, drag a freehand path through several, or click two empty points to make a fence across them. If you prefer the older two-step workflow, set the Mode option to Standard (or TRIMEXTENDMODE to 0): you first select the boundary edges and press Enter, then pick the objects to extend. In Standard mode, pressing Enter at the first prompt makes every object a boundary.
A line extends along its own direction; an arc extends along its own circle. If you click a line closer to its start, the start moves, so always pick near the end that should grow.
Worked example: a horizontal line at y = 10 runs from x = 0 to x = 20, and a Ø50 circle is centred at (50, 0). EXTEND moves the right end to the first point where the line's path meets the circle:
The line grows by 7.087 mm to end exactly on the circle, the near side of it, because EXTEND stops at the first boundary it meets.
Why won't my line extend to the boundary?
Most often the line's path never actually meets the boundary as drawn: the boundary is too short. Set the Edge option to Extend (EDGEMODE = 1) so AutoCAD counts the boundary's imaginary continuation. Other causes: you picked near the wrong end, the object is closed, or the objects sit at different Z heights in 3D.
Here is the first case worked through. A 40 mm line starts at (0, 0) at 30°, so it ends at (34.641, 20). The boundary is a vertical line at x = 60, but it is drawn only from y = 0 to y = 20. Along the line's path, x = 60 is reached at:
At y = 34.641 the path passes above the top of the drawn boundary, so with Edge = No Extend (the default, EDGEMODE = 0) nothing happens. With Edge = Extend, AutoCAD treats the boundary as an infinite line and extends the 40 mm line by 29.282 mm to (60, 34.641).
Autodesk's EDGEMODE page defines the "natural extension" used here: a line or ray becomes an infinite line, an arc becomes its full circle, an elliptical arc becomes its ellipse, and a polyline is split into its line and arc pieces, each extended the same way. The rest of the checklist:
- Wrong end. EXTEND and LENGTHEN act on the end nearest the pick point. Click close to the end that should move.
- Closed objects. Circles and closed polylines have no free end, so they can be boundaries but can't be extended.
- 3D or different elevations. If the objects aren't in the same plane, use the Project option (UCS or View) so AutoCAD projects them onto a common plane before extending.
- Standard mode with no boundary picked. Either select the boundary first or press Enter to use every object.
How does the Lengthen command work in AutoCAD?
Type LENGTHEN (or LEN), choose an option, enter the value, then click the object near the end that should change. DElta adds or subtracts a length (or an arc angle), Percent sets the length to a percentage of the current one, Total sets the final length or angle, and DYnamic lets you drag the end.
Clicking an object before choosing an option just reports its length (and an arc's included angle). LENGTHEN is Autodesk's suggested alternative to TRIM or EXTEND when there is no boundary to work to, only a number. It changes the length of open objects such as lines and arcs (and the included angle of arcs); it does not affect closed objects. Here is what each option does to a 110 mm line, with the far end fixed:
| Option and value | Result | Note |
|---|---|---|
| DElta 50 | 160 mm | Positive extends |
| DElta −20 | 90 mm | Negative trims |
| Percent 75 | 82.5 mm | 75% of the length, not "75% longer" |
| Percent 150 | 165 mm | Over 100 extends |
| Total 140 | 140 mm | Final length, whatever it was before |
Percent catches people out. Typing 75 does not add 75%; it leaves 75% of the line. To make a line 75% longer, type 175.
How do you lengthen an arc by an angle?
For arcs, DElta and Total each offer an Angle sub-option that changes the included angle instead of the length. The radius stays the same, so the arc length follows with in radians. Worked example for an R 40 arc of 60°:
DElta Angle 15 takes the arc from 60° to 75° (52.360 mm). DElta with a length of 10 mm instead adds rad, which is 14.324°, giving 74.324° and 51.888 mm. Total Angle 90 makes it a quarter circle of 62.832 mm, whatever its angle was before.
Worked example: centre lines past a hole
Centre lines on a drawing usually run a short distance past the feature they mark. Draw the two centre lines of a Ø40 hole quadrant to quadrant (40 mm long), then run LENGTHEN, DElta 3, and click near each end of each line: four clicks give two 46 mm centre lines that overshoot the hole by 3 mm each side. Use the distance your office or drawing standard specifies; the method is the same. This is faster and more exact than stretching by eye.
How does the Join command work in AutoCAD?
Type JOIN, select the objects, and press Enter. AutoCAD merges them at their endpoints into one object. Collinear lines become one line even with gaps between them; arcs with the same centre and radius become one arc (or a circle); touching lines, arcs and polylines in one plane become a single polyline.
What you get depends on what you select and, if you pick a source object first, on that object's type. The rules from Autodesk's JOIN reference:
| You join | Rule | Result |
|---|---|---|
| Lines only | Must be collinear; gaps allowed | One line |
| Arcs only | Same centre and radius; gaps allowed | One arc, or a circle if they close |
| Lines, arcs, polylines | Touching end to end, same plane | One polyline |
| Splines, elliptical arcs, helixes | Touching end to end; any plane | One spline |
| Not in one plane (no curves) | Touching end to end | One 3D polyline |
Worked example: two lines on y = 0, one from 0 to 40 and one from 55 to 90. They are collinear, so JOIN fills the 15 mm gap and leaves one line from 0 to 90. That's how you heal a line that BREAK split for a dimension or text that has since moved.
Arcs are joined counterclockwise starting from the source arc, so which arc you pick first decides which gap gets filled. If you select a single arc, JOIN offers a Close option that turns it into a full circle (and an elliptical arc into an ellipse). The PEDIT command's Join option does a similar job when you specifically want a polyline.
Why won't AutoCAD join my lines?
Usually because they aren't exactly collinear or don't actually touch. Lines can be joined across a gap only if they lie on the same straight line; lines in different directions must share an endpoint. Construction lines (XLINE), rays and closed objects such as circles can't be joined at all.
- "Almost" collinear lines. A line drawn by eye at 0.3° won't join a horizontal line across a gap. LIST both lines and compare their angles, or close the gap with EXTEND or FILLET (radius 0) first.
- Tiny gaps between non-collinear pieces. Common in DXF imports. Bring the ends together with EXTEND, FILLET radius 0 or grips, then JOIN.
- Different planes. Touching lines at different Z values join into a 3D polyline, not a 2D one, and later 2D commands may treat them differently. Flatten them to one elevation first if the drawing is 2D.
- Source object rules. If you pick a single line as the source, only collinear lines can join it. Select all the pieces at once instead to let AutoCAD build a polyline.
Where do Scale and Rotate fit with these commands?
SCALE and ROTATE change size and orientation, not end points, but their Reference option solves the same kind of problem: you know the result you want, not the factor. SCALE Reference scales a known length to a new length; ROTATE Reference turns an edge to an absolute angle. Both save you from computing factors by hand.
Worked example: a supplier's drawing imported in inches shows a Ø50 mm hole as 1.9685 units across. Run SCALE, pick the objects and a base point, type R, pick the two ends of that diameter (1.9685), then type 50. AutoCAD applies the factor , the inch-to-millimetre ratio, without you working it out. ROTATE works the same way: type R, pick two points on an edge, and type the angle it should end up at, such as 0. Our guide to the Rotate and Scale commands covers them in depth.
Worked example: cleaning up an imported part outline
A common clean-up job is tidying a profile that came in from another system. A sensible order: JOIN the collinear pieces of each edge, EXTEND short edges to meet their neighbours (Quick mode, or Edge = Extend if a neighbour stops short), LENGTHEN the centre lines past the holes, then JOIN the whole outline into one polyline so AREA, OFFSET and hatching treat it as a single closed boundary. The same toolkit drives Skill-Lync's latch plate design walkthrough, where offset, trim, extend and fillet build a full part from a few lines. For the civil-side view of the same edits, see Trim, Extend and Break for civil drawings and our Polyline command guide.
Where do Skill-Lync courses fit?
Skill-Lync's AutoCAD Essentials for Mechanical Engineers course has 44 recorded lessons (20 h 30 min) over a 12-week programme, with two industry projects, and covers drafting, editing commands like these, dimensioning, GD&T and plotting. Its first three lessons are free on Grow, the full course is also free on Skill-Lync's YouTube channel, and you can compare every Skill-Lync AutoCAD course. The previous lesson in this blog series covers text formatting and essential commands. To pick the right course for your background, talk to a Skill-Lync counsellor.
Frequently asked questions
What is the shortcut for the Lengthen command in AutoCAD?
The default command alias is LEN: type LEN and press Enter. Then type DE for Delta, P for Percent, T for Total or DY for Dynamic, enter the value, and click near the end of each object to change. Press Enter to finish. EXTEND's alias is EX, and JOIN can simply be typed in full.
What is the difference between Extend and Lengthen in AutoCAD?
EXTEND needs a boundary: it runs the end of a line or arc until it meets another object. LENGTHEN needs a number: it adds a delta, applies a percentage or sets a total length or arc angle, with no boundary involved. Use EXTEND to meet geometry exactly and LENGTHEN to hit a dimension.
How do I extend a line without selecting a boundary?
In AutoCAD 2021 and later you don't need to: in the default Quick mode every object is a boundary, so you just click near the end of the line. If no object lies on its path, use LENGTHEN with DElta or Total instead, or set Edge to Extend so a boundary that stops short still counts.
How do I switch EXTEND back to the old way of picking boundaries first?
Start EXTEND, choose the Mode option and select Standard, or set the TRIMEXTENDMODE system variable to 0. In Standard mode you select the boundary edges first and press Enter, then pick the objects to extend. The setting also applies to TRIM, and TRIMEXTENDMODE is saved in the registry.
Can I join a line and an arc into one object?
Yes, if they touch end to end and lie in the same plane. Select both (don't pick a single line as the source) and press Enter: AutoCAD creates one polyline. If there's a gap, close it first with EXTEND, FILLET radius 0 or grips, because only collinear lines and same-centre arcs can be joined across gaps.
Sources and further reading
- EXTEND (Command), TRIMEXTENDMODE and EDGEMODE (System Variable), AutoCAD 2027 Help, Autodesk (accessed 20 Nov 2026).
- About Trimming and Extending Objects, AutoCAD 2027 Help, and Streamlined Trim and Extend Option, What's New in AutoCAD 2021 (accessed 20 Nov 2026).
- LENGTHEN (Command), AutoCAD 2027 Help (accessed 20 Nov 2026).
- JOIN (Command) and About Breaking and Joining Objects, AutoCAD 2027 Help (accessed 20 Nov 2026).
- SCALE (Command) and Rotate and Scale Objects by Reference, AutoCAD 2027 Help (accessed 20 Nov 2026).
- LENGTHEN, EXTEND and JOIN in the AutoCAD LT 2027 Help (accessed 20 Nov 2026).
- AutoCAD 2027 Release Notes, Autodesk, 25 Mar 2026 (accessed 20 Nov 2026).
- Worked examples: calc.py and the figure script, kept in this article's run folder (Skill-Lync blog engine, 20 Nov 2026).

