I’m trying to get all the view template in my project with the following code
views = FilteredElementCollector(doc).OfClass(View).ToElements() viewTemplates=[v for v in views if v.IsTemplate]
I get some nulls in place of the 3D view templates but I cannot clean inside the Python script.
viewTemplates==None gives me false!
Strangely if i get the name of the templates I can get the name from the null!
OUT= [v.Name for v in viewTemplates]
Any idea why this is happening?