Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
elements = UnwrapElement(IN[0]) if isinstance(IN[0],list) else [UnwrapElement(IN[0])]
ref=[]
for element in elements:
ref.append(Reference(element))
if isinstance(IN[0], list): OUT = ref
else: OUT = ref[0]
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.