I have polyline shapes representing roads and another shape layer with polygons that are representing buildings. I have to find some way with ArcPy to measure the distance from a point within the polyline road,usually in the middle, to the nearest buildings at both sides of the road. Graphically it would be something like this
In short, I'd need some way to use a kind of Near tool but with the functionality about measuring in the direction I want to.