Insert Drafting Views From a Excel list

Hi there.

I’m new to dynamo so apologies in advance. I tried to find a similar post but I could find anything.

I am trying to take an excel list of drafting views and insert them from one project to another project.
My thinking was I would get all the drafting views from the file and use “Setintersection” to find the views from the excel list.

Unfortunately, I have had to use the view names from the elements and to put them into “Setintersection”. my problem now is “copydraftingviewsfromdocument” only accept elements.

Is there a way to set the list automatically and remove unwanted elements so I don’t convert it to a string? or, is there a way to take the string values and find the elements?

I just want to say a big thanks to @john_pierson for the copydraftingview node and blog :slight_smile:

Any help would be appreciated.

Right off hand this sounds like a use-case for dictionaries. :slight_smile:

If you are in 1.3.4 spring nodes has a great option.

Essentially, your views would be your objects and your keys would be your names.

1 Like

Thanks @john_pierson you’re a legend :grin:

With a bit of research into dictionaries, I figured it out!!!

Thanks for pointing me in the right direction.


1 Like