How to find elements drawn on top of other elements

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
franksbedford
Full Member
Posts: 52
Joined: Tue Jul 25, 2023 6:09 pm

How to find elements drawn on top of other elements

Post by franksbedford » Sun Mar 10, 2024 2:45 pm

Version:
3.29.4.0 (3.29.4)
Revision: 36a6423
Qt Version: 5.14.2
Architecture: x86_64
Compiler: Clang 10.0.0

Hey,
Thanks for a great tool. I'm cutting Qcad files on a CNC laser cutter, and I realize that I have multiple elements (lines, rectangles, curves, etc.) drawn on top of each other, and the laser is cutting those spots multiple times. Is there an easy way to go through my drawings and check for lines drawn on top of other lines?

Frank

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: How to find elements drawn on top of other elements

Post by CVH » Sun Mar 10, 2024 4:27 pm

franksbedford wrote:
Sun Mar 10, 2024 2:45 pm
Is there an easy way to go through my drawings and check for lines drawn on top of other lines?
Yes ... and no.
Menu Modify .. Detection .. Detect Duplicates (MD)
https://www.ribbonsoft.com/doc/qcad/lat ... es_en.html

For detecting similar entities that are (almost) identical.
Almost within some degree of tolerance, see tool options on the Options Toolbar.

It will not detect Lines or Arcs that are duplicates of Polyline segments or vice versa.
It will not detect partially overlapping line-art and that includes edges of different Polylines.

One can of course increase the tolerances up to a point that less matching duplicates are recognized.
But a word of caution is in order here.
There is no clear ruling as to which of the (almost) duplicates is selected by the tool, so you can 'throw the baby away with the bath water'.

I tend to move the selection to a new layer (YI) for example called 'Duplicates'.
Then I can decide myself what to keep and what to remove.

BTW: YI is not found under the Layer tools. See Property Editor .. The button on the right of the layer field.
Like most tools it can be initiated with its keyboard shortcut, briefly type the 'Y' key followed by the 'I' key.

Another detection tool can also be beneficial: Detect Zero-Length Entities (MZ).

There is a feature request for something more in the nature of the ACAD OVERKILL command:
https://qcad.org/bugtracker/index.php?d ... sk_id=1724
https://qcad.org/bugtracker/index.php?d ... sk_id=1723
But again... What gets thrown away or how and which things are merged together ... :roll:
Or better, how does OVERKILL knows what we intended to draw from nothing else but simple line-art?

Regards,
CVH

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: How to find elements drawn on top of other elements

Post by CVH » Mon Mar 11, 2024 9:52 am

@ edwardsjethro,

Learning something new every day ... e_surprised :!: :?:
- Is that QCAD Pro or QCAD/CAM?
- Can you point me to where "Snap to Object" is located in the "Edit" menu of QCAD?
- Or which drop-down box you are referring to in the "Edit" menu of QCAD?
- Or can you point me where that is in the "Snap" options menu of QCAD?
- Or where I can find the tool reference here: https://www.ribbonsoft.com/doc/qcad/lat ... erence/en/

Probably not ... :wink:
This is a forum related to QCAD: https://www.ribbonsoft.com/en/
edwardsjethro wrote:
Mon Mar 11, 2024 8:37 am
QCAD will automatically snap to the topmost element at that location.

'Topmost' has no meaning in 2D ... :?

I know that Alt+Select will list up all that are near the cursor but that list is ordered based on drawing order and then on handle.
Simply selecting near stacked entities will arbitrary return one of the nearest candidates ... See: DefaultActions.js and further.
https://github.com/qcad/qcad/blob/maste ... tAction.js ... mouseMoveEvent in case DefaultAction.State.Neutral

Regards,
CVH

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

Re: How to find elements drawn on top of other elements

Post by andrew » Mon Mar 11, 2024 10:09 am

@CVH: edwardsjethro was an bogus AI reply. They were probably planning to add spam to the post later.

Post Reply

Return to “QCAD 'How Do I' Questions”