GstarCAD command

PEDIT command

Command
PEDIT
Alias
PE
Tool group
Modify
Level
Intermediate

What does PEDIT do?

PEDIT edits existing polylines and provides tools for changing their geometry and properties. You can join connected segments, close or open a polyline, change its width, edit individual vertices and create fitted or spline-like curves. The command can also convert compatible lines and arcs into polylines before editing them.

How to use the command

  1. Type PEDIT or its shortcut PE, then press Enter.
  2. Select the polyline that you want to edit.
  3. If you select a compatible line or arc, confirm that it should be converted to a polyline when prompted.
  4. Choose the required editing option, such as Join, Width or Edit vertex.
  5. Complete the selected operation, then press Enter to finish.
Command: PE ↵
Select polyline or [Multiple]: select polyline
Enter an option [Close/Join/Width/Edit vertex/Fit/Spline/Decurve/Ltype gen/Reverse/Undo]: J ↵
Select objects: select connected segments ↵
Select objects: Enter

Key PEDIT options

PEDIT provides several tools for changing the structure and appearance of a polyline.

Close / Open
Connects the first and last vertices to close an open polyline, or removes the closing segment from a closed polyline.
Join
Adds compatible connected lines, arcs or polylines to the selected polyline to create a single continuous object.
Width
Applies a specified uniform width to the entire selected polyline.
Edit vertex
Provides tools for editing individual vertices of the selected polyline.

Practical example: join separate outline segments

Suppose a component outline consists of several connected line segments that should behave as one object. Start PEDIT, select one of the lines and confirm its conversion to a polyline if prompted. Choose Join, select the remaining connected segments and press Enter. GstarCAD combines the compatible geometry into one polyline, making the outline easier to select, edit and use for later operations.

Tip

The PEDITACCEPT system variable controls whether GstarCAD asks before converting a selected line or arc into a polyline. A value of 1 performs the conversion automatically without displaying the confirmation prompt.

All commands Updated 24 September 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.