How to get a polyline or surface located in centerline from Revit Wall

See this discussion