[solved] too many 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
User avatar
J-J
Moderator
Posts: 502
Joined: Tue Mar 24, 2009 9:48 pm

[solved] too many duplicates

Post by J-J » Thu Jul 30, 2015 7:45 am

Using 3.9.7 on Win7-64
I am working on a rather simple simple drawing, dwg less than 50 kb, and at one point I checked for duplicates. I found more than half a dozen on top of each others, simple entities and blocks, I started deleting and the program crashed...The initial file grew to 4.5 MB, to the point that the program hangs if I try to edit the file!
While testing with another copy, I cleaned one block so that one sample only was left, saved the current drawing and then stated to delete dupes on another block, the process was becoming slower after each pass and then QCAD crashed.
I reopened the same file and the dupes were back on the first block I had cleaned and saved... e_confused
I'm attaching that copy of the file if you wish to have a look
Attachments
bôme de levage-V2.1.dwg
(361.54 KiB) Downloaded 390 times
JJ Win7 pro-64

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

Re: too many duplicates

Post by andrew » Thu Jul 30, 2015 1:28 pm

I cannot quite reproduce the problem here although I can see that the file is full of duplicates.

Can you load the attached cleaned up file and check if there are any duplicates on your installation?
If not, please save it and load it again and check again if there are any duplicates. Thanks.
Attachments
bome de levage-V2.1_fix.dwg
(26.91 KiB) Downloaded 396 times

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: too many duplicates

Post by Clive » Thu Jul 30, 2015 1:51 pm

Hi J-J, Andrew

One thing I noticed is that if you select the layer 'cotation lineaire' and turn all of the other layers off, you will see that once selected there are 702 dimensions selected - wow that's a lot of dimensions!

Then if I run the detect duplicates command I get 702 duplicates found, hey, I'm just wondering how that many got there in the first place.

J-J, Did you somehow mistakenly multiply something to produce all of these ?

User avatar
J-J
Moderator
Posts: 502
Joined: Tue Mar 24, 2009 9:48 pm

Re: too many duplicates

Post by J-J » Thu Jul 30, 2015 6:03 pm

On the first opening of the fixed file, all appeared OK.
Then I saved it withe a new name and made a few changes: moved a block, added a dim. Saved again and closed QCAD
Restart QCAD, open the latest file...I have four dupes of each entity!... pulling my hair :x
I'll keep on testing
JJ Win7 pro-64

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

Re: too many duplicates

Post by andrew » Thu Jul 30, 2015 7:12 pm

OK, thanks. How about opening the file and simply saving it again (under a new name) without making any changes? I'm trying to figure out if the duplication occurs during saving, loading or somewhere else. Thanks.

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

Re: too many duplicates

Post by Husky » Thu Jul 30, 2015 7:26 pm

Hello J-J,
J-J wrote:Restart QCAD, open the latest file...I have four dupes of each entity!...
I cleaned the drawing by myself and tried to reproduce your experience but I can't. After cleaning ... everything works just as expected.
I used "Misc / Block / Export Blocklist" to get the Infos about how many blocks are used ...

Your drawing:
Count Block Name
0 *Paper_Space
0 *Paper_Space0
1 axe horiz
0 *Model_Space
518 bague pom
512 chape fixe
128 bôme H
128 bôme
1040 cale
576 axe Vert top
2 axe vertical coté
72 axe vertical


... the cleaned drawing has now this:
Count Block Name
0 *Paper_Space
0 *Paper_Space0
1 axe horiz
0 *Model_Space
2 bague pom
1 chape fixe
2 bôme H
2 bôme
4 cale
1 axe Vert top
2 axe vertical coté
2 axe vertical


Here is my cleaned test drawing:
bôme de levage-V2.1._mod.dwg
(25.84 KiB) Downloaded 386 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
J-J
Moderator
Posts: 502
Joined: Tue Mar 24, 2009 9:48 pm

Re: too many duplicates

Post by J-J » Thu Jul 30, 2015 9:47 pm

Hi guys,

I think I found the culprit: me e_confused
I was invoking "DP" instead of "MD". I got the hint when I saw that the dupe numbers were multiples of 2. Sorry about the trouble, I don't use keyboard command much.
JJ Win7 pro-64

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

Re: [solved] too many duplicates

Post by andrew » Fri Jul 31, 2015 10:07 am

Thanks for the update, glad it's sorted.
I'll a command line message feedback to the duplicate command to make such an error easier to spot in the future.

User avatar
J-J
Moderator
Posts: 502
Joined: Tue Mar 24, 2009 9:48 pm

Re: [solved] too many duplicates

Post by J-J » Fri Jul 31, 2015 5:13 pm

command line message feedback to the duplicate command
Good :idea:

Coming back to the "delete duplicates", in a case there are several, is there a way to to delete all but one in one shot, I could not figure it out?
JJ Win7 pro-64

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

Re: [solved] too many duplicates

Post by Husky » Fri Jul 31, 2015 6:31 pm

J-J wrote:
command line message feedback to the duplicate command
... in a case there are several, is there a way to to delete all but one in one shot, I could not figure it out?
I'm pretty sure that Andrew has a better solution than me (and I'm curious to hear about it) but here is how I handle something like this without the Duplicate finder.

Select the "Suspected" Objects with Mouse Rectangle selection right to left move - eye on Property Editor.
Husky-2015.07.31-01.png
Husky-2015.07.31-01.png (15.27 KiB) Viewed 7766 times
Husky-2015.07.31-02.png
Husky-2015.07.31-02.png (19.06 KiB) Viewed 7766 times
I selected 100 Polygons ...

Press "Shift" Key on the Keyboard and deselect with "One" Left Mouse click one Polygon out of this bunch of selections. You will only see that the count in the Property Editor will drop from 100 to 99 ...
Husky-2015.07.31-03.png
Husky-2015.07.31-03.png (18.85 KiB) Viewed 7766 times
Hit then "Delete" and 99 Polygons are gone ...
Husky-2015.07.31-04.png
Husky-2015.07.31-04.png (18.49 KiB) Viewed 7766 times
... one left and that is all what I need! :wink:


Hope it helps ...
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
J-J
Moderator
Posts: 502
Joined: Tue Mar 24, 2009 9:48 pm

Re: [solved] too many duplicates

Post by J-J » Fri Jul 31, 2015 7:30 pm

Hi Husky,

That looks clever, I'll have a try :wink:
JJ Win7 pro-64

Post Reply

Return to “QCAD Troubleshooting and Problems”