knipknap / better-tool-library

A FreeCAD addon and command line tool for managing tool libraries
MIT License
18 stars 10 forks source link

V bit import from Fusion 360 files sets TipAngle, not CuttingEdgeAngle #26

Open shampeon opened 7 months ago

shampeon commented 7 months ago

Any tools from Fusion 360 can't be used with a V engrave job because the parameters set TipAngle instead of CuttingEdgeAngle. E.g.

{
  "attribute": {
    "btl-notes": "",
    "btl-supplier": "SpeTool"
  },
  "name": "SpeTool W06008 SPE-X Extra Tool Life Coated Solid Carbide 20 Degree Engraving 0.005\" Tip Width x 1/4\" Shank x 2-1/4\" Long Signmaking Router Bit",
  "parameter": {
    "Chipload": "0,01 mm",
    "CuttingEdgeHeight": "0,69488188976378 in",
    "Diameter": "0,25 in",
    "Flutes": "2",
    "Length": "2,25 in",
    "Material": "Carbide",
    "NeckLength": "0,69488188976378 in",
    "ShankDiameter": "0,25 in",
    "TipAngle": "20,0 deg",
    "TipDiameter": "0,005 in"
  },
  "shape": "_fusion_chamfer_mill.fcstd",
  "version": 1
}

Compare with the default V bit:

{
  "attribute": {},
  "name": "60 Deg. V-Bit",
  "parameter": {
    "Chipload": "0,0 mm",
    "CuttingEdgeAngle": "60,0 \u00b0",
    "CuttingEdgeHeight": "1,0 mm",
    "Diameter": "10,0 mm",
    "Flutes": "2",
    "Length": "20,0 mm",
    "Material": "HSS",
    "ShankDiameter": "5,0 mm",
    "TipDiameter": "1,0 mm"
  },
  "shape": "vbit.fcstd",
  "version": 1
}

What this functionally means is that even if you add a tool to a Path Operation, it can't be selected in a Vcarve job. The Tool Controller isn't selectable.

Screen Shot 2024-02-28 at 3 11 55 PM
knipknap commented 7 months ago

The importer was contributed by @alexneufeld ; can you comment on this?

I guess there's two choices: 1. The Path workbench needs to be made more flexible to support other geometries, or 2. convert the geometry to the FreeCAD V-Bit on import.

I am not sure what is better here.