Python Simple problem boolean difference loop

Dear All,

I have a quesition but I don;t have deep experience with python. I have some elements and i want to do boolean differene with main object but in a loop way so all of them in a list and the computer do one by one.

similar to the picture the red in one list and the black is the part that i want to be the main.
image

so can you please help me to write this code.

Regards,
Ahmed Elshafei

You can implement this method without needing to perform the boolean iteratively:

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Brep_CreateBooleanDifference_1.htm

Also, make sure to tag your topic and note whether your’re looking to implement it in GHPython or EditPythonScript (and upload your files etc.).

1 Like