[Beta] Mismatch in TclCommand argument names in export_dxf and export_svg

Issue #677 new
Blake Lucas created an issue

When using the FlatCam Shell, the export_dxf command fails with the following error:

> export_dxf Board-F_Cu.gbr_ncc Board-F_Cu.gbr_ncc.dxf
  ERROR Report: Missing required argument 'obj_name'.
    while executing
"export_dxf Board-F_Cu.gbr_ncc Board-F_Cu.gbr_ncc.dxf"

This is caused by a mismatch b/t argument names in tclCommands/TclCommandExportDXF.py lines 21 and 30. export_svg has a similar problem. I can submit a PR with fixes, (though I did have to make some small ancillary changes elsewhere to get the code to run on Windows).

Comments (1)

  1. Marius Stanciu

    Hi Blake,
    I had a look and indeed there was a required option name that was not used and being there I fixed it in the commands: export_dxf and export_gerber. Looks like the export_svg was fixed at some point in the branch that I’m working on so now, the current branch should be all right.

  2. Log in to comment