Message 1 of 3
How can I access shared projects via API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.