Find open lines and polylines.

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
artisanicview
Junior Member
Posts: 12
Joined: Sat Jun 19, 2010 6:23 pm

Find open lines and polylines.

Post by artisanicview » Sun Dec 18, 2016 11:39 pm

I have some DWG files that I need to clean-up to send to CNC machine. The DWG files have mixed closed polylines and open lines overlapping the polylines.

I need to clean this files (to send to CNC machine) and for this reason I need to find and delete all the open lines and polylines from the drawing but I find quite time consuming to find, select and delete all the open lines.

It is there a function or something to quickly select all the open lines and polylines because I can't find any tool to do this for me? Thank you.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4939
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Find open lines and polylines.

Post by Husky » Mon Dec 19, 2016 1:13 am

Hi,
artisanicview wrote:It is there a function or something to quickly select all the open lines and polylines because I can't find any tool to do this for me? Thank you.
I would say: Yes and no. There are a couple tools to make your life easier but there is not THAT tool what can fully automatically take over this task. The Problem is that no tool can say what is the right way and what not ...

Example:
1 = open polyline
2 = a solution ....
3 = also a solution .... but which one is correct?
Husky-2016.12.18-05.png
Husky-2016.12.18-05.png (7.87 KiB) Viewed 5217 times
To prepare a drawing for a cnc I work with:
Detect duplicates - delete,
Detect Zero Lengths - delete,
Trim,
Trim both (!)
Hatch (I abuse this tool!) - this tool will indicate an open contour with a circle - if I see where I terminate the tool and fix the problem.
Property Editor / adjust
Closed = no
to
Closed = yes
Husky-2016.12.18-06.png
Husky-2016.12.18-06.png (13.4 KiB) Viewed 5217 times
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

User avatar
andrew
Site Admin
Posts: 9061
Joined: Fri Mar 30, 2007 6:07 am

Re: Find open lines and polylines.

Post by andrew » Mon Dec 19, 2016 8:54 am

I'm assuming you are using the latest version of QCAD.

I'd proceed as follows:

1. Convert all 'loose' entities (single lines, arcs) into polylines and connect them if possible:
- Select > Select All
- Draw > Polyline > Create from Selected Entities

-> All loose lines and arcs are now polylines, some of them open, others closed.

2. Make sure all geometrically closed polylines (start point at same location as end point) are converted into logically closed polylines:
- Select > Select All
- Draw > Polyline > Logically close Polylines

-> All closed polylines are now logically closed (marked as being closed)

3. Delete all open polylines:
- View > Selection Filter
Screen Shot 2016-12-19 at 08.50.11.png
Screen Shot 2016-12-19 at 08.50.11.png (33.7 KiB) Viewed 5211 times
- Entity type: Polyline
- Property: Closed
- Comparison: = (is)
- Value: false
- Click button at the left to select all open polylines
- Edit > Delete

If this does not solve your problem, please attach your drawing file or at least a screenshot to indicate what you are trying to do.

Post Reply

Return to “QCAD 'How Do I' Questions”