Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Options

[ISSUE] Exporting STL with modified configuration

remi_begesremi_beges Member Posts: 6 PRO
I'm trying to export STL of a part with modified values for a few configuration variables, using Rest API with a python script.

My code builds the following URL to request modified STL:


The URL looks correct, I've generated the query params using the encoding endpoint:

https://cad.onshape.com/api/elements/d/78a4512a42e4ca0851f608fd/e/f8106d3c4c49847c17cca944/configurationencodings
->  {'encodedId': 'DiametrePlateau=1200;Pieds_LargeurEncoches=60', 'queryParam': 'configuration=DiametrePlateau%3D1200%3BPieds_LargeurEncoches%3D60'}

However, calling the STL endpoint returns 204 no content, and the returned text is empty.
Removing the query configuration and using default config returns 200 with the proper STL.

Why is OnShape API returning 204 instead of the correct STL ?

Comments

Sign In or Register to comment.