Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

PostProcessInput outputFolder ignored

Anonymous

PostProcessInput outputFolder ignored

Anonymous
Not applicable

When calling CAM.postProcessAll, the outputFolder parameter seems to be ignored.  Instead of going to the passed directory (which I have tried to pass cam.temporaryFolder, C:\drop\, C:\drop, and several other values), it always uses 'C:\Users\username\AppData\Local\Fusion 360 CAM\nc\'.

 

I cannot seem to determine programmatically the path being used.  How can I control or access the path via the API?

0 Likes
Reply
Accepted solutions (1)
353 Views
2 Replies
Replies (2)

kandennti
Mentor
Mentor

Hi @Anonymous .

 

I use this data

1.png

 

I modified this code and tried it.

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-BF31EB56-B612-44C8-8F07-0C183036C803 

・・・
       cam = adsk.cam.CAM.cast(product)

        # specify the program name, post configuration to use and a folder destination for the nc file
        programName = '101'
        outputFolder = r'c:\tmp'

        # set the post configuration to use based on Operation Type of the first Setup
        firstSetupOperationType = cam.setups.item(0).operationType

・・・

        # set the value of scenario to 1, 2 or 3 to post all, post the first setup, or post only the first operation of the first setup.
        scenario = 1
        if scenario == 1:
            ui.messageBox('All toolpaths will be posted')
・・・

It was created in the specified folder path.(Win10 64bit)

0 Likes

Anonymous
Not applicable
Accepted solution

Sometimes, I really think I might have had an easier time if I had gone into rocketry.

 

I can reproduce your results using the script unmodified, but not if I specify the post config I am requiring.  Further, the issue does not occur on a fresh install of fusion with the same post and script.

 

It seems this issue is limited to when HKEY_CURRENT_USER\Software\Autodesk\Fusion 360 CAM\ui\post process dialog:output folder or HKEY_CURRENT_USER\Software\Autodesk\Fusion 360 CAM\post configurations\file:///C:/Users/user/AppData/Local/Autodesk/webdeploy/production/version/Applications/CAM360/Data/Posts/postname.cps:output folder refers to a UNC path that is not accessible. Deleting the two values restores normal function.

0 Likes