nav111 / heekscnc

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

re-opening files causes duplicate sketch objects to be created #263

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a file with multiple profile operations on the same sketch
2. Save the file
3. Re-open it.  Note the same sketch object is duplicated under some profile 
operations.

What is the expected output? What do you see instead?

Look at the attached file under operation 'outside profile 2' - note the two 
identical objects for the 'Outside' sketch.  This causes duplicate gcode.  I 
also attach a screen print.

What version of the product are you using? On what operating system?
heekscnc 15.1, windows 7.  Also seems to occur under XP

Please provide any additional information below.

Original issue reported on code.google.com by filipmul...@q.com on 11 Nov 2010 at 11:39

Attachments:

GoogleCodeExporter commented 8 years ago
I believe I've fixed this with the re-instatement of the MergeCommonObjects() 
call.  Is this alright now?

Original comment by David.Ni...@gmail.com on 12 Nov 2010 at 10:40

GoogleCodeExporter commented 8 years ago
I pulled the latest source code and managed to compile it (HeeksCAD and 
HeeksCNC).  Still see the issue.  If I open the file I previously attached, I 
see the duplicate sketches still for some of the profile operations (duplicate 
in the objects view, but not in the drawing window).  The file's XML does not 
contain duplicates, however.  So it seems to occur as part of the file read 
process into HeeksCAD.  If I make a change and resave the file, it adds the 
duplicates to the file XML (see attached).  If I open the file again, I now see 
three identical sketches (from 2).  So every time I open and resave, a new 
duplicate sketch object show up in the object view.  

This problem does not occur with the first profile op that uses a sketch object.
It seems to be happening when I reuse the same sketch object in any subsequent 
profile operation. 

This might be another hint:  When I select the duplicate sketch object under 
the profile op, all the identical sketch objects highlight.  If I delete the 
sketch object under the profile op, one of the duplicate sketch objects remain 
under the profile op.  The sketch object at the higher level gets deleted.  If 
I undo the deletion, I see the higher level sketch object return.  But now the 
two identical sketch objects actually become two separate objects in the 
drawing view (two identical drawings, each selectable).  In the properties box 
these sketch objects have the same ID.  Not sure how two objects can have the 
same ID and be treated different.

It's a bit frustrating because if I save a project and go back to it, it gets 
corrupted this way.  The only fix I have found is after I open the file, I use 
the 're-select sketches' process for the profile op to replace the duplicates.  

Original comment by filipmul...@q.com on 14 Nov 2010 at 1:50

Attachments: