OUT = "Levels created"
elevations = [0, 3000, 6000] # in project units names = ["L1", "L2", "L3"]
import clr clr.AddReference('RevitServices') from RevitServices.Persistence import DocumentManager doc = DocumentManager.Instance.CurrentDBDocument
This runs in a node (from Revit > Script > Python ).
for i, elev in enumerate(elevations): try: level = Level.Create(doc, elev) level.Name = names[i] except: pass
| Jump to | Topic | Jump to | Topic |
| 00:00 | Introduction | 16:48 | Import Gene from NCBI |
| 02:11 | VectorBuilder + VectorBee | 18:22 | Recovering Closed Projects |
| 03:17 | Opening Files in VectorBee | 18:44 | Ordering Vectors from VectorBuilder |
| 04:14 | Changing View Options | 20:48 | Restriction Digestion Simulation |
| 07:14 | View and Edit Features | 23:32 | Primer Creation and Design |
| 10:27 | Organization in the Project Dashboard | 27:24 | Multiple Sequence Alignment |
| 12:50 | Editing Vectors- Inserting Components, Adding/Deleting Sequences | 30:28 | Summary |
OUT = "Levels created"
elevations = [0, 3000, 6000] # in project units names = ["L1", "L2", "L3"]
import clr clr.AddReference('RevitServices') from RevitServices.Persistence import DocumentManager doc = DocumentManager.Instance.CurrentDBDocument
This runs in a node (from Revit > Script > Python ).
for i, elev in enumerate(elevations): try: level = Level.Create(doc, elev) level.Name = names[i] except: pass