Page 1 of 1

remove duplicate lines

Posted: Wed Oct 30, 2019 5:05 pm
by hvfrancesco
I have some issues in cleaning a dxf file I produce from projections of a sketchup model.
Having several stacked lines I use the detect duplicate command, but when I choose to delete the detected duplicates all of the lines are deleted and not only the redundant ones.
I attach one of the files I'm having troubles with.

Re: remove duplicate lines

Posted: Wed Oct 30, 2019 7:40 pm
by Husky
I assume the issue is based on the size of your drawing. It is very tiny with unusual short line entities.

Roof upper left side:

Husky-2019.10.30-01.png
Husky-2019.10.30-01.png (14.52 KiB) Viewed 3297 times

To clean that up effectively you have to adjust the "Distance Tolerance" in the "Detect Duplicate" Option bar or scale the drawing to a more reasonable size.

Re: remove duplicate lines

Posted: Wed Oct 30, 2019 10:05 pm
by CVH
The function 'Detect Duplicate' will find duplicates
governed by the given tolerances as far as they:
  • are almost the same
    are almost at the the same position
    have almost the same angle
When the entities differs considerably in lenght or
when they only overlap partially they are not considered as a duplicate.
See example dxf.

Above 0.00045 tolerance most parallel lines of the rooftop are considered as duplicates.
As they are only spaced 0.000085 / 0.000338 / ....

I saw some did protude a little.
With a few simple selects I could isolate some on 5 separete layers.
From what was left I have put the duplicates found apart in layer 6.
Before deleting any it is better to move them to a temporary layer (eg. Trashcan).

It not looking great.
I afraid there is now easy solution.
Revised file attached

Regards,
CVH