Many thanks @BrianEkins & @jeff.pek for your help.
I can access and read the manufacturing model param values now - though not write to them.
I always get "Invalid enumeration value." Looking into getChoices(), shows that only default is an acceptable option. This is confirmed by looking a the output from export parameters:
name: job_workingModel
title: Manufacturing Model
expression: "'MfgWorkingModel'"
isEditable: True
isEnabled: True
ChoiceParameterValue
value: MfgWorkingModel
choices:
name: <Default>, value: 'default'
I currently have 3 manufacturing models, why is it that the choiceparameter choices are not updated to include the other manufacturing models as valid choices. Of course I can successfully select them in the setup dialog in fusion, but cannot set them via the API as its not in the list of acceptable values.
I have tried to set it with
setup.parameters.itemByName("job_workingModel").ChoiceParameterValue = "\'default\'"
&
setup.parameters.itemByName("job_workingModel").ChoiceParameterValue = "\'MfgWorkingModel\'"
These do not error out but also do not take effect.
&
mmparam = setup.parameters.itemByName('job_workingModel')
choiceVal: adsk.cam.ChoiceParameterValue = mmparam.value
choices = choiceVal.getChoices()
choiceVal.value = "default" #THIS WORKS
choiceVal.value = "MfgWorkingModel" #Invalid enumeration value
choiceVal.value = "/'MfgWorkingModel/'" #Invalid enumeration value
Yet other similar items with set/known values like
jobparam = setup.parameters.itemByName('job_type')
choiceVal: adsk.cam.ChoiceParameterValue = jobparam.value
choices = choiceVal.getChoices()
choiceVal.value = "milling"
do not have an issue.
Any ideas how I can get it to accept a manufacturing model that exists but isn't on the list?