Incorrect View Templates Being Set

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.



Try setting lacing to longest in the last SetParameterValuebyName node.


Hi @Nfuller-Stellar ,

2 things:
1 - the inputs of the list combine node need to be in the same order as the function
2 - the function shouldn’t receive any input directly

try this modification :

1 Like

So the solution to the View Template problem was as shown below. It is working through to the point of setting the View Templates. The next thing I’d like to be able to automate is the assignment of the Scope Boxes. I am aware that the Scope Box object is exposed to Dynamo, but what if the Scope Boxes already existed? It would seem a simple Set Parameter function to tell the Views what Scope Box to use. The attached image is my attempt. Again the entirety of the script now works, all except the setting of the Scope Box parameter. Help!

Hello I have been trying to get my similar script to work, I have had a look at yours for help. I can get mine to put the views into Revit but they are defaulting to last view template. I noticed you have a custom Node for the View Apply View Template please could you share with me this Node or show me how you made it as. Many thanks.

That;s from an Archi-lab package.

I have downloaded some nodes from Archi-lab but don’t seem to have this one will keep looking, thanks

Please help! Can’t seem to find the custom node View.ApplyViewTemplate.

The View.ApplyViewTemplate node I used is from Steam Nodes