Write filled region area parameter to custom parameter for selected filled region types

Hi all. I’m a newbie with Dynamo and I’ve run into an issue trying to create a graph that writes the area value for one or more selected filled region types to a custom area parameter. I’ve managed to get the graph to work by using the List.GetItemAtIndex node, but I’d like to be able to control this in a more flexible way. Preferably by specifying the filled region type name or names I want the write parameter action to run for.

In the example below I got three different filled region types in my project: aaa, xxx and yyy. There are two instances of type aaa and one instance each of xxx and yyy. Is there any way I can select all filled region instances of, for example, type aaa, or type aaa and xxx, and let the Element.SetParameterByName node run on only those elements?

Hi @Dougie

Here is one of the possible way using standard nodes.

2 Likes

Thanks a lot @Kulkul for your quick response!
Your graph works exactly the way I was looking for. Thank you!

Not sure what I am doing wrong here but I cannot seem to get the filled region types called Tiles out.

You have already made a post about this and I replied.