Skip to main content

Posts

Showing posts from January, 2018

Stacked Walls with Dynamo

Struggling trying to list stacked walls and their members with Revit? The answer is Dynamo and Python. Copy and paste this code into a Python node in Dynamo and you'll get as output the list of Stacked walls instances and all the related members. #################################################################### #Copyright 2017© #Twitter: @CesareCaoduro #Email: cesare.caoduro@gmail.com #################################################################### #Declaration section import sys pyt_path = r'C:\Program Files (x86)\IronPython 2.7\Lib' sys.path.append(pyt_path) import clr clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import * import os clr.AddReference('RevitAPIUI') from  Autodesk.Revit.UI import * clr.AddReference('RevitNodes') import Revit clr.ImportExtensions(Revit.Elements) clr.ImportExtensions(Revit.GeometryConversion) clr.AddReference('RevitServices') from RevitServices.Persiste