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.

so can you please help me to write this code.

Ahmed Elshafei

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

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