Alright!
At first it would be cool, if you could post the model in your modeller and maybe the script
It looks like you need to change the axis of your model in the modeller. So it fits in NL2! That??????s the right way. You could do that also per script, but trust me,.. the first way is to change the direction of the model in the modeller.
Second,.. If the "dummy"rail are at the exact same point as the real track.. the script can??????t find the right one
You need to lower / or higher one of them. Depends on how which one is the working and which one is the dummy
I hope i could help.
Oh and thank you TTD03 for remind me *:D
Nice greetings!