Community
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.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Choose Contours2D by API

6 REPLIES 6
Reply
Message 1 of 7
shutov441-vuz
439 Views, 6 Replies

Choose Contours2D by API

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 = ?????????????

 

Tags (3)
Labels (1)
  • API
6 REPLIES 6
Message 2 of 7
kandennti
in reply to: shutov441-vuz

Hi @shutov441-vuz .

 

The parameter 'curves' was not found.
I tried it with 'contours' instead.

 

2.png

 

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.

https://forums.autodesk.com/t5/fusion-360-api-and-scripts/knowing-the-names-of-parameters/m-p/984668... 

 

1.png

 

Message 3 of 7
shutov441-vuz
in reply to: kandennti

I forgot to clarify. These are in the function Multi-Axis Contour.

c4e868ad52.jpg121212111.jpg

Message 4 of 7
kandennti
in reply to: shutov441-vuz

I can't try it because it's a personal license, but I feel like I can't specify geometry in the same way.

Message 5 of 7
shutov441-vuz
in reply to: kandennti

Maybe I can specify a specific curve via the file .f3dhsm-template?

Message 6 of 7
kandennti
in reply to: shutov441-vuz

I saved the calculated Contours 2D as a template.
I used this script to import the template into the same document.

https://forums.autodesk.com/t5/fusion-360-api-and-scripts/is-it-possible-to-create-setups-and-operat... 

 

Unfortunately, Contour Selection was undefined.
The .f3dhsm-template file doesn't seem to contain any Contour Selection information.

 

Message 7 of 7
BrianEkins
in reply to: shutov441-vuz

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.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com

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

Post to forums  

Autodesk Design & Make Report