Dictionary not working

Does this help at all? @Ewan_Opie gave me a python script that gives me templates awhile back.

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

views = UnwrapElement(IN[0])
template_list = []
not_template_list=[]

for view in views:
	try:
		if view.IsTemplate:
			template_list.append(view)
		else:
			not_template_list.append(view)
	except:
		not_template_list.append(view)

OUT = template_list,not_template_list

2 Likes