nav111 / heekscnc

Automatically exported from code.google.com/p/heekscnc
Other
0 stars 0 forks source link

Imported DXF can not be reordered #224

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Import attached DXF - a square of 1 inch on each side (created as an export 
from eMachineShop's CAD application)
2. Comes in as a sketch, yet when I reorder, it says 'multiple'
3. I created a sketch with exactly the same dimensions in Heekscnc
4. The square I create can be ordered

What is the expected output? What do you see instead?
I would expect both squares to be able to be reordered.

What version of the product are you using? On what operating system?
Using HeeksCNC v. 0.13.1
Using Windows 7
Using eMachineShop v1.69 cad program

Please provide any additional information below.

Original issue reported on code.google.com by filipmul...@q.com on 16 Jun 2010 at 2:38

Attachments:

GoogleCodeExporter commented 8 years ago
I haven't looked at the data yet.  I will look at it tomorrow.  My guess is 
that the endpoints of the separate lines won't actually join within the 
'drawing->geometry tolerance' setting in HeeksCAD.  By default the geometry 
tolerance is 0.000001 and so the X,Y coordinates must match to this many 
decimal places for two points to be considered coincident.  One workaround is 
to change the 'geometry tolerance' setting in the 'drawing' options and then 
try reordering the sketch.

I will try this tomorrow to prove the theory.  If it's right then I wonder if 
another option would be for us to add the concept of a tolerance value for each 
graphical object in a similar way that OpenCascade does it.  i.e. instead of 
having one global setting.  The DXF import routine would need to count the 
number of decimal places to decide what the tolerance should be set to.

Do you think I'm jumping ahead to a repair before I have diagnosed the problem. 
 That never happens....

Original comment by David.Ni...@gmail.com on 16 Jun 2010 at 1:04

GoogleCodeExporter commented 8 years ago
I did check the endpoints in the properties, and I did not see extra decimal 
places, but maybe they don't show in the display and are internal?

I gave changing the 'drawing->geometry tolerance' a try.  Mine was set to 0.  
So I changed it to .0001 inches and it was able to reorder.  I tried a couple 
other DXF's and it worked for me.  I am OK with keeping the tolerance up a bit 
for my usage. Seems like having a unique tolerance per item would add a lot of 
complexity vs the added benefit in my opinion.  An alternative might be a 
rounding process as the DXF is imported.  That way you could change the level 
of rounding before you import if there is an issue.  

Might make sense to add something to the Wiki under the DXF import page about 
playing with the geometry tolerance for pesky DXF's.

Original comment by filipmul...@q.com on 17 Jun 2010 at 1:43

GoogleCodeExporter commented 8 years ago
That suits me for the moment.  I have my mind in other areas as the moment (no 
comments please).  There is no Wiki for DXF import yet and I don't wish to 
spend the time adding one.  Do you want to leave this issue open until it's 
done or is this solution alright as it is?

Original comment by David.Ni...@gmail.com on 17 Jun 2010 at 8:35

GoogleCodeExporter commented 8 years ago
OK to leave as it is.  Thanks for your help.

Original comment by filipmul...@q.com on 18 Jun 2010 at 2:08

GoogleCodeExporter commented 8 years ago

Original comment by David.Ni...@gmail.com on 18 Jun 2010 at 2:55