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.

Is it possible to import only composite parts in an Assembly using the API

timo_schmidtimo_schmid Member Posts: 36 EDU
When importing part studios into assemblies there is an otpion to only include Composite parts.
Is it possible to also do this using the API (Create assembly instance) call?
Thanks for your help,
Timo

Comments

  • timo_schmidtimo_schmid Member Posts: 36 EDU
    I found a way around this issue
  • Ethan_KEthan_K Member, Onshape Employees Posts: 57
    With the latest release (1.114) we've released a body field with the insertTransformedInstances that that allows one to specify part types to include when importing parts from a PS. The default is just regular parts. Here is the documentation: (Body) {String[]} [transformGroups.0.instances.0.includePartTypes="PARTS"] The part types to include. Used only if "isWholePartStudio" is "true". Can be: {"PARTS", "SKETCHES","SURFACES","FLATTENED_PARTS", "COMPOSITE_PARTS", "PART_STUDIOS", "WIRES", "UNKNOWN"}.
Sign In or Register to comment.