Is it possible to feed FilterRule.ByRuleType node with type parameters?

Hi everyone,

My goal is to organize wall/ceiling/floor data in excel and micromanage type/location/description data in spreadsheets so that I can import view filter color override values (RGB) for the same wall types in various buildings of the same project as the same colors. That way I can automatize different sheets such as wall type plans/floor finish plans/ceiling finish plans etc.

I’ve been trying to find a way to feed the FilterRule.ByRuleType node with elements’ type parameters (such as; type mark, descriptions, etc.) but it seems not working (although it works for instance parameters obviously).

Using type values and shared parameters as rule parameters for view filters is possible with OOTB Revit but doing them manually causes a lot of time. I had read different comments about these topics (see ref.1/comments, ref.2, and ref.3).

Is there any way of achieving this goal with the current version of dynamo?
Should I be concerned about diving into Revit.API ?

Any help would be much appreciated, thank you for your time

viewFilter by typeMark.dyn (42.0 KB)

ref 1(see comments): https://archi-lab.net/think-parametric-accessing-the-power-of-visibility-overrides/

ref 2: https://forum.dynamobim.com/t/color-elements-in-view-filtered-by-type-parameter/10547

ref 3: https://forum.dynamobim.com/t/fire-rating-doesnt-exist-for-all-wall-categories/5968

What is the error message above the FilterRule node? I am not positive but I assume it has to do with the input on the Parameter.

You are going to tell it Type Mark parameter there, not the string value of the type mark.

Thank you for your time,
Current error message is here down below.

Here is some different approaches i had tried before;

Maybe I am missing someting when passing values

Hey,

I looked at something similar a while ago and found the Dynamo node wasn’t doing everything I needed, perhaps there is something useful for you here…

Hope that helps,

Mark

1 Like

I think your close, but you need to combine parts from a couple graphs.

You need to merge your Type parameters with your instance stuff. You may even end up with two parallel portions of the graph for a bit.

2 Likes

Thank you all for your time to help the subject.
I will try both of these methods and share my final results :pray:

1 Like

I had worked around nodes a bit like instructed and figured that I was passing the parameters wrong. Also to achieve the main goal described I have to feed the node one filter rule for one filter, but that does not relate to this topic.
I think this case is closed and the answer is yes we can feed FilterRule.ByRuleType with type parameters and with the OOTB methods. :v:


viewFilter by typeMark_003.dyn (48.1 KB)

1 Like

Thanks for sharing your final solution!

1 Like