KufCad

PEDIT — Edit polylines

Ribbon: Draw ▸ Modify ▸ slide-out ▸ Edit PolylineCommand: PEDITAlias: PE

PEDIT edits one polyline: close / open, reverse, change the width, edit vertices, smooth it with arcs (Fit) or turn it into a spline (Spline), and return it to straight segments (Decurve).

Edit Polyline button
Figure 6.65 — The Edit Polyline button 1 is in the slide-out part of the Modify panel.
A zigzag polyline
Figure 6.68 — The polyline used in the examples below. Click it, for example at 1, to select it.

Running PEDIT

  1. Click Edit Polyline, or type PE, Enter. The prompt reads Select polyline to edit.
  2. Click the polyline 1. The command accepts polylines only (a rectangle is a polyline too); lines and arcs are not converted to polylines automatically — use JOIN for that.
  3. The prompt shows the option list 2. Type a letter and press Enter; the command returns to this list after each option until you type X (eXit).
The PEDIT option list
Figure 6.67 — The polyline 1 is selected; the command line 2 lists Close / Open / Reverse / Join / Width / Edit / Fit / Spline / Decurve / eXit.

Options

TypeOptionEffect
CCloseClose the polyline: join the last vertex back to the first.
OOpenRe-open a closed polyline.
RReverseReverse the vertex order (start becomes end).
JJoinJoins lines, arcs and polylines that touch its ends: select them and press Enter (the same joining as JOIN).
WWidthSet one constant width for the whole polyline (type a number after W).
EEdit vertexEdit single vertices (see below).
FFitSmooth it with arcs passing through every vertex.
SSplineTurn the polyline into a spline through its vertices; the command ends.
DDecurveRemove the curvature, turning arcs back into straight segments between vertices.
XeXitEnd the command.

Changing the width

Type W, Enter, then the width, for example 6, Enter. The prompt reads Specify constant width for the polyline.

BeforeThin line
→
AfterWidth 6
Figure 6.68 — Before: a thin polyline. After W 6: the polyline is 6 units wide.

Fit — smoothing with arcs

Type F, Enter. Each straight segment becomes an arc joining two vertices, so the curve passes through every vertex. D (Decurve) turns it back into straight segments.

The polyline after Fit
Figure 6.69 — The result of F then X: arcs joining the vertices of the original polyline.

Spline — a smooth curve

Type S, Enter. The polyline is replaced by a spline through its vertices and the command ends. The result is no longer a polyline; keep editing it with SPLINEDIT.

The polyline after Spline
Figure 6.70 — The result of S: a smooth curve through the four vertices (selected, shown green).

Edit vertex — editing single vertices

  1. Type E, Enter. The prompt reads PEDIT vertex: click a vertex to move [Insert/Delete/eXit].
  2. Click the vertex to move 1. The prompt reads click the new location.
  3. Click the new position 2: the vertex moves there and the adjoining edges follow. The prompt returns to step 1 so you can edit another vertex.
  4. I (Insert): click a point on a segment to add a vertex. D (Delete): click a vertex to remove it. X returns to the option list.
Moving a vertex
Figure 6.71 — The vertex 1 is picked; the cursor is at the new position 2 and the adjoining edges have followed. The command line 3 waits for the new position.

Notes

  • PEDIT edits one polyline at a time; there is no multiple-selection mode (Multiple) yet.
  • Each run of PEDIT is one undo step.