Hi all, anyone knows what’s wrong with this code?
it’s working fine before but now it keeps on failing…
Thanks…
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
viewsheetsets = UnwrapElement(IN[0])
elementlist = list()
for set in viewsheetsets:
views = list()
for view in set.Views:
views.append(view)
elementlist.append(views)
OUT = elementlist
That’s working fine before, when i install pyrevit something strange happen (not sure if that’s the cause though) so i had to uninstall it, try to remove dynamo also and all other packages but now it’s still not working.