Combining Parts Created by Boolean Operation in FeatureScript

Srujan_Pandya
Srujan_Pandya Member Posts: 2 ✭
I have written a featurescript to sketch an extrude a bounding box and then I had performed a subtraction boolean operation between the main model and the bounding box. Now, I want to access those bodies that would be created by this boolean operation, and then combine (unite) those parts created from this boolean operation (apart from the bounding box). I was thinking of accessing those parts using qCreatedby(id + "boolean1") couldn't get anything to work.

Answers

  • Caden_Armstrong
    Caden_Armstrong Member Posts: 471 PRO
    Posting your error messages would help, as without the rest of the code its hard to tell what other mistakes you've made.

    Does des_height have units?

    OperationType is not a valid input for opExtrude

    Does the extrude work? is it just the boolean that doesn't work?
    Does your sketch1 exist?
    www.smartbenchsoftware.com --- Renaissance --- Kestrel -- SmartLink
    Experts in Onshape Automation - Custom Features and Integrated Applications