Can you give me some idea about filter curve in solid? you can see my idea in the picture below.
Element.GetLocation might be a good place to start.