Access to a database to search, load and modify an object stored in it (STP file) ?

Access to a database to search, load and modify an object stored in it (STP file) ?

bernard5BABD
Advocate Advocate
803 Views
5 Replies
Message 1 of 6

Access to a database to search, load and modify an object stored in it (STP file) ?

bernard5BABD
Advocate
Advocate

As the title says, I will have to write a plugin doing something like described.

I know Python, by itself, is perfectly able to do this, but I wonder if there would be some database recommended to work with Fusion 360, and if there is anything in the API to help make the link between the DB and Fusion, as I believe I have not seen anything in the API on that subject.

Thanks for your help and advice,
Best regards,

Bernard

Bernard Grosperrin, Retired, Maker, and Autodesk Certified Instructor
Blog : Le Bear CNC | Forum : Le Bear CNC Forum | Addin : Airfoil Sketch from file
0 Likes
Accepted solutions (2)
804 Views
5 Replies
Replies (5)
Message 2 of 6

BrianEkins
Mentor
Mentor
Accepted solution

There's nothing built into the Fusion API for working with a database. You'll need to use other libraries for that.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 3 of 6

bernard5BABD
Advocate
Advocate

OK, thank you. I was not sure, but that's what I was thinking it would be. I'll make some tests to see how it goes.
Best regards
Bernard

Bernard Grosperrin, Retired, Maker, and Autodesk Certified Instructor
Blog : Le Bear CNC | Forum : Le Bear CNC Forum | Addin : Airfoil Sketch from file
0 Likes
Message 4 of 6

bernard5BABD
Advocate
Advocate

So, if I want to use external libraries with a Fusion script, should I import from Fusion 360 Python folder?  I guess it would be a mistake if I mix and match Python libraries versions. BUT, as I can see this folder is inside webdeploy (on windows), what is the proper way to be, as much as possible, Fusion version independent?

Bernard Grosperrin, Retired, Maker, and Autodesk Certified Instructor
Blog : Le Bear CNC | Forum : Le Bear CNC Forum | Addin : Airfoil Sketch from file
0 Likes
Message 5 of 6

JeromeBriot
Mentor
Mentor
Accepted solution

Hello,

 

You'll find useful information there: Reading YAML from a Python Script

 

0 Likes
Message 6 of 6

bernard5BABD
Advocate
Advocate

Thank you @JeromeBriot , I will look at this closely.

Bernard Grosperrin, Retired, Maker, and Autodesk Certified Instructor
Blog : Le Bear CNC | Forum : Le Bear CNC Forum | Addin : Airfoil Sketch from file
0 Likes