QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help > Check for Updates)


FS#609 - Clean up tool

Attached to Project: QCAD
Opened by -- (clive) - Monday, 28 May 2012, 16:41 GMT+2
Last edited by Andrew (andrew) - Monday, 28 May 2012, 20:06 GMT+2
Task Type Feature Request
Category QCAD (main)
Status Assigned
Assigned To Andrew (andrew)
Operating System All
Severity Low
Priority Normal
Reported Version 3 RC5
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


To have a ‘clean up ' tool to:

- eradicate duplicate lines
- eradicate stray points
- remove empty layers
- remove unused blocks

Perhaps with an initial dialog which allows the user to choose what they want to clean up.

This task depends upon

Comment by Andrew (andrew) - Monday, 28 May 2012, 16:46 GMT+2

For duplicate entities, we do have Modify - Detect Duplicates

Comment by -- (clive) - Monday, 28 May 2012, 17:02 GMT+2

True - but if I have 3 duplicate lines on top of each other I would need to select and delete them individually. To be clearer - I was thinking of maybe a 'purge' option after the detection of duplicates to automatically delete them for me so by-passing this stage, particularly if I have a large drawing or an imported file!

If I need to laser cut a lot of Architectural shapes for example, the laser cutter would follow all paths 3 times in this instance.

Comment by Andrew (andrew) - Monday, 28 May 2012, 17:09 GMT+2

This should work also for 3 duplicate lines:

- Modify - Detect Duplicates
- Adjust tolerances in options tool bar if desired
- Click the delete button in the options tool bar to purge the selected duplicates

Comment by -- (clive) - Monday, 28 May 2012, 17:31 GMT+2

Oh yes - sorry about that it does work yes. Not looking properly!

Comment by -- (clive) - Monday, 28 May 2012, 17:32 GMT+2

Please scrap this feature request then.

Comment by Andrew (andrew) - Monday, 28 May 2012, 20:06 GMT+2

What is the exact idea behind 'stray points'?

I like the general idea of a 'clean up' tool. I've added some ideas to the original feature request.
Feel free to add to it if you can think of something else that often requires cleaning up.

Comment by -- (clive) - Monday, 28 May 2012, 20:22 GMT+2

OK thanks, I`ll have a think about it!
I too like the idea of a dialog window to work this from.

Stray points - well sometimes when working with Architectural students they invariably use all sorts of CAD/Illustration programs and very often when exporting an Adobe Illustrator drawing file to DWG for example and then opening up with QCAD There are stray points,little dots or extra lines - where they come from I don`t know, but I need to delete them (or rather I get them to delete them :)) before we laser cut a job.

Comment by Andrew (andrew) - Monday, 28 May 2012, 20:31 GMT+2

I understand, thanks for the explanation.

Here's a trick for now on how to delete all entities of a certain type (e.g. all points):
- Select everything in the drawing (Ctrl-A).
- In the property editor (at the top) select the entity type (e.g. 'Point').
- In the property editor, click the plus button beside the layer combo box (this adds a new layer with all entities that are selected and match the type 'Point').
- Type a name for the new layer (e.g. 'temp') and confirm.
- Delete layer 'temp'.

Not straight forward and not intended as the final solution to this problem, but it can be worth it, especially if the drawing is badly organized and there are many such points to delete.

Comment by -- (clive) - Monday, 28 May 2012, 21:25 GMT+2

Nice little trick - thanks, this will speed up the clean-up process and to be honest pretty easy to do!
For now this little trick will probably be of use to a lot of people, I think if you have the time it would be worth you sharing this in the 'Tips & Tutorials' section on the forum, if you don`t I definitely will.