Filter Category Element by Line Style

Is there a way to filter a category by line style? Since you cannot create mulpitle Path of Travel types in Revit the only I was able to differentiate Common Path to Egress Path was to assign them different line styles. Both Common Path and Egress Path have parameters mapped to them. If it is a Common Path line, I would like the Egress Path values to be set to 0 and vice versa.

Mask should be bool value…which is true of false…

@_Vijay not sure I follow 100%, I can get it to find the line style I want to filter but once it goes through the Boolean Mask nothing gets filtered out?

I am sorry…i can not still understand the intention of yours…but try with this one…

Linestyle.dyn (12.6 KB)