# PEDIT Command
[GstarCAD 2012](../../Index.md) → [Commands](../%28Commands%29.md) → [P](%28P%29.md)
**Function Description:**
> Edit polylines and 3D polygon meshes
**Menu:**
> Modify\>Object\>Polyline
**Command Entry:**
> PEDIT
**Command Prompt:**
> Select polyline or \[Multiple\]: Select polyline or 3D mesh or enter m
>
> The remaining prompts depend on whether you have selected a 2D polyline, a 3D polyline, or 3D polyline mesh
>
> If the selected object is a line or an arc, the following prompt is displayed:
>
> Object selected is not a polyline.
>
> Do you want it to turn into one? \<Y\>: Enter y or n, or press ENTER
>
> **Multiple**
>
> Enable selection for more than one object.
>
> 2D Polyline
>
> If you select a 2D polyline, the following prompt is displayed:
>
> Edit polyline: \[Edit vertices/Close/Decurve/Fit/Join/Linetypemode/Reverse/Spline/Taper/Width/Undo\]\<eXit\>: Enter an option or press ENTER.
>
> If the polyline you select is a closed polyline, Open replaces the Close option in the prompt. You can edit a 2D polyline if its normal is parallel to and in the same direction as the
> *Z* axis of the current UCS.
>
> **3D Mesh**
>
> Edit 3D mesh
>
> If you select a polygon mesh, the following prompt is displayed:
>
> Edit polyline: \[Edit vertices/Desmooth/Mclose/Nclose/Undo\]\<eXit\>: Enter an option or press ENTER.
## Other versions with matching text
[GstarCAD 2011](../../../2011/Commands/P/PEDIT%20Command--dbf46fd3765f.md)