TimPaterson / Fusion360-Batch-Post

Fusion add-in to post all CAM setups at once, optionally dividing them into folders.
The Unlicense
132 stars 26 forks source link

Incompatible with Kirbre's `onefinity.cps` post processor? #47

Closed U007D closed 2 years ago

U007D commented 2 years ago

Pretty new to CNC, but running Process All against Kirbre's Onefinity post-processor failed as per attachments.

The Onefinity post-processor can be found here. This is the only Onefinity post-processor available, AFAIAA.

Is there something else I can try?

Screen Shot 2022-10-09 at 6 53 54 AM Screen Shot 2022-10-09 at 6 53 48 AM

TimPaterson commented 2 years ago

This is a duplicate of Issue #17, although you'd never know by the title (but you would find it by searching Issues for "onefinity"). For convenience, I've pasted in the solution given there with updated line number. Refer to the original issue if you want more information.

Looking at the Onefinity post I see a small block of code starting at line 611 that makes the tool command a comment if it's the first section. It looks like this:

if (!isFirstSection()) {
  writeBlock("T" + toolFormat.format(tool.number), conditional(getProperty("useM06"), mFormat.format(6)));
} else {
  writeComment("T" + toolFormat.format(tool.number));
}

Just delete all lines of this block except the second one, leaving:

writeBlock("T" + toolFormat.format(tool.number), conditional(getProperty("useM06"), mFormat.format(6)));