Filter curves between Column and Framing

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.