Create CNC Job from a Excellon Object

Issue #289 resolved
Daniele Fornaciari created an issue

Hi, on a Mac OSX 10.14.4 using Python 3.7.3 I have the follow problem: when I try to create a cnc job for drill from a Excellon Object nothing happen and in the status bar the follow text: "An internal error occurred. See shell"

in the shell:

[DEBUG][MainThread] on_create_cncjob_button_click--> FlatCAMObj.read_form()
[WARNING][MainThread] Failed to read option from field: toolchangexy
[ERROR][MainThread] Could not evaluate: 
[WARNING][MainThread] Failed to read option from field: optimization_type
[WARNING][MainThread] Failed to read option from field: format_upper_in
[WARNING][MainThread] Failed to read option from field: format_lower_in
[WARNING][MainThread] Failed to read option from field: format_upper_mm
[WARNING][MainThread] Failed to read option from field: format_lower_mm
[WARNING][MainThread] Failed to read option from field: units
[WARNING][MainThread] Failed to read option from field: search_time
[WARNING][MainThread] Failed to read option from field: zeros
[WARNING][MainThread] Failed to read option from field: f_plunge
[WARNING][MainThread] Failed to read option from field: offset
[WARNING][MainThread] Failed to read option from field: f_retract
[WARNING][MainThread] Failed to read option from field: exp_units
[WARNING][MainThread] Failed to read option from field: exp_format
[WARNING][MainThread] Failed to read option from field: exp_integer
[WARNING][MainThread] Failed to read option from field: exp_decimals
[WARNING][MainThread] Failed to read option from field: exp_zeros
[WARNING][MainThread] Failed to read option from field: xmin
[WARNING][MainThread] Failed to read option from field: ymin
[WARNING][MainThread] Failed to read option from field: xmax
[WARNING][MainThread] Failed to read option from field: ymax
[DEBUG][MainThread] Object new_exc_edit_cnc has been promised.
[DEBUG][Dummy-4] new_object()
[DEBUG][Dummy-4] Calling object constructor...
[DEBUG][Dummy-4] Creating CNCJob object...
[ERROR][Dummy-4] Could not evaluate: 
[ERROR][Dummy-4] Could not evaluate: 
[DEBUG][Dummy-4] 0.039018 seconds before initialize().
[DEBUG] Creating CNC Job from Excellon...
[DEBUG] Tools selected and sorted are: ['1', '2']
[DEBUG] Using OR-Tools Basic drill path optimization.

This is the result of a file created inside FlatCAM (that I attached: newest_edit.DRL), but the same happens with an exported file (Gerber_Drill_PTH.DRL)

I tried the same also on a Windows10, but the same happens.

How to reproduce: download file, import in a new project select one and than select "Create GCode" Button

Comments (5)

  1. Marius Stanciu

    @Neo1975

    Hi Daniele,

    I believe that the issue is related to a change that Google OR-Tools has done in the latest version (the API was broken) of their package coupled with the fact that just before the release I've done the upgrade without further checking.

    I have already upgraded the affected part of code and the issue is solved and it will be available in the next version, 8.915. For now, the 8.914 x86 windows installer is working properly as it does not use the Google OR-Tools but a simple Travelling Salesman algorithm for drill path optimization. BTW, I did opened the file with no issue in my working version (which is not ready for publishing yet).

    Best, Marius

  2. Daniele Fornaciari reporter

    Thanks, when you’ll push I will try it from Beta branch, so I can go forward with my project.

  3. Marius Stanciu

    @Neo1975

    You can safely use the 8.913 version until I finish what I’ve started for 8.915. Use the provided file bundle instead of cloning the beta branch if using it in MacOS.

  4. Log in to comment