Error: Failed to invoke function 'onSection'.

Error: Failed to invoke function 'onSection'.

Anonymous
Not applicable
9,407 Views
12 Replies
Message 1 of 13

Error: Failed to invoke function 'onSection'.

Anonymous
Not applicable

Any idea what this means in a post processor? 

0 Likes
Accepted solutions (1)
9,408 Views
12 Replies
Replies (12)
Message 2 of 13

Anonymous
Not applicable

Can you post the full text output for the failure?

 

Take a closer look at it, you will hopefully find additional errors that will tell what happened to prevent the post from reaching onSection( ).

 

Dave

0 Likes
Message 3 of 13

Anonymous
Not applicable

I sure will, stepped out for a moment. I have a feeling it has something to
do with the selection of the z axis, working on an indexed 4th axis project
using multiple orientations (16). Trying to get close to continuous 4th
axis milling without spending ALL day programming.

 

Edited by Request
Discussion_Admin

0 Likes
Message 4 of 13

Anonymous
Not applicable

File paths removed but you can see the meat of what is going on here. 

 

Information: Configuration: ShopBot OpenSBP
Information: Vendor: ShopBot Tools
Information: Posting intermediate data to "...."
Error: Failed to post process. See below for details.
...
Start time: Mon May 16 06:01:51 2016
Post processor engine: 4.2.1 40528
Configuration path: ....
Include paths: ....
Configuration modification date: Fri May 13 18:08:26 2016
Output path: ....
Checksum of intermediate NC data: 66756f91c39ad519c10d2503fe7284c2
Checksum of configuration: 802f835ea0d967e463b61b30bff7cb0c
Vendor url: http://www.shopbottools.com
Legal: Copyright (C) 2012-2016 by Autodesk, Inc.
Generated by: Fusion 360 CAM 2.0.2016
...
Error: Failed to invoke function 'onSection'.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Failed to invoke 'onSection' in the post configuration.
Error: Failed to execute configuration.
Stop time: Mon May 16 06:01:51 2016
Post processing failed.

0 Likes
Message 5 of 13

George-Roberts
Collaborator
Collaborator
Could you upload a copy of your post processor and the file you are trying to post?
0 Likes
Message 6 of 13

HughesTooling
Consultant
Consultant

Have you been able to post before using tool orientation in ops or is it just one project that's a problem? 

 

Mark

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 7 of 13

Anonymous
Not applicable

Mark, 

I have been able to post multiple ops before, in fact using finishing (or the 3d parralel operation) from the 0, 90, 180, and 270 degree orientations all work just fine in the exact same  part. But on this pocketing operation at the other orientations, again 16 of them, something is off. I'm thinking it might be the way the model is aligned to the WCS and I am selecting a Z axis that is not perpendicular maybe? I have no idea but it is the weirdest thing. 

 

Would prefer to not post the actual work to the forum, but the post processor is the one readily available from the post library here on fusion website (attached). 

 

Does anyone know what causes an onsection error in general? that may help me narrow in on it myself. Thank you all for your responses. 

0 Likes
Message 8 of 13

HughesTooling
Consultant
Consultant

Can you duplicate the setup and try deleting some of the ops to try narrowing it down a bit or post the ops one at a time.

 

Mark

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 9 of 13

Anonymous
Not applicable

Mark,

Any one of the toolpaths for those offsets mentioned do not work. I can post 1 or all 4 of the finishing toolpaths with no problem though. The finishing tps are oriented in the 0, 90, 180, and 270 orientations around the X axis. For my machine B is the indexer axis and it rotates around X.

 

I have duplicated the file with a different model (but same issues) to upload it here, everything is exactly the same. You will see in the cam simulation, they all work just fine, but trying to post with the post processor I uploaded earlier does not work. 

 

In the bodies section, the body with the 16 faces is the one I used to designate where Z points in the tool orientations. I even tried using that sketch in there and only clicking on the lines, no dice. this should make sense once you see the file. Sorry the verbiage I am used to is slightly different from the way fusion labels things. 

 

 

0 Likes
Message 10 of 13

Anonymous
Not applicable

Just tried this out with your part and post (and actually it failed the same with with the Tormach post).  I'm not sure why you aren't getting the addtional error line about the tool orientation like I am:

 

 

Vendor url: http://www.shopbottools.com
Legal: Copyright (C) 2012-2016 by Autodesk, Inc.
Post processor signature could not be verified (error 0xfffffffc).
Generated by: Fusion 360 CAM 2.0.2016
...
Error: Tool orientation is not supported.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Failed to invoke function 'onSection'.
Error: Failed to invoke 'onSection' in the post configuration.
Error: Failed to execute configuration.
Stop time: Tuesday, May 17, 2016 2:36:34 AM
Post processing failed.

 

 

Dave

0 Likes
Message 11 of 13

Anonymous
Not applicable

Yes, it's failing the test in this code:

 

    var remaining = currentSection.workPlane;
    if (!isSameDirection(remaining.forward, new Vector(0, 0, 1))) {
      error(localize("Tool orientation is not supported."));
      return;
    }

As you suggested, looks like it's checking to see if the work plane is the same direction as the Z axis and failing since it isn't.

 

 

So I guess the question is, what if you comment out that test so the "setRotation(remaining)" gets called and you either add the gcode to rotate or manually rotate your 4th axis.  Will you get good code or garbage?  It does post without that test, but I don't know if the resulting code will give you what you want.

 

 

Dave

0 Likes
Message 12 of 13

Anonymous
Not applicable
That's great knowledge Dave, thank you for your help.
I think a better way to solve this for now and for future projects would be to figure out how to draw perfectly oriented axis and pick the correct face to start out with.

Would just checking the "5 axis" button in the post processor window also work? Or would that add a bunch of bs code?
0 Likes
Message 13 of 13

Anonymous
Not applicable
Accepted solution

Alright, I figured this out fully. I definitely do not know the answer to your questions Dave, however I attached the newest version which will demonstrate how to do this correctly. I'm sure you all know this, but it is all in how you set up your WCS relative to the model in the setup of the cam operation. When I set mine up the first time, i just used the move command to try and get the model as close to the layout WCS that I could, by eyeballing it. In this version I drew points in the center of the circles on the end of the model, and then drew an axis through them. I made a construction plane along this axis, and copies that around at 45˚ intervals 4 times (8 sides) to have perfectly perpendicular axises to the center X axis. Choosing those construction planes as the new Z axis for every tool path made it all work. File attached with new version. You'll see I had to flip the Z on a couple of them but it works and posts perfectly. thank you all for your help. 

0 Likes