I am trying to be able to select a complete curve automatically

Axel_Kollmenter
Axel_Kollmenter Member, pcbaevp Posts: 437 PRO

I am currently in the process of adapting a feature script so that it is perfectly adapted to our requirements. Similar to the sweep feature. How can I implement it so that I simply select the created curve, or I select a part of the spline and all tangential edges are automatically selected?
Currently I have to select each edge of the curve individually, which is quite time-consuming

Best regards,

Axel Kollmenter

Answers

  • Urs_Egger_REACT
    Urs_Egger_REACT Member Posts: 133 PRO

    Hi Axel,

    If the curves are tangent you could use advanced selections

    image.png
  • Caden_Armstrong
    Caden_Armstrong Member Posts: 467 PRO

    If you want to do it within the featurescript, you can do:

    qTangentConnectedEdges(seed)

    If the wirebody doesn't have exclusively tangent connected edges, and you just want all of the edges of a wirebody

    qOwnedByBody(qOwnerBody(seed), EntityType.EDGE)

    Will get all the edges owned by the body that owns the input edge

    www.smartbenchsoftware.com --- Renaissance --- Kestrel -- SmartLink
    Experts in Onshape Automation - Custom Features and Integrated Applications