Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import clr
from Autodesk.Revit.DB import *
import Autodesk
import Revit
import System.Reflection
import System.AppDomain
rAssembly = [x for x in System.AppDomain.CurrentDomain.GetAssemblies() if x.GetName().Name == 'RevitAPI'][0]
rElement = [x for x in rAssembly.GetTypes() if x.Name == 'Element' and x.Namespace == 'Autodesk.Revit.DB'][0]
OUT = [x for x in rAssembly.GetTypes() if x.IsClass and x.IsSubclassOf(rElement)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.