How can I chain-select edges from an in-context face?

joshtargo
joshtargo Member Posts: 695 EDU

How can I chain-select edges from an in-context face?

qAdjacent only returns the vertices at either end of the user selected edge, but not the other edges that are adjacent to those vertices.

Answers

  • jelte_steur_info
    jelte_steur_info Member Posts: 683 PRO

    hmm your question suggests the user selects an edge, of a face, and you want all edges adjacent to that face to be selected?

    but the edge could have multiple faces adjacent to it couldn't it?
    so wouldn't it make more sense to select the face (missing some context here on what you're trying to build).
    or qAdjacent with an EntityType.FACE to find the face,

    and then feed that face into a subsequent qAdjacent with and EntityType.EDGE?

    did you specify the entityType in your qAdjacent?
    (perhaps share your document publicly to get more detailed help)

  • Cory_Marty
    Cory_Marty Member Posts: 17 PRO
    edited December 2024

    Onshape doesn't support selection sets in-context. Improvement request here;

  • EvanReese
    EvanReese Member, Mentor Posts: 3,099 PRO

    Maybe you're looking for qTangentConnectedEdges()

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com