Dynamo Smart Filter

I am trying to create a smart filter for the items I don’t want shown up from a linked model.

The idea is that you select a linked element and then pull specific project parameter values from that object to create a filter. That isn’t too difficult to do but my issue is that any bad Revit practices will mess this up. Any ideas?