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.

Query for specific SheetMetalDefinitionEntityType

MBartlett21MBartlett21 Member Posts: 1,613 EDU
I would like to filter my edges (from qEverything) to be of a certain SheetMetalDefinitionEntityType, so i can pass them into sheetMetalCornerBreak without it erroring out.
Is there any way to do this?
MB - I make FeatureScripts: view FS (My FS's have "Official" beside them)
Tagged:

Best Answers

  • lanalana Posts: 471
    Accepted Answer
    We don't have a query filter for this. I'd go a different rout. 

    1. getSMDefinitionEntities(context, qEverything(EntityType.BODY), EntityType.BODY) would give you all the definition bodies.

    2. Collect their vertices

    3.  getSMCorrespondingInPart(context, qUnion(vertices), EntityType.EDGE)

    These edges can be sent to sheetMetalCornerBreak() 

    You still will be getting warnings for vertices next to bend edges, so it might be a good idea to filter out those in step 2.



  • MBartlett21MBartlett21 Posts: 1,613 EDU
    Accepted Answer
    MB - I make FeatureScripts: view FS (My FS's have "Official" beside them)

Answers

Sign In or Register to comment.