Levels from Floors from Curves

Hello all,

I’m new to Rhino Inside and I’m currently going through the available video tutorials. In the initial ‘Creating Revit Elements with RiR’ it shows a script for creating floors with boundary crvs and then creating levels from them. I’ve built the script and the floors are created fine but no new levels are made; and if i plug the AddLevel node into the AddFloor node, the created floors disappear. Any suggestions or is a this now outdated and is there a better way to get the same outcome? Thanks in advance.

LevelsFromFloors.gh (8.5 KB)

There are a few things suspect on your definition so not really sure why its not working. Hard to tell what Floor Crvs is returning, you would want to use filter layer not name and are mixing elefront beta and standard component.

Does this work for you?

Levels and Floors.gh (11.5 KB)

Thank you @Japhy, that works perfectly. Much appreciated.