Somehow filter out default planes when using qEverything()

shawn_crocker
shawn_crocker Member, OS Professional Posts: 1,072 PRO

I have a little customized delete feature that lets me delete from the part studio the inverse of what is selected. Sometimes I will import data and there will be alot of stuff in the part studio. So, I derive the studio into other ones and I use this inverses delete feature to select the parts I want to keep and delete everything else. Then I can sort of divide and conquer the large studio into smaller chunks for precise editing. I cannot figure out how to remove the default planes from the selection of qEverything.

Best Answers

  • shawn_crocker
    shawn_crocker Member, OS Professional Posts: 1,072 PRO
    Answer ✓

    Figured I might as well post my own answer here. Just found that this works

    var allParts = qEverything(EntityType.BODY);
    const sheetParts = qBodyType(allParts, BodyType.SHEET && ConstructionObject.NO);
    

    The "ConstructionObject.NO" was my missing condition.

  • shawn_crocker
    shawn_crocker Member, OS Professional Posts: 1,072 PRO
    edited December 2025 Answer ✓

    Ends up this works(for real)

    var allParts = qEverything(EntityType.BODY);
    const defaultPlanes = qUnion(
      [qCreatedBy(makeId("Right"), EntityType.BODY),
      qCreatedBy(makeId("Front"), EntityType.BODY),
      qCreatedBy(makeId("Top"), EntityType.BODY)]
    );
    allParts = qSubtraction(allParts, defaultPlanes);
    
    

Answers