Remove Segment:Line Selection Mode Causes Duplicates

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
John Hyslop
Premier Member
Posts: 520
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Remove Segment:Line Selection Mode Causes Duplicates

Post by John Hyslop » Sat Mar 01, 2025 2:09 am

Hi Andrew

I discovered this while working on some lasercut grilles with polyline club pattern cutouts that needed trimming along the edges.
The basic example below is showing this odd behavior which leaves duplicates of the remaining arc and polyline rectangles.
The Gif file is a bit jittery..
Version:
3.32.1.0 (3.32.1)
Linux Mint 22.1 64bit [ not tested this on windows yet ]

Cheers
John
Duplicates.gif
Duplicates.gif (544.15 KiB) Viewed 37301 times
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

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

Re: Remove Segment:Line Selection Mode Causes Duplicates

Post by CVH » Sat Mar 01, 2025 5:41 am

Hi John,

Confirmed ... Behavior exist also in QCAD 3.27.6, line mode was introduced in QCAD 3.26.3.
Typically with shapes that cross the auxiliary line more than once.

D2 in line selection mode is handled by a Pro Addon script BreakOutPro.js.
It calls the standard script BreakOut.js for each crossed entity and then again for each intersection.
For the functionality it deletes the original entities and creates fully new trimmed copies.

As per your example twice for each closed shape resulting in duplicates.
Already a question how it copes with deleting the original entity twice.


But things can get weird with open shapes:
Examples with 2...9 shapes from a single shape, no to 4 duplicates.

D2-Exceptions.dxf
D2 in line mode, indicate a line from A to B
(100.26 KiB) Downloaded 487 times

Your best option is to file a Bug report. :wink:

Regards,
CVH

John Hyslop
Premier Member
Posts: 520
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Remove Segment:Line Selection Mode Causes Duplicates

Post by John Hyslop » Sat Mar 01, 2025 9:54 am

CVH

Thanks for the conformation.

Task added to bugtracker..
https://www.qcad.org/bugtracker/index.p ... sk_id=2648

Cheers
John
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

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

Re: Remove Segment:Line Selection Mode Causes Duplicates

Post by CVH » Sat Mar 01, 2025 10:04 am

Voted it up ... From zero votes to one vote. :wink:

BTW:
D2 in line mode is about the answer to a 5 year old feature request FS#1983
Before I only needed to indicate the side, now I can draw an auxiliary line or several, one after the other, for a curved limit.
Requested closure ... Several older closure requests are trailing.

Regards,
CVH

Post Reply

Return to “QCAD Troubleshooting and Problems”