Rebar partition (Dynamo)

Can someonem help me with this one, I had the structure of a project imported to Revit with the rebars, i want to filter them throught the partition parameter, the problem is that they already come with a value related to the structural element they are attached to. Can anyone help me?
PS.: I’ve used a dynamo routine with the Shape parameter to change the colors of the rebars and it’s totally right but it’s the only parameter tha could use to do that.