Springs.Collector.Views issue in Revit 2020

I am using the Springs.Collector.Views node in 2018 and it works perfect. When i try the run it on a Revit 2020 project, it is not longer passing the views through. Is there an issue with this node in 2020? I read that some nodes with python scripts have issues and need to be modified for 2020.

Which version of Revit 2020, Dynamo, and Springs are you using?

We’ve had this before.
I’m pretty sure the error yields from a property used in the node was changed in the API from R19 to R20.

view.ViewName was changed to view.Name if I’m not mistaken.

But posting the error would help significantly :slightly_smiling_face:

1 Like

Revit 2020 - 20.0.0.337
Dynamo - 2.1.0.7733
Springs - 110.0.2

Problem is that i am not getting an “error”. when i run the dynamo routine in 2020, it isnt collecting the views that i am asking for. all views come back as null.

here is what i am doing, i am bringing in a list of views from excel and creating dependant views from that list.

below is the python script associated with my Springs version.

#Copyright© 2016, Dimitar Venkov

@5devene, dimitar.ven@gmail.com

import clr

clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument

clr.AddReference(“RevitAPI”)
from Autodesk.Revit.DB import *

clr.AddReference(“RevitNodes”)
import Revit
clr.ImportExtensions(Revit.Elements)

def tolist(obj1):
if hasattr(obj1,“iter”): return obj1
else: return [obj1]

fn = map(str,tolist(IN[0]) )
IncSchedules = IN[1]
result, similar, names = , ,

if IncSchedules: exclude = (“DrawingSheet”)
else: exclude = (“DrawingSheet”, “Schedule”)
fec = FilteredElementCollector(doc).OfClass(View)
for i in fec:
if not i.IsTemplate and not i.ViewType.ToString() in exclude:
n1 = i.ViewName
names.append(n1)
if any(fn1 == n1 for fn1 in fn):
result.append(i.ToDSType(True))
elif any(fn1.lower() in n1.lower() for fn1 in fn):
similar.append(i.ToDSType(True))
if len(result) > 0:
OUT = result,similar
if len(result) == 0 and len(similar) > 0:
OUT = “No exact match found. Check partial below:”, similar
if len(result) == 0 and len(similar) == 0:
OUT = “No match found! Check names below:”, names