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
Revit 2020 - 126.96.36.1997
Dynamo - 188.8.131.5233
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
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
from Autodesk.Revit.DB import *
if hasattr(obj1,“iter”): return obj1
else: return [obj1]
fn = map(str,tolist(IN) )
IncSchedules = IN
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
if any(fn1 == n1 for fn1 in fn):
elif any(fn1.lower() in n1.lower() for fn1 in fn):
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