Funcan / heekscad

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

HeeksCNC Pocket Operation #268

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ubuntu 9.10 / HeeksCNC

I have Problems with Pocket Operation since r937
It works when I downgrade to r936 

The Error Message:

Traceback (most recent call last):
  File "test.py", line 56, in <module>
    area_funcs.pocket(a1, tool_diameter/2 + 0,2, rapid_down_to_height,
start_depth, final_depth, 0,5, step_down, 1, clearance, 0)
TypeError: pocket() takes exactly 10 arguments (12 given)

Original issue reported on code.google.com by aachen.h...@googlemail.com on 27 Apr 2010 at 10:43

GoogleCodeExporter commented 9 years ago
This is another example where I have not appreciated what the locale settings 
on a
wxString mean.  The extra arguments are due to the fact that a floating point 
number
is being converted into two Python parameters by the 
wxString::operator<<(double)
method due to the use of a comma as a decimal point.  Python uses the comma as 
an
argument separator.

I may need to change back to the std::ostringstream or std::wostringstream 
instead of
wxString.

Sorry about that.  I'm won't be in a position to repair this until tonight.  
(It's
only lunch time here at the moment)  Leave it with me and I will fix it.

Original comment by David.Ni...@gmail.com on 28 Apr 2010 at 2:42

GoogleCodeExporter commented 9 years ago
Hans,
  sorry about that.  Can you give it a go now?  I made quite a few changes but I
believe I got them all (famous last words).

  Thanks
  David Nicholls

Original comment by David.Ni...@gmail.com on 28 Apr 2010 at 9:29

GoogleCodeExporter commented 9 years ago
David,
N.P. thx for spending your Time.
I understand that Problem.
THX for fixing this ... 

Hans

Original comment by aachen.h...@googlemail.com on 28 Apr 2010 at 4:50