AutoCAD Autolisp - 3D Polyline

Опубликовано: 03 Апрель 2026
на канале: ESurveying Softech (India) Pvt. Ltd.
5,822
13

https://esurveying.net/lisp-collectio...

3D Polyline

Welcome to Lesson on ESurvey Lisps related to 3D Polyline.
2D polyline is a very handy entity, but for many requirements Polylines are expected in 3D in survey drawings. In this chapter you will learn, how to create 3d Polylines and How to convert 2D Polyline to 3d and vice Versa

Create 3D Polyline by selecting the elevation text one by one
If there are elevation texts in the drawing and if you require 3D Polyline going through those elevation texts, '3DET' command can be used which draws a 3D polyline as you keep on selecting elevation text one-by-one.

Create 3D Polyline by selecting elevation text in a group
3JET command works similarly to 3DET Command but in case of 3JET command you can select the elevation texts in group. Inbuilt algorithm will select the elevations one by one considering the nearest point next to the current point in the selected group of texts.

Create 3DPolyline by Selecting Elevated Text one by one
If there are elevated texts in the drawing and if you require 3D Polyline going through those elevated texts, '3DT' command can be used which draws a 3D polyline as you keep on selecting elevated text one-by-one.

Create 3DPolyline by selecting elevated text in a group
3JP command works similar to 3DT Command but in case of 3JP command you can select the elevated texts in group. Inbuilt algorithm will select the elevations one by one considering the nearest point next to the current point in the selected group of texts.

Remove Elevation from Elevation Vertices
For drafting purposes 2D Polyline is more preferred over 3D Polyline. To convert an existing 3DPolyine to 2DPolyline, use ‘RZ’ command. Z Value from all the vertices of 3D Polylines becomes zero by selecting a polyline using ‘RZ’ command.

Convert 2D PolyLine to 3D PolyLine
When you have both elevation text and the 2D PolyLine having a vertex point at the insertion point of elevation texts, converting such polyline to 3DPolyline can be done using '2D3D' Command. 2D3D command will update the Z value of each vertex of 2D Polyline referring to elevation text at that point. Note that Text representing elevations needs to be in '3delev' layer.

Mark Z value at each Vertex of 3D Polyline
To mark elevation text representing Z value at each vertex of the 3DPolyline use 3DZ command.

Interpolate at Vertex Points
If there is a Polyline with multiple vertices and if you know the Z Values at only the end points of the Polyline, you can use ‘IVP’ command to interpolate Z Values at each of the remaining vertex points of Polyline.

Convert 3DFace to 3DPolyline
You cannot find the area of 3DFaces in CAD using the Area command. To convert 3D face to 3D Polyline use ‘3DFP’ command.

Thank you in the next Section you will learn Lisps related to Layers.

Read More:
https://esurveying.net/autocad-autoli...