Overwrite user params in fusion file with csv file

Overwrite user params in fusion file with csv file

aishaLL7YG
Explorer Explorer
383 Views
1 Reply
Message 1 of 2

Overwrite user params in fusion file with csv file

aishaLL7YG
Explorer
Explorer

how do I write a python script that overwrites user params in my existing fusion file with a csv file, where any change in the csv file will result in an updated version of user params of my design. The csv file is located in aws. 

0 Likes
384 Views
1 Reply
Reply (1)
Message 2 of 2

BrianEkins
Mentor
Mentor

The Fusion API provides the ability to get a specific user parameter and edit its value. The rest of what you described is outside the scope of the API and will rely on the features provided by the programming language you're using and any other libraries you might choose to use.

 

For example, Python supports reading text files, so you can read the contents of the file and interpret the data to use in setting the parameters. Python also natively supports the ability to read and write CSV files which should make it easier. Determining if the file has changed and getting the new contents will be the hardest part and will rely on using some AWS API's, which I don't know anything about.

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