CAM Post Settings

CAM Post Settings

ryansmith_
Contributor Contributor
392 Views
4 Replies
Message 1 of 5

CAM Post Settings

ryansmith_
Contributor
Contributor

I'm creating a script that posts to an NC file from a Setup. I don't see a way to update the fileName or access the nc_program_filename parameter. Is there a way to read/write this value for the post to give the post a different name?

0 Likes
393 Views
4 Replies
Replies (4)
Message 2 of 5

kandennti
Mentor
Mentor

Hi @ryansmith_ .

 

I think you mean the "NC Program", but I have looked for it and I think it is not yet supported by the API.

0 Likes
Message 3 of 5

ryansmith_
Contributor
Contributor
Thanks for looking and the response @kandennti. I have looked quite a bit and haven't been able to find anything either. Do you know if any of this functionality is accessible through the older "Post Process" version? Or any other route?
0 Likes
Message 4 of 5

kandennti
Mentor
Mentor

@ryansmith_ .

 

The default name for both NC programs and the old method would be "Program Name/Number" in the setup.

1.png

If it is "Program Name/Number", you may be able to access it with this sample.

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-2716A113-555D-41B0-8FC4-4FCD265434C4 

 


However, the sample here, which uses the API for post processing, seems to be determined by the PostProcessInput.create method, regardless of the setup.

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

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-914741D5-A17A-48EB-BAFB-885BDCFE5245 

 

0 Likes
Message 5 of 5

ryansmith_
Contributor
Contributor

Hi @kandennti. The examples you sent are the ones I've been using. And you're correct about being able to call job_programName and job_programComment from setup.parameters. These setup parameters (about 177) don't contain any information about the post-processor, path, or filename. I haven't found a path to access the nc_program group in cam.py or any others yet either.

 

ryansmith__0-1653148129138.png

 

0 Likes