You can use the "pedit" command to create a multiline object. The command is called as follows:
Toolbar: "Modify II (modify II)" → menu: [modify (modify)] → [object] → [polyline (multiline )]
Shortcut menu: Right-click the multi-line to edit and select "polyline edit )"
Command Line: pedit (or alias PE)
After calling this command, the system first prompts you to select a multiline:
Pedit select polyline or [multiple]:
You can select the "multiple" option to select multiple multiline objects. Otherwise, you can select only one multiline object. If you select a line or arc object, the system prompts you whether to convert it to a multiline object:
Do you want to turn it into one?
After you select a multiline object (or convert objects such as straight lines and arcs into multi-segment objects), the system further prompts:
Enter an option [close/join/width/edit vertex/fit/spline/decurve/ltype GEN/undo]:
The specific functions are as follows:
(1) "close": close and open multiline. Note that, even if both the start and end points of a multiline are on the same point, AutoCAD considers it to be open and must use this option to close it. For a closed multi-segment, this option is replaced by "open", which has the opposite effect.
(2) join: combines a line, arc, or multiline object with other multiline objects that overlap with its endpoint into a multiline. For Curve Fitting multiline, after merging, the curve fitting will be deleted.
(3) "width (width)": Specifies the width of a multiline. The width value is valid for each line segment of a multiline.
(4) "Edit vertex": used to edit vertices that constitute a multiline. After you select this option, the first vertex of the multiline is marked with "X". If the vertex has a tangent, an arrow is painted in the tangent direction. The system prompts you to select the following:
Enter a vertex editing Option
[Next/previous/break/insert/move/regen/straighten/tangent/width/exit]:
The functions of the preceding options are shown in Table 7-4.
Table 7-4 usage of the "Edit vertex" option Option
Next (next) Move the mark "X" to the next Vertex
Previous (previous) moves the mark "X" to the previous Vertex
Break (Interrupt) saves the position of the currently marked "X" vertex, and prompts the user to select another vertex. After confirmation, select the "go" option to delete the part between the two specified vertices
Insert adds a new vertex after marking the "X" Vertex
Move (MOVE) modify the marker "X" vertex position
Regen (rebuild) regenerate multiline
The straighten operation is the same as the "break" option, but the operation result is to replace the two specified vertices with a straight line segment instead of deleting
The tangent (tangent) modifies the vertex tangent direction marked "X", which is used for future curve fitting.
Width (width) modify the start width and end width of the line segment after the marker "X" Vertex
Exit (exit) to exit the "Edit vertex" option and return the primary option.
(5) "fit": adds two vertices between every two adjacent vertices to generate a smooth curve, which is composed of the connected arc segments of each vertex. The curve uses all vertices of a multiline and the specified tangent direction.
If the original multiline contains an arc segment, it is equivalent to a line segment when generating a spline. If the original multiline has a width, the generated spline will smoothly transition from the width of the first vertex to the width of the last vertex, and all the width information in the middle will be ignored.
(6) "spline (spline)": uses multi-line vertices as control points to generate a spline. The curve passes through the first and last control points, but not necessarily through other control points. These curves are called B-spline curves. AutoCAD can generate a quadratic or cubic spline to fit a multiline.
(7) "decurve (non-curve)": Delete the fitting curve and spline to insert excess vertices, and restore all line segments of the multiline to a straight line, however, the tangent information specified to the multiline vertex is retained. However, if you use commands such as "break" and "trim" to edit a spline to fit a multiline, it cannot be "non-curve ".
(8) "ltype Gen (linear generation)": If this item is set to the "On" status, the multiline object is taken as a whole to generate a line type. If it is set to "off ", the line type is generated starting from and ending with a dot line on each vertex. Note: This option is not applicable to multiline segments with a widening line.
(9) "undo (discard)": cancels the previous edit operation without exiting the command.
The pedit command can also be used to modify 3D multiline and 3D mesh. For details about 3D multiline and 3D mesh, see Chapter 19th and Chapter 20th.