Hello, i have a question about CAM API. Can i choose a Contours2D by using API? It is possible?
Based on the documentation i wrote this
for setup in setups:
# Change the program name of each setup to 1234
programNameParam = setup.parameters.itemByName('job_programName')
programNameParam.expression = "1234"
for operation in setup.operations:
# Change tolerance in all operations
toleranceParam = operation.parameters.itemByName('tolerance')
toleranceParam.expression = "0.1mm"
curveSelections = operation.parameters.itemByName('curves')
curveSelections.expression = ?????????????
Hi @shutov441-vuz .
The parameter 'curves' was not found.
I tried it with 'contours' instead.
There is no atmosphere where you can set Contour Selection.
I feel that it is only numerical values and character strings that can set parameters with the API.
Also, if you are looking for a parameter name, please refer to here.
I can't try it because it's a personal license, but I feel like I can't specify geometry in the same way.
I saved the calculated Contours 2D as a template.
I used this script to import the template into the same document.
Unfortunately, Contour Selection was undefined.
The .f3dhsm-template file doesn't seem to contain any Contour Selection information.
Currently, it's not possible to specify geometry in the CAM API. I know they are planning to add that functionality but I don't know when.
Can't find what you're looking for? Ask the community or share your knowledge.