Cutting wall with void

Hi
I selected window (select element in dynamo and click on element in Revit) wchich was regular solid with window category. Now the model in Revit has wall-based windows and dynamo project is changed to select all windows and walls. It works so far.