Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAM postProcess "Initialization fails"

Message 1 of 4
429 Views, 3 Replies

CAM postProcess "Initialization fails"


Getting an "initialization fails" error when using `cam.postProcessAll` or `cam.postProcess`.  Can anyone shed some light why?  Post process works when clicking through UI.


        programName = '1001'
        postConfiguration = os.path.join(cam.genericPostFolder, 'mach3mill.cps')
        outputFolder = 'C:/Users/lorraine/AppData/Local/Fusion 360 CAM/nc'
        outputUnits =

        postInput =, postConfiguration, outputFolder, outputUnits)

        post_success = cam.postProcessAll(postProcessInput)  # Produces error



Traceback (most recent call last):
    post_success = cam.postProcessAll(postInput)

  File "C:/Users/lorraine/AppData/Local/Autodesk/webdeploy/production/a93b41817d8af77c4f46fcf4f87b0f003298f7f0/Api/Python/packages\adsk\", line 375, in postProcessAll
    return _cam.CAM_postProcessAll(self, *args)
RuntimeError: 3 : Initialization fails.


Tags (4)
Labels (2)
Message 2 of 4

Are you trying to post process it through some scripts or API?

If so then its missing the cam.postProcess() requires two things one is inputs and other is the setup details you want to post 

here is the sample api program


Boopathi Sivakumar
Senior Technology Consultant

Message 3 of 4

Hi,  thanks for the reply.

It happens both when I use cam_var.postProcessAll with 1 arg (postProcessInput) and when I use cam_var.postProcess with 2 args (operation, postProcessInput)

Message 4 of 4


Could you attach the script?


Boopathi Sivakumar
Senior Technology Consultant

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators

Autodesk Design & Make Report