t0mac0 / heekscnc

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

After detach, unattached operations fail #341

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an attached pocket operation followed by a non-attached operation.
2. Post-process
3. Generated python script fails when when it calls a method in the 
attach.Creator after the detach.

What is the expected output? What do you see instead?
(In program)

Actual:

attach.attach_end()
nc.creator.set_ocl_cutter(...)

Expected:

attach.attach_end()

What version of the product are you using? On what operating system?

v0.22 and v1.0

Please provide any additional information below.

After the attach_end(), the nc.creater is no longer the attach.Creator, so the 
the call fails. When the program is being generated, m_attached_to_surface is 
still true when calling CHeeksCNCApp::SetTool for the next operation.

Original issue reported on code.google.com by mike.mer...@gmail.com on 11 May 2014 at 6:12

GoogleCodeExporter commented 8 years ago
Correction, m_attached_to_surface is not NULL when the call to SetTool is made 
for the non-attached operation.

Original comment by mike.mer...@gmail.com on 11 May 2014 at 6:16

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
In my dev environment, if I add the following line to Program.cpp (line 898), 
it seems to fix the problem.

theApp.m_attached_to_surface = NULL;

Original comment by mike.mer...@gmail.com on 11 May 2014 at 7:49

GoogleCodeExporter commented 8 years ago
I have repeated this. Your fix is a good one. I have committed my change to my 
SVN code. Thanks.

Original comment by danhe...@gmail.com on 12 May 2014 at 7:55