Hi,
there are several ways to select sub-shapes in SHAPER. In the script test_fillet.py (6,3 Ko), I show:
-
selection by naming. It is the internal name of the sub-shapes in SHAPER to be able to select them in a stable way. This name can hardly be guessed. A manual selection in the graphic interface and python dump allows to get these names.
-
guess the internal names from the selected names, if it can be
-
select all the edges of a feature’s result, with
all-in-
prefix + the name of the feature. It might select more edges than needed (but in this case it works) -
selection by coordinates. This has to be the coordinates of a point on the sub-shape. Either you know them (because you have built your model), or you can get them by dump by coordinates available via the menu Part> Dump. It is like
GetEdgeNearPoint
,GetFaceNearPoint
,GetBlockNearPoint
ingeompy
. -
selection by filter (like for group’s creation). In this case, I used the filter
FeatureEdges
to select all the edges at the intersection of the spheres (not continuous faces) -
selection by the filter
EdgeSize
to select the edges in a range of sizes. You might use other filters depending on your use case.
Best regards,
Christophe