Reporting rails or centreline to a 3D element

Good afternoon,

i am wanting to extract offset information from my track to a large volume of 3D elements. All i want is the closest offset to the rail and the maximum height above rail.

is there a way i can do this without manually measuring each element along the track?

e.g for the attached image i want to report the top rail (blue) to the structures (red) maybe every couple metres.

I would like to do this in Microstation Connect edition or Openrail Designer. Have the option of Power Rail Track as well.