How to tag every changed diameter pipe in revit - dynamo?

Hello dear Colleagues :slight_smile:

I need some help… I want to tag every changed pipe diameter. Specifically, I mean sprinkler systems where depending on the change in pipe diameter (because of the number of the consumers), each new pipe diameter will be tagged. I want to avoid tagging all the diameters because there are too many marks.

Does anyone have a solution?
Thank you…

I would start with comparing an elements parameter with the next elements parameter, using a shift indices you can compare the next elements in the system, then using a == node you can get a Boolean value and get those filtered elements only using a list all indicies of node with a get item at index node.

I don’t work with model elements in dynamo much but I hope this starts you off.