How do I select an adjoining part in FS
CAD_SSP
Member Posts: 45 ✭✭
I have a part studio with multiple parts, I want to be able to select 2 faces on one part and then also work on the part that adjoins it as below:

The mock up is available at https://cad.onshape.com/documents/1d8686fa8d2943b37843e397/w/4b929d003a5a139e2f77286e/e/e0979796b001bdae18a9981c
I can easily get all parts by using:

The mock up is available at https://cad.onshape.com/documents/1d8686fa8d2943b37843e397/w/4b929d003a5a139e2f77286e/e/e0979796b001bdae18a9981c
I can easily get all parts by using:
var selectionpart = qOwnerBody(definition.vertFace);
var everythingelse = qSubtraction(qBodyType(qEverything(EntityType.BODY), BodyType.SOLID), selectionpart);
But how can I select just the part illustrated above, it has a face adjoining the other part but non of the queries I have tried (which I think is most) appear to allow me to select that part.
I am probably missing something really obvious but really appreciate any help.
But how can I select just the part illustrated above, it has a face adjoining the other part but non of the queries I have tried (which I think is most) appear to allow me to select that part.
I am probably missing something really obvious but really appreciate any help.
Tagged:
0
Best Answer
-
You could also take a look at my mortise & tenon joint feature at onshape.com/featurescriptSenior Director, Technical Services, EMEA1
Answers
-
evaluate the plane of wanted face and try qCoincidesWithPlane() query
0 -
You could also take a look at my mortise & tenon joint feature at onshape.com/featurescriptSenior Director, Technical Services, EMEA1
-
@NeilCooke Brilliant, thanks very much for the pointer that works perfectly.0


