# 3DPOLY Command
[GstarCAD 2018](Help%20System/GSTARCAD/2018/Index.md) → [Commands](Help%20System/GSTARCAD/2018/Commands/(Commands).md) → [3D](Help%20System/GSTARCAD/2018/Commands/3D/(3D).md)
The 3DPOLY command is used to create 3D polylines.
## Command Access:
> **Ribbon:** Home \> Draw \> 3D Polyline
> **Menu:**Draw \> 3D Polyline
> **Command:** 3DPOLY
## 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\]:
……
Specify endpoint of line or \[Close/Undo\]:
## Function Description:
The 3D polyline is a sequence as a single object that combined by connected straight lines; those straight lines could in different plane, but could not contain arc segment.

**Relative Glossary:**
**Endpoint:**
Draw a straight line from the start point to the specified point. It will not stop prompting until pressing ENTER.
**Undo:**Remove the last drawn straight line and redraw from the last point.
**Close:** Draw a line to close the 3D polyline from the end point to the start point and exit the command. To close 3D polyline, there must be at least two line segments.
## Other versions with matching text
[GstarCAD 2019](Help%20System/GSTARCAD/2019/Commands/3D/3DPOLY%20Command.md) · [GstarCAD 2020](Help%20System/GSTARCAD/2020/Commands/3D/3DPOLY%20Command.md) · [GstarCAD 2021](Help%20System/GSTARCAD/2021/Commands/3D/3DPOLY%20Command.md)