I am trying to be able to select a complete curve automatically
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
Axel Kollmenter
Answers
-
Hi Axel,
If the curves are tangent you could use advanced selections0 -
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 edgewww.smartbenchsoftware.com --- Renaissance --- Kestrel -- SmartLink
Experts in Onshape Automation - Custom Features and Integrated Applications2


