Saturday, October 2, 2010

PEDIT

To modify a polyline
1. Click Modify menu Object Polyline.
2. Select the polyline to modify.
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? : Enter y or n, or press ENTER
If you enter y, the object is converted into a single-segment 2D polyline that you can edit. You can use this operation to join lines and arcs into a polyline. When the PEDITACCEPT system variable is set to 1, this prompt is suppressed, and the selected object is automatically converted to a polyline.
3. Edit the polyline by entering one or more of the following options:
• Enter c (Close) to create a closed polyline.
• Enter j (Join) to join contiguous lines, arcs, or polylines.
• Enter w (Width) to specify a new uniform width for the entire polyline.
• Enter e (Edit Vertex) to edit a vertex.
• Enter f (Fit) to create a series of arcs joining each pair of vertices.
• Enter s (Spline) to create an approximation of a spline.
• Enter d (Decurve) to remove extra vertices inserted by a fit or spline curve and to straighten all segments of the polyline.
• Enter L (Ltype Gen) to generate the linetype in a continuous pattern through the vertices of the polyline.
• Enter u (Undo) to reverse actions back to the start of PEDIT.
Enter x (Exit) to end the command.

Command line: PEDIT
Additional editing operations are available for changing the shape of polyline objects. You can also join separate polylines.

You can edit polylines by closing and opening them and by moving, adding, or deleting individual vertices. You can straighten the polyline between any two vertices and toggle the linetype so that a dash appears before and after each vertex. You can set a uniform width for the entire polyline or control the width of each segment. You can also create a linear approximation of a spline from a polyline.
Joined Polyline Segments
You can join a line, an arc, or another polyline to an open polyline if their ends connect or are close to each other. If the ends are not coincident but are within a distance that you can set, called the fuzz distance, the ends are joined by either trimming them, extending them, or connecting them with a new segment.
Properties of Modified Polylines
If the properties of several objects being joined into a polyline differ, the resulting polyline inherits the properties of the first object that you selected. If two lines meet a polyline in a Y shape, one of the lines is selected and joined to the polyline. Joining also causes an implicit decurve, with the program discarding the spline information of the original polyline and any polylines being joined to it. Once the joining is completed, you can fit a new spline to the resulting polyline.
Additional Editing Options for Polylines
In addition to the general editing operations available for most objects, there are additional options available for editing and joining polylines with PEDIT.
  • Close creates the closing segment of the polyline, connecting the last segment with the first. The polyline is considered open unless you close it using the Close option.
  • Join adds lines, arcs, or polylines to the end of an open polyline and removes the curve fitting from a curve-fit polyline. For an object to join the polyline, their endpoints must touch.
  • Width specifies a new uniform width for the entire polyline. Use the Width option of the Edit Vertex option to change the starting and ending widths of segments.

  • Edit Vertex marks the first vertex of the polyline by drawing an X on the screen. If you have specified a tangent direction for this vertex, an arrow is also drawn in that direction.
  • Fit creates a smooth curve consisting of arcs joining each pair of vertices. The curve passes through all vertices of the polyline and uses any tangent direction you specify.
  • Spline uses the vertices of the selected polyline as the control points, or frame, of a spline-fit polyline. The curve passes through the first and last control points unless the original polyline was closed.

  • Decurve removes extra vertices inserted by an arc-fit or spline-fit polyline and straightens all segments of the polyline.
  • Ltype Gen generates the linetype in a continuous pattern through the vertices of the polyline. When this option is turned off, the linetype is generated starting and ending with a dash at each vertex.

No comments:

Post a Comment