15-15a. Find Disconnected Polyline in AutoCAD

How to Find a Break from Created a Region (incomplete area)

How many times did you want to create REGION of more than one line or a polyline, or you want to grab a certain area that you think is "closed" ie no interruptions and all lines are merged.

This can be a problem with a larger number of lines or drawings. The logical sequence is that you create a single Polyline with more than one regular line with the PEDIT command, and then create a REGION or execute a HATCH command. You are trying to execute one of these commands but unsuccessfully and AutoCAD permanently delivers the message that the policy is not closed. How about a large number of endpoints to find "End of line that is not connected to another line", ie where is the interrupt of draw?

Take for example the drawing below the drawing from which we want to create REGION. Notice on the left side of the drawing and on the right side of the same drawing when we select it. From the selection itself, you can notice that the drawing is made up of several straight line lines (line) because each line has a medium grip handle.

By running the Region command in the Command Prompt line, we get the following: "0 region created". Why? So there is an interruption somewhere, ie the area is not closed and we do not see it in this case.
Draw in AutoCAD created by LINE

In the next step, What can we do?

- zoom in the maximum point by the point of the connection and see if the connection is OK (which is long lasting and meaningless)
- From plain lines, create a Polyline, command (PEDIT)
- From existing lines, create a new drawing with a single Polyline using the BOUNDARY command.

With the BOUNDARY command we create a new line from the lines in question, which will create a Polyline and a closed area on the existing one (with the Boundary command we create a copy of the drawing over the existing one, so now we have two drawings one and the other closed by Boundary, one over the other).

If you use the BOUNDARY command on some drawing then delete the original drawing below the newly created one). You probably ask yourself, how you will delete out all lines of the original drawing that is below the newborn. Simply select a new drawing by clicking on the Polyline and move it with the MOVE command (then return it to the original position) and then wipe the original drawing or select a drawing with the 'drag-and-drop' (pulling the mouse right to left) and note Midpoint you are sure you have selected a drawing that consists of multiple straight lines. After deleting the original drawing, we have this situation.

Boundary command and Draw in AutoCAD

NOTE: In this case, the BOUNDARY command rescues us from further research where it is interrupted because it will create a new drawing that is a closed area. However this will not always work (for example, if the place where the break is too far away, ie two endpoints that are not connected). Now we can apply a command Hatch and the like for which the precondition is closed area ie Region.

What when the BOUNDARY and POLYLINE commands do not help create a closed area (Region)

So, we have not been able to apply the BOUNDARY or REGION commands to our drawing and there is still a problem 'Where's the break'. In order not to zoom in (with a large zoom to determine where the lines are not connected) each point at the point of the connection, we can take advantage of the VERTEX option which is in the PROPERTIES of our drawing.

The first thing we need to do is turn all lines of drawings into one Polyline with the PEDIT command and then use the VERTEX option.

The process of converting multiple straight lines into one polyline:

Command:
Command: _pedit Select polyline or [Multiple]:
Object selected is not a polyline
Do you want to turn it into one? <Y> Enter
Enter an option [Close/Join/Width/Edit vertex/Fit/Spline/Decurve/Ltype gen/Undo]: J +Enter
Select objects: Specify opposite corner: 28 found
Select objects:
27 segments added to Polyline


Now we have one Polyline as in the picture below, all points are merged but there is still an interruption somewhere and the area is not closed.

NOTE: If PEDIT command gets one single Polyline and the entire drawing is selected, this means we only have one break. Unless there are more interruptions they would have more Polylines. How to find where are not the two points (endpoints)?

Break Polyline and Region in AutoCAD

So, after converting to a Single Polyline, select a drawing and click on the Properties button (or DTM (right click mouse) on the drawing)). In the new dialog box 'Properties' we find the option VERTEX field. We click on it, and with two "left" and "right" triangles we find the first and the final point.
Properties of Draw in AutoCAD

With the maximum ZOOM, let's see if the break is really between point 1 and 29. It looks like this in the picture below.
Vertex Fileld in AutoCAD

So we've found where the break is, and we simply pull point 29 to point 1 or vice versa, depending on which point is the basic given the coordinates in our drawing. (it is logical that it is the first point of drawing)

Another possible situation with the problem.
 
If after the conversion we get one short Poly-line it means that there is an interruption in the last point of the newly created Polyline in AutoCAD ie between points 4 and 5 and so in the order of the end, ie point 29 (figure below). Repeat the maximum magnification of the drawings and connect point 5 with flow 4 etc etc ...
An incomplete closed area in AutoCAD

Comments

Popular posts from this blog

15-13a. AutoCAD Export Coordinates Points to CSV

24d. Plot in Color Thickness Lines

24c. Ucsfollow Command Rotate Drawing