PEMB Cutting opening with doors and windows into purlins

I am working on a PEMB which has purlins running horizontally trough the walls. The problem is that the doors and windows do not cut trough them. Instead of using opening by face in Revit I am trying to use dynamo to do the heavy lifting for me. I got everything into dynamo but I can not get the split or intersect command to cut openings into the purlins. Any help would be appreciated.