Close, join, widen, smooth and straighten polylines, edit their vertices one by one, and pick single segments to list, delete, move or copy. For anyone working with outlines, walls and profiles drawn as polylines.
Before you start
- Stratal Draft or above (2D drafting).
- PEDIT and SEGEDIT are typed (or found with command search). The whole of one PEDIT is one undo step.
Steps: edit a polyline
- Type
PEDIT. - At
Select polylinepick it, or choose Multiple to edit several. A line or arc you pick can become a polyline: answerObject selected is not a polyline. Do you want to turn it into one? <Y>. - At
Enter an optionchoose what to do (see Options). Keep choosing options, then press Enter to finish.
Options
| Option | What it does |
|---|---|
| Close / Open | Closes an open polyline or opens a closed one. |
| Join | Lines, arcs and open polylines that meet its ends are joined to it. Join cannot be taken back with PEDIT's Undo. |
| Width | Specify new width for all segments. |
| Edit vertex | Steps through the vertices (single polyline only); see below. |
| Fit | Turns the polyline into a smooth curve of arcs through every vertex (two arcs a segment, meeting smoothly; widths are dropped). |
| Spline | Turns it into short straight pieces along the B-spline whose control points are its vertices; it starts and ends at the first and last vertex. |
| Decurve | Brings back the vertices Fit or Spline started from, or straightens arc segments. |
| Ltype gen | ON runs the linetype pattern on across the vertices instead of starting it again at each, on screen, on layouts, in prints and PDF plots. |
| Reverse | Reverses the vertex order. |
| Undo | Takes back the last option. |
Steps: edit vertices
- Choose Edit vertex. The marked vertex shows as a point; the prompt reads
Vertex 1: enter a vertex editing option or press Enter for the next vertex. - Options:
- Next / Previous move the mark.
- Move:
Specify new location for marked vertex. - Insert:
Specify location for new vertexafter the marked one. - Width: starting and ending width of the segment after it.
- Tangent: a direction (a point, or an angle in degrees) that Fit then leaves the vertex at.
- Break: mark a vertex, move to another with Next or Previous, then Go: the segments between them go; an open polyline becomes two and a closed one opens.
- Straighten: the same, then Go: the vertices between go and one straight segment joins them.
- Exit returns to the main options.
Fitted polylines
- Fit and Spline keep the vertices they started from (the frame), so Decurve brings those back and fitting again works from the frame. The frame moves, turns, scales and mirrors with the polyline and is saved in the drawing.
- Once another command has reshaped the curve, Decurve just straightens it where it is.
- DXF keeps linetype generation, and writes fitted or splined polylines with their frame and tangents, so Decurve still works after a DXF round trip.
Steps: work on one segment
- Type
SEGEDITand atSelect a polyline segmentclick one segment. - At
Enter segment option [List/Delete/Move/Copy] <List>:- List (Enter): what it is, its ends and length.
- Delete: an open polyline splits in two there (or ends a segment sooner); a closed one opens there.
- Move: a base and a second point move both its ends; the segments beside it stretch and arcs keep their bulge.
- Copy: copies it out as a line or arc (
Specify base point <copy in place>).
- Segments can also join a selection: see Selecting objects.
Example
A site boundary was drawn as 30 separate lines. Type PEDIT, choose Multiple, select all 30 lines, answer Yes to
convert them, then Join. They become one closed polyline you can hatch or measure.
Tips and common mistakes
- Curve-fit polylines have no segments to pick with SEGEDIT: use PEDIT Decurve first.
- For widths per segment, use Edit vertex > Width rather than Width, which sets every segment.
Troubleshooting
| Message or symptom | What it means and what to do |
|---|---|
| "That is not a polyline." | Pick a polyline, or let PEDIT turn the line or arc into one. |
| "Nothing found at that point." | Click closer to the object. |
| Join adds nothing | The other objects' ends do not touch the polyline's ends exactly. Close the gap first. |
Related
Related
- Fitting an object into a space
- Grid, snap, ortho and polar tracking
- Object snaps and object snap tracking
- Entering exact points, distances and angles
- Constraint hints while drawing
- Drawing lines
Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.