The attached script places familys at points on a selected surface in Revit and then cuts the placed familys with a void family. It works, but only when I run it twice. Can someone help to figure out why this is happening?
The first time it creates the familys at the points and the void family is created.
The second time after I reselected the face and run the script, it actually cuts the placed family with the placed void family. I dont inderstand why it doesnt do it the first time.
Attached are some printcreens and the dynamo script.