Revit 2019 | Dynamo For

OUT = "Levels created"

import clr clr.AddReference('RevitServices') from RevitServices.Persistence import DocumentManager doc = DocumentManager.Instance.CurrentDBDocument dynamo for revit 2019

for i, elev in enumerate(elevations): try: level = Level.Create(doc, elev) level.Name = names[i] except: pass OUT = "Levels created" import clr clr

elevations = [0, 3000, 6000] # in project units names = ["L1", "L2", "L3"] dynamo for revit 2019

This runs in a node (from Revit > Script > Python ).

Tecnare Sound Systems horizontal white Logo
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.