Assign View Type to Batch Plan Views


This is my first post and I’m very new to Dynamo but I’ve been reading this great forum for a few months now. however, I am stuck with a simple script I’m trying to create and I can’t figure out the issue. Here is the short of my script.

Get levels from project > make structural plan views for each level > rename views and assign custom “view type” (not to be confused with view template) that is already part of office Revit template file.

I tested this with a blank project that has 10 levels:

It creates plans
It renames them
It only assigns correct “view type” to the first view (out of 10). Why is this?

From the image, it looks like 10 views are being fed to the node but only 1 is being processed.

Your help is appreciated! Thanks!

You need to check your “Lacing” on the Element.SetParameterByName node. Try “Longest” to see if that works.

Yes! It was set to auto and I didn’t realize this makes a difference. I will try to remember this in the future.

Thank you very much!