Message 1 of 4
CAM postProcess "Initialization fails"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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 = adsk.cam.PostOutputUnitOptions.MillimetersOutput
postInput = adsk.cam.PostProcessInput.create(programName, postConfiguration, outputFolder, outputUnits)
post_success = cam.postProcessAll(postProcessInput) # Produces error
Failed:
Traceback (most recent call last):
[...]
post_success = cam.postProcessAll(postInput)
File "C:/Users/lorraine/AppData/Local/Autodesk/webdeploy/production/a93b41817d8af77c4f46fcf4f87b0f003298f7f0/Api/Python/packages\adsk\cam.py", line 375, in postProcessAll
return _cam.CAM_postProcessAll(self, *args)
RuntimeError: 3 : Initialization fails.