Get Selected Views

Hello,
I am new to Dynamo and would like to start be getting a list of all views selected in the project browser window, but haven’t been able to figure out how to do it. I figured out how to get selected elements in the model, but not how to get views selected in the project browser. Can someone point me in the right direction for that?

Ultimately I would like to tag items on multiple views all at once, or change tags of elements on multiple views all at once, and getting selected views is the first step.

Thanks!

Hi @Jeremy_Mcclanathan

Use the View.Type and View.GetType nodes from archi-lab package.

2 Likes

Hello @Jeremy_Mcclanathan

You can get selected items in the project browser with “Collector.CurrentSelection” from the Spring nodes package.

10 Likes

That works. Thank you very much! It doesn’t seem to matter if the boolean is true or false. Do you know why that is?

No problem. It’s just a toggle to refresh the selection. The node will not know when you have made a new selection, so you need to change an input to tell it to refresh.

2 Likes