Home > ZWCAD > Modify Objects >
Modify Polylines

May 20, 2011

       You can modify any type of two dimensional or three dimensional polyline. Objects such as rectangles, polygons, and donuts, as well as three dimensional objects such as pyramids, cylinders, and spheres, are all editable polylines

       You can edit a polyline by opening or closing it, by changing its overall width or the widths of individual segments, and by converting a polyline with straight line segments into a flowing curve or an approximation of a spline. In addition, you can use the Edit Polyline tool to edit individual vertices, adding, removing, or moving vertices. You can also add new segments to an existing polyline, change the linetypes of a polyline, and reverse the direction or order of the vertices.

        To modify a polyline, you first select the polyline, and then select a polyline editing option. The available options vary depending on whether the selected polyline is a two dimensional or three dimensional object. If the selected object is not a polyline, the Edit Polyline tool provides the option of turning it into one. You can convert only arcs and lines into polylines. If several arcs or lines are joined endpoint to endpoint, they can all be selected and turned into one polyline.


To convert an object into a polyline

  1.   Choose Modify > Object > Polyline.

  2.   Select the object.

  3.   On the command line, type yes.

  4.   On the command line, type another option, or press Enter to complete the command.

ModifyII toolbar\

Command line PEDIT


Joined Polyline Segments

      If the ends of a line or arc connect or are close to each other, you can join them to an open polyline by trimming or extending.


Modify Properties of Polylines

        If the properties of several objects being joined into a polyline are different, such as color and linetype, the new polyline inherits the properties of the first object that you selected. You can also set properties of the new polyline at the Properties panel.


Additional Editing Options for Polylines

You can use PEDIT to edit polylines:

Close

      When you close a polyline, the program draws a straight polyline segment from the last vertex of the polyline to the first vertex. System considers the polyline open unless you close it using the Close option.

To close an open polyline

  1. Choose Modify > Object > Polyline.

  2. Select the polyline.

  3. On the command line, type close.

  4. On the command line, type another option, or press Enter to complete the command.

ModifyII toolbar \

Command line PEDIT

\

 

Closing an open polyline adds a straight polyline segment between the first (A) and last (B) vertices Result


OPEN

       If the polylines to be edited is closed, you can convert it into an open one by using OPEN option to delete the latest drawn segments of the polyline.


JOIN

      You can add an arc, line, or polyline object to an existing open polyline, forming one continuous polyline object. To join an object to a polyline, that object must already share an endpoint with an end vertex of the selected polyline.

       When you join an object to a polyline, the width of the new polyline segment depends on the width of the original polyline and the type of object you are joining to it:

  • A line or an arc assumes the same width as the polyline segment for the end vertex to which it is joined.

  • A polyline joined to a tapered polyline retains its own width values.

  • A polyline joined to a uniform-width polyline assumes the width of the polyline to which it is joined.


To join an arc, line, or polyline to an existing polyline

  1. Choose Modify > Object > Polyline.

  2. Select the polyline.

  3. On the command line, type join.

  4. Select the arc, line, or polyline to join.

  5. On the command line, type another option, or press Enter to complete the command.

ModifyII toolbar \

Command line PEDIT


WIDTH

      Specifies the uniform width for all segments of selected polylines. Using Width option while performing "Edit vertex", you can specify the width of start point and end point.

\


     You can change the width of an entire polyline, applying a uniform width to the polyline or assigning tapering width with gradient size.


To apply a uniform width to an entire polyline

  1. Choose Modify > Object > Polyline.

  2. Select the polyline.

  3. On the command line, type width.

  4. Specify the new polyline width.

  5. On the command line, type another option, or press Enter to complete the command.

ModifyII toolbar \

Command line PEDIT


To apply tapering width to a polyline

  1. Choose Modify > Object > Polyline.

  2. Select the polyline.

  3. On the command line, type taper.

  4. Specify the starting width.

  5. Specify the ending width.

  6. On the command line, type another option, or press Enter to complete the command.

ModifyII toolbar \

Command line PEDIT


Edit Vertices

       You can use the Edit Vertices option to modify individual polyline vertices. When you select this option, the program switches into a special vertex editing mode and places an x on the first vertex. The x indicates the vertex you are editing. The Next and Previous options move the x to the next or previous vertex. You can edit only one vertex at a time.

     When editing vertices, you can modify the polyline in the following ways:

  • Convert a polyline segment into a curve by specifying a new tangent angle.

  • Break a polyline into two separate polylines.

  • Insert a new vertex after the current vertex.

  • Move the current vertex.

  • Straighten the polyline segment between two vertices.

  • Change the width of the polyline segment between two vertices.


To move a polyline vertex

  1. Choose Modify > Object > Polyline.

  2. Select the polyline.

  3. On the command line, type Edit verticest.

  4. On the command line, type next. Repeat until the x reaches the vertex you want to move.

  5. On the command line, type move.

  6. Specify the new location for the vertex.

  7. On the command line, type another option, or type exit to complete the command.

  8. On the command line, type another option, or press Enter to complete the command.

ModifyII toolbar \

Command line PEDIT

\

 

Select the polyline (A), move the current vertex marker to the vertex you want to move (B), and then specify the new vertex location (C) Result


To taper the width of an individual polyline segment

  1. Choose Modify > Object > Polyline.

  2. Select the polyline.

  3. On the command line, type Edit verticest.

  4. On the command line, type next. Repeat until the x reaches the first vertex of the segment you want to taper.

  5. On the command line, type width.

  6. Specify the starting width.

  7. Specify the ending width.

  8. On the command line, type another option, or type exit to complete the command.

  9. On the command line, type another option, or press Enter to complete the command.

ModifyII toolbar \

Command line PEDIT

\

 

Select the polyline (A), move the current vertex marker to the first vertex of the segment you want to taper (B), and then specify the new starting and ending widths for that segment. Result


FIT

      You can create an arc-fit polyline, a smooth curve joining each pair of vertices. The curve passes through all vertices of the polyline.

To fit a curve to a polyline

  1. Choose Modify > Object > Polyline.

  2. Select the polyline.

  3. On the command line, type fit.

  4. On the command line, type another option, or press Enter to complete the command.

ModifyII toolbar \

Command line PEDIT


SPLINE

Converts a polyline into a spline. Specifies the vertices of the selected polyline as the control points or frame of a curve approximating a B-spline. The curve passes through the first and last control points unless the polyline is closed.

\

 

Original polyline After applying Fit curve After applying Spline


DECURVE

Straights splines fit curves with Fit option or splines created with Spline option.


LINTTYPE-MODE

Changes the linetype of a polyline. When this option is off, linetypes are generated starting and ending with a dash line at each vetex.


Commands Reference

PEDIT: Edits polylines and three-dimensional polygon meshes

System Variables Reference

PEDITACCEPT: Suppresses display of the Object Selected Is Not a Polyline prompt in PEDIT

SPLFRAME: Controls the display of splines and spline-fit polylines

SPLINESEGS: Sets the number of line segments to be generated for each spline-fit polyline generated by the Spline option of the PEDIT command

SPLINETYPE: Sets the type of curve generated by the Spline option of the PEDIT command

SURFTYPE: Controls the type of surface-fitting to be performed by the Smooth option of the PEDIT command

SURFU: Sets the surface density for PEDIT Smooth in the M direction

SURFV: Sets the surface density for PEDIT Smooth in the N direction 

PrintPrint Get a PDF version of this webpage PDF
2013 ZWCAD Software Co., Ltd. All rights reserved. | About ZWSOFT | Privacy Policy | Terms and Conditions | Contact us | Site Map