Shapediver Api: Export for Models with two download links

Hi everyone,

we got some new models that consist of two parts. In Shapediver we see two download buttons which work perfectly fine:

When we try to export the STL files via Shapediver API using api.exports.requestAsync({name: Download 3D Model"}) we get an error message:

Is there an official way to export this model via the API?

Thanks in advance!

Best regards,
Moritz

The error message says that no export exists that matches the criteria specified in your call to api.exports.requestAsync. Please see this documentation page of viewer 2:

https://viewer.shapediver.com/v2/2.38.0/doc/module-ApiExportInterface-ApiExportInterface.html#requestAsync

Your screenshot above suggests that an export whose name is “Download 3D Model” does not exist for your model.

On another note, you are still using viewer 2. We strongly suggest that you make use of the latest available version of viewer 2, which is 2.38.0.

1 Like

Thank you!

We now get the ExportDefinitions via the “get function” from the documentation you have linked and iterate over the array “data” of the returned APIResponse object to do our exports. Works flawlessly!

“On another note, you are still using viewer 2. We strongly suggest that you make use of the latest available version of viewer 2, which is 2.38.0
Noted! We will update to the latest version as soon as possible!

Best regards,
Moritz

Great, many thanks for your feedback!

1 Like

Hi Alexander, I’m a colleague of Moritz, also working on the same model.

We incorporated the insights from this thread into our application. The relevant exports are now requested from shapediver and we receive responses for both. Unfortunately neither brings good news as a message: “We are sorry, results for these parameter values can not be exported.”
Would you please advice on how we have to understand this message, as well? Thank you again very much already in advance.

This is a generic export error message which could be caused by various problems. Could you link to the model here so I can investigate it?