I am using same principle based on Excel spreadsheet.For this first one I create solids, I am not using cells. However, it is easy to convert this script to use cells.Lines, axis of sleepers, are created. To use sleepers we must add a coordinate system at the middle with good orientation, then place the cells.There are few groups of sleepers so limited amount of cells to create IF we omit the fastening system. That is another challenge.
I wanted this first one to be simple, easy to use and change for your design.
Never rewind to, or before, rails selection. You will have to copy again from reference.