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.

API: Export assembly as binary parasolid

robert_chiodirobert_chiodi Member Posts: 8

I am working on an integration, and I would like to export Part Studio's and Assemblies as binary parasolid files via the API. In that regard, I primarily have two questions:

  1. Are there any synchronous ways to export an assembly? According to the documentation here and the API Explorer, I think the answer is no, but I just want to make sure.
  2. The synchronous export of Part Studios can export binary Parasolid (x_b) files, but I do not see a way to do it for assemblies. Is there a way?

Thanks in advance for any help, I am really enjoying Onshape.

Comments

  • Caden_ArmstrongCaden_Armstrong Member Posts: 271 PRO

    Assemblies are only exported with the translations workflow. They could potentially be very slow depending on the size of the assembly.
    Its really not that difficult, its just an extra step of having to check the translation.

    1. Start the translation

    2. Using the resulting translation id → check the translation request state (at a reasonable rate) on some interval, and wait for it to no longer be ACTIVE

    3. Download the stream using the resultExternalDataIds parameter.

    For parasolid, set the formatName to "PARASOLID".

    www.smartbenchsoftware.com --- fs.place --- Renaissance
    Custom FeatureScript and Onshape Integrated Applications
  • robert_chiodirobert_chiodi Member Posts: 8

    Hi Caden,

    Yes, I already have that asynchronous approach working, I just wanted to check if there was a synchronous option because the documentation states that is much quicker. The "PARASOLID" option seems to export x_t is it possible to export x_b (the binary format) instead?

  • susan_pedicinisusan_pedicini Member, Onshape Employees Posts: 8

    Hi Robert,

    We don't offer any synchronous export options for assemblies at this time; an asynchronous export is the recommend approach.

    To export to x_b , set the binaryExport query param to true in the [exportParasolid](https://cad.onshape.com/glassworks/explorer/#/PartStudio/exportParasolid) call.

  • robert_chiodirobert_chiodi Member Posts: 8

    Hi Susan,

    Thank you for your response. Does that mean that only synchronous approaches support x_b export then, so there is no way to export an assembly to x_b?

  • susan_pedicinisusan_pedicini Member, Onshape Employees Posts: 8

    Correct, not at this time.

Sign In or Register to comment.