I have found the solution
But have also a few problems
One problem is that you have to type each line separately, so if you want to filter out a lot of line's you have a lot of code blocks, for each line one.
And one of problems is that he won't joint all the wall. Sometime is have to join wall in revit in front of a window. If you know what i mean. I don't know why he's doing that. because with another window, from the same family it won't happen.
But thank you for all of your help,