How can I access shared projects via API?

How can I access shared projects via API?

MartinKunz
Contributor Contributor
494 Views
2 Replies
Message 1 of 3

How can I access shared projects via API?

MartinKunz
Contributor
Contributor

hi there,

 

first off, I only just started with Fusion 360 Programming, so sorry if that's a dumb question.

 

I'm running an add-in written in c++. I'm trying to load a component from a shared project (my colleague created the project on his local machine and invited me) into the current document.

 

the DataProjects API object only seems to contain projects I created locally on my machine, though (the default "Demo Project" and another Test project I made), but not the shared project that I actually want to access.

 

    Ptr<Application> app = Application::get();

    Ptr<DataProjects> projects = app->data()->dataProjects();

    Ptr<DataProject> temp;
    for (int i = 0; i < projects->count();i++)
    {
        temp = projects->item((size_t)i);
        ui->messageBox(temp->name());
    }

running this code displays 2 messageboxes for me, containing the names of my 2 local projects, but no messagebox for the shared proejct.

 

 

0 Likes
495 Views
2 Replies
Replies (2)
Message 2 of 3

KrisKaplan
Autodesk
Autodesk

Unfortunately at this time the shared projects are not getting enumerated by the DataProjects collection.  The Data APIs are currently rather incomplete and not optimized.  This is definitely a very high priority area in the API.  But this work has been on hold while there has been a lot of enhancements and changes to the underlying data services being used.  It has been on hold to prevent providing APIs that we would have to change (we want to avoid any backward compatibility problems).  I would expect the Data APIs to get filled out and on parity with the data panel in an update early next year.

 

Kris



Kris Kaplan
0 Likes
Message 3 of 3

MartinKunz
Contributor
Contributor

I already suspected that this Object is still in a "work in progress" state. I imagine it would be a good idea for you guys to finish that stuff soon. The way I see it, one of the main angles of Fusion 360 marketing is the focus on cloud based collaboration, so i guess the related API functionality should be in a working condtion asap.

 

anyway, thanks for the reply!