# EXTEND Command
[GstarCAD 2022](Help%20System/GSTARCAD/2022/Index.md) → [Commands](Help%20System/GSTARCAD/2022/Commands/(Commands).md) → [E](Help%20System/GSTARCAD/2022/Commands/E/(E).md)
## Function Description:
This command is used to extend objects and make it connect with other objects.
## Command Access:
> **Icon:**
> 
> **Menu:** Modify\> Extend
> **Ribbon:** Home \> Modify \> Extend
> **Toolbar:** Modify\> Extend
> **Command:** EXTEND
> **Alias:** EX
## Command Prompts:
Select objects or \<select all\>:
Select object to extend or shift-select to trim or\[Fence/Crossing/Project/Edge/Undo\]:
To extend objects, Users should firstly select boundary, and then press ENTER, at last select objects to extend. If pressing ENTER under the first command prompt "select object", all objects will be selected as boundary.
## **Select objects**
Selects objects to define
the extension boundary.
## **Select object to extend**
Selects objects to extend and presses ENTER to end command.
## **Shift-select to trim**
Trims the selected object at the nearest boundary rather than extends it. It
provides a convenient way to switch between TRIM and EXTEND command.
## **Fence**
Selects all objects that intersected with
the fence. The selected fence is a series of temporary segments, they are defined by two or more points. The selected fence will not close.
## **Crossing**
Selects objects inside the rectangular area or intersected
with the rectangular area. The rectangular area is defined by two points.
**Note:**If it is uncertain for some objects to be extended by crossing selected, the EXTEND command selects
the object along the clockwise direction from the first selected point.
## **Project**
Uses the projection to extend object.
- **None:** No projection. It only extends objects that intersected with
the selected boundary in 3D space.
- **Ucs:** Specifies the projection on the XY plane of
the current UCS. It extends objects without intersection with the selected boundary in 3D space.
- **View:** Specifies the projection along the
direction of the current observation. It extends objects that intersected
with the selected boundary in the current view.
## **Edge**
Extends an object to a hidden edge of another object or extends it to an intersection edge in 3D space.
- **Extend:** Extends an object along its nature path to an intersection edge of another object or a hidden edge.
- **No extend:** Extends an object to the intersection boundary in 3D space.
## **Undo**
Removes the last modification by
the EXTEND command.