# 3DPOLY Command
[GstarCAD 2025](Help%20System/GSTARCAD/2025/Index.md) → [Commands](Help%20System/GSTARCAD/2025/Commands/(Commands).md) → [3D](Help%20System/GSTARCAD/2025/Commands/3D/(3D).md)
## Function Description:
This command is used to create 3D polylines.
The 3D polyline is a sequence as a single object that combined by connected straight lines, these lines can in different planes, but can not contain arc segments.
## Command Access:
> **Icon:** 
> **Menu:** Draw > 3D Polyline
> **Ribbon:** Home > Draw > 3D Polyline
> **Toolbar:** /
> **Command:** 3DPOLY
> **Alias:** /
## Command Prompts:
```
Specify start point of polyline:
Specify endpoint of line or [Undo]:
Specify endpoint of line or [Undo]:
Specify endpoint of line or [Close/Undo]:
```

## **Endpoint**
Draws a straight line from the start point to the specified point. It will not stop prompting until pressing ENTER.
## **Undo**
Removes the last drawn straight line and redraws from the last point.
## **Close**
Draws a line to close the 3D polyline from the end point to the start point and exits the command. To close the 3D polyline, there must be at least two line segments.
---
**Related References:**
- [Commands about Curved Objects](Help%20System/GSTARCAD/2025/Commands/00%20Command%20Groups/Commands%20about%20Curved%20Objects.md)
**Related Tasks:**
- [To Draw Polylines](Help%20System/GSTARCAD/2025/Commands/01%20Procedures/To%20Draw%20Polylines.md)
---
[Original help](https://www.gstarcad.net/help/GstarCAD_2025_en-US/detail/commandReferences/3DPOLY.html) · © Gstarsoft Co., Ltd.