New to GC - HELP

Hi All,

I am fairly new to GC and am still trying to get my head around things.

I am looking to generate something that will look at two rail alignment strings draw a perpendicular line between them every 5 metres (to get the cant of the track) draw a line up at 90 degrees that is XXmm long and then across XXmm. Please see below:

From here I would then like it to join each point up so that I effectively have a new line string. 

Any help would be greatly appreciated!!

Regards,

Samuel Ashman