I have created a fairly complicated script for creating floor plan views from an excel spreadsheet. The views are being created for the First Floor, Interstitial & Roof levels and each level has its own template. Additionally each trade in the excel spreadsheet has its own tab, i.e. HVAC, Utilities & Plumbing, each with their own view template. The result of the script will create over 160 views in less than a minute and save days of duplicating, naming, and cropping views manually. The only problem I’m having is getting the appropriate view template set for each view. It seems to be applying the last view template in the script to all views (the roof plan template). I can pretty quickly apply the correct view template manually to the resulting views in Revit but would really like to find the error. Any help would be greatly appreciated.