Maciej Główka
Blog Games Contact

← Return to Blog Index

floor_hole_1-768x425.jpg
March 26, 2020

Floors with holes in Dynamo

A short post today showing a method to created a floor in Dynamo with an opening inside. It is not possible as of today to create complex floor sketches with Revit API – meaning containing more than one loop.

So instead we are first creating a floor from the first curve loop and then we add an opening to it. Pretty straightforward. The only catch here is to use two transactions per floor. We have to commit a transaction to push newly created floor to the Revit document. Only then we can add an opening to it.

In order to avoid mess I am wrapping everything into a single transaction group. Check the code below and .dyn file at the very end.
The Python node takes two inputs: first one is a list of floor borders, second a list of opening curves.

floor_hole.dyn
← Hosts from linked files Onion nodes – AutoJoin workflows→