API mesh saveAs

API mesh saveAs

Anonymous
Not applicable
1,611 Views
6 Replies
Message 1 of 7

API mesh saveAs

Anonymous
Not applicable

Hi.

I am searching a way to automate the export of every component to a obj file.

With the help of numerous exmples from here the workflow: "Create base feature" ==> Brep to mesh ==> rename mesh objects, is covered. I am really stuck at the step to exporte them. In the GUI there is the option "right click, save as OBJ". Is any way of doing that with the help of tha API/Python ?

 

Thank you.

 

 

0 Likes
1,612 Views
6 Replies
Replies (6)
Message 2 of 7

BrianEkins
Mentor
Mentor

This capability is not currently exposed through the API.

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

Anonymous
Not applicable

Hi,

Thank you for the answer. The same goes for the option to export via cloud (File // Export)?

 

0 Likes
Message 4 of 7

scott_melter
Explorer
Explorer

Hi @BrianEkins , are you able to shed any light on whether this capability is behind a pay-wall or if it could be developed?

I'm at the start of a job that looks as though I will be needing to generate thousands of components, some of which are made up of mutliple mesh bodies. The name of each body is critical to the pipeline, and exporting as .OBJ is preferred so that the individual meshes inside each file will retain their unique name.
I thought exporting 3MF or FBX could be a solve, but neither of these are exposed through the API either (also requires cloud translation).

The best I seem to be able to do is create USDZ files which do retain their unique mesh body names when opened in other programs....but I can't open these in fusion360 which isn't the worst as I have the original F3D still, but it isn't ideal either....


Even if you have a better place I can direct this question...  would really appreciate your insight.

0 Likes
Message 5 of 7

BrianEkins
Mentor
Mentor

It exists in Fusion but just has not yet been exposed through the API. A lot of work has been going on with the API, so hopefully, this might be available soon.

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

scott_melter
Explorer
Explorer

@BrianEkins thanks for your response, appreciate your time. I really hope they enable this functionality soon.

0 Likes
Message 7 of 7

cadop5R9X9
Enthusiast
Enthusiast

Has this been solved? I also need obj export