GstarCAD command

3DPOLY command

Create a single 3D polyline made from connected straight segments whose vertices can lie at different elevations and planes.

Command
3DPOLY
Alias
3P
Tool group
3D
Level
Beginner

What does 3DPOLY do?

3DPOLY creates a 3D polyline consisting of connected straight-line segments. Unlike a standard 2D polyline, its vertices can have different X, Y and Z coordinates, allowing the polyline to extend freely through 3D space.

All segments remain part of a single object, making 3DPOLY useful for creating 3D paths, routing lines and other geometry that changes elevation. A 3D polyline can contain straight segments only, not arc segments.

How to use the command

  1. Type 3DPOLY or its shortcut 3P, then press Enter.
  2. Specify the starting point of the 3D polyline.
  3. Specify the next endpoint using a picked point or X, Y and Z coordinates.
  4. Continue specifying additional endpoints as required.
  5. Press Enter to finish, or choose Close to connect the final point back to the starting point.
Command: 3P ↵
Specify start point of polyline: 0,0,0 ↵
Specify endpoint of line or [Undo]: 100,0,0 ↵
Specify endpoint of line or [Undo]: 100,50,30 ↵
Specify endpoint of line or [Close/Undo]: 150,50,30 ↵
Specify endpoint of line or [Close/Undo]: Enter

Key 3DPOLY options

The command has two main options for controlling the polyline while it is being drawn.

Endpoint
Adds another straight segment from the previous vertex to the specified 3D point.
Undo
Removes the most recently created segment and returns to the previous vertex.
Close
Creates a final segment from the current endpoint back to the starting point and closes the 3D polyline.

Practical example: create a 3D routing line

Suppose a route starts at 0,0,0, runs 100 units horizontally, rises to an elevation of 30 units and then continues another 50 units.

Run 3DPOLY and enter the points 0,0,0, 100,0,0, 100,50,30 and 150,50,30. GstarCAD creates one continuous 3D polyline connecting all four points.

Tip

Use 3DPOLY when the vertices need different Z coordinates. For a conventional polyline drawn in one plane with straight and arc segments, use PLINE instead.

All commands Updated 14 October 2026
Continue learning
View all commands

Ready to switch to GstarCAD?

Get personalized advice on licensing, migration, and deployment for your business.

Contact us Buy now

No obligation — reply within 24h

Your Cart

Subtotal

Price does not include local taxes or duties.

Proceed to Checkout

Cookie preferences

Choose which cookies you want to allow. Essential and payment cookies cannot be disabled as they are required for the site to function.

Essential

Required

Core functionality including authentication, shopping cart, and language preferences.

Payment

Required

Required for processing payments securely through Stripe and PayPal.

Analytics

Help us understand how visitors interact with our site to improve the experience.

Marketing

Used to deliver relevant advertisements and measure campaign performance.

Functional

Order attribution and traffic source tracking to help us understand how customers find our store.