How to get list of Fusion 360 files for user

How to get list of Fusion 360 files for user

Anonymous
Not applicable
1,280 Views
5 Replies
Message 1 of 6

How to get list of Fusion 360 files for user

Anonymous
Not applicable

Hi,

 

I have been able to use Autodesk forge to get a three legged authentication for a user. I would like to get a list of Fusion 360 files for a user, but I can't see where to do that on the Forge API. I see options for hubs, projects, and other things, but I don't think those are related to Fusion 360.

 

Any suggestions?

0 Likes
1,281 Views
5 Replies
Replies (5)
Message 2 of 6

p.seem
Advocate
Advocate

Fusion 360 uses that same A360 hub system for it's data.  If you're asking how to access the files/folders/projects/hubs through the Fusion 360 API (that's the forum you're in),  you get in through the dataFile object, which you can get at through, e.g. Application.activeDocument.  From the dataFile you can go up the hierarchy to access dataFolder, dataProject, and dataHub.  The dataFile object has a property (id) which is what you need to then access that same resource through the Forge API.

 

If you're asking how to find those files through Forge API in the first place, you might have better luck on another forum?  There are a couple of people kicking around here who use Forge, too, but I get the sense it's a minority.  From the little I've done with it, I know you need to be using the Data Management API.  It's the same hierarchy, so from hub you can get all the projects, and from a project, the top folder, and from a folder you can get all its contents, and some of those returned 'items' will have the extension type items:autodesk.fusion360:Design, which are what you'd consider the 'main' fusion 360 files.

 

Does that give you a place to start?

0 Likes
Message 3 of 6

Anonymous
Not applicable

Thanks.

 

I haven't been able to find a forum that deals with forge.

The response that I get when I run the get request for a user's hub has a 200 code, but there is no content.

Unfortunately, you need a hub id to get everything else. I have been stuck there for a couple of days because the response gives me nothing to work with.

0 Likes
Message 4 of 6

BrianEkins
Mentor
Mentor

For some reason, the support team has chosen to use stackoverflow for Forge support.  Just make sure you tag your question with "".  

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

Anonymous
Not applicable

Interesting. I asked the question there and I am still hoping for a response.

0 Likes
Message 6 of 6

Anonymous
Not applicable

I have been stuck on this for a couple of days now and really need to be able to move on from it. Here is a link to the stack overflow question.


https://stackoverflow.com/questions/55365404/how-to-get-list-of-files-using-autodesk-data-management...

0 Likes