How do I select an adjoining part in FS

CAD_SSP
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: 
        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.

Best Answer

  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,126 image
    Answer ✓
    You could also take a look at my mortise & tenon joint feature at onshape.com/featurescript
    Senior Director, Technical Services, EMEA

Answers