Creating Multiple Views From Excel Spreadsheet - Not Working

Ok, I spent enough time trying to problem solve this on my own and it’s time to call on help from the hive mind.
I’ve got an Excel sheet (attached) with a list of all my company’s standard views, including name, level, discipline, view template, etc. I’d like my script to be able to create multiple views based on this data, in case we need to upgrade an old model to our current standards.
The script works pretty well until I get to the end. I will only create ONE VIEW, not the 12 that I have listed.
I’ve played around with lacing, transposing my data, and rearranging order of operations. Nothing. I can create one view on two levels, but I need to be able to create multiple views on multiple levels.
What am I doing wrong?


Create EW Arch Views.dyn (59.1 KB)
EW View List.xlsx (11.0 KB)

You’re only providing one level input and therefore only creating one view. You’re just writing to that same view 12 times. I thought there was a node that allowed you to provide a name as well; that would create the correct number of views. Otherwise, you need to duplicate the level for each name you have so you create 12 views from the start.

For the 12 views I need to create, should I make 12 level inputs say for level 1?

Hey there!

I tried this way, and it worked:

What I did was count how many items are in the names list, and cycle the levels so it would input a list to create the views. This way there’s consistent inputs on both sides.

This way you should be able to have the graph adjust automatically, whatever the amount of views may be.

Hope it helped!

1 Like

That worked! Such a simple solution, my head’s going to be flat with how many times I smacked it!
Thanks so much!

1 Like