.how i coud select lines by colors or by line type in dynamo?

hi my friends
if i want to make script to select lines as a color or line type then to create walls in revit by dynamo
as th e attached video .how i coud select lines by colors or by line type in dynamo?