I am looking for a way to find a legend that is on multiple sheets and show the user via some kind of textbox of other indicator which sheets that legend is on. Is there a way to do this in Dynamo? I have not found any posts on this as of yet. Any feedback would be greatly appreciated.
I think you could do that by getting all elements on sheets and filter by name.
The text box can be done with dyna shapes, or a simple python script that displays a “warning dialogue box”
You can find in popular packages some useful nodes.
For example, there are the Sheet PlacedViews and the Collector of PlacedViews nodes in the Genius Loci package that will help you.
This is what I have right now but it does not behave the way I would like. It does not list the sheets that have the legend on them. It just spits out views instead. I am not sure what I am doing wrong since I am pretty new to Dynamo.
@MDamon031 It is not possible to tell what is going wrong and where without seeing the output preview for each node. Please enable the output preview for each node and the post the screenshot.
@Alban_de_Chasteigner Finding the views in a sheet is not the key problem here, it is to filter the sheets with a specific legend. I do have Genius Loci installed, but I’ll have to filter out the sheets with a particular legend in the same way regardless.
If you get legend name from here, then Equals (==) node, list Any true with the right list level, then filter boolean on the sheet list it will get the sheets as a list.
@SeanP Could be done, yes. I could use this method in my dyn as well, works fine.
Could also be done by getting the viewports on a sheet and filtering out the sheets with that particular legend viewport. Legends apparently don’t have the Sheet Name parameter filled in by default, but viewports containing those legends do.