Apply colors to linked pipes in revit

Hey guys. I would like some help with a routine I am trying to create. I have a problem in Revit when placing different color patterns for linked pipes, using the revit filters, I cannot apply different colors to them because when I try to place them, the rule hierarchy applies the colors of the first rule to all links. Has anyone had a similar problem and managed to solve it in Dynamo? I’m having trouble visualizing how I would do this in Dynamo, since in Revit I have no options.

Hi- It may depend on what version of Revit you are in. Historically, Revit has not offered API control of the graphics of linked files. It is a long-requested capability:

However, it seems that some properties are now available via the API in Revit 2025:
https://thebuildingcoder.typepad.com/blog/2024/04/whats-new-in-the-revit-2025-api.html#4.2.21

Of course, if no one has created Nodes for these properties you will have to use Python.

I’m not quite clear on the hierarchy of overrides you want, can you share what you have done already?