Perhaps the user could explicitly indicate a UID by prefixing with a $, as done here in the SimSig UI:
e.g.
Alternatively and more immediately... could just replace AssociatedTrain with AssociatedUID and make it mandatory to specify UIDs for activities... which could just be the TRN if it's unique anyway. However this would be a breaking change.
The workaround is to consistently use UIDs in the spreadsheet, extract the XML from the exported .wtt/.zip, find and replace AssociatedTrain with AssociatedUID and put back into the .zip/.wtt.
(On a side note - sorry for the flood of tickets - I'd be forking and fixing and submitting hopefully useful pull requests but my knowledge of Visual Studio / C# is insufficient to fix what's probably a trivial mismatched library error when I get to file IO, so I cannot test my changes!)
Would it be possible to specify trains by UID as well as via TRN (train reporting number / ID / headcode)?
The difference is the XML field is named
AssociatedUID
vsAssociatedTrain
:Perhaps the user could explicitly indicate a UID by prefixing with a $, as done here in the SimSig UI:
e.g.
Alternatively and more immediately... could just replace AssociatedTrain with AssociatedUID and make it mandatory to specify UIDs for activities... which could just be the TRN if it's unique anyway. However this would be a breaking change.
The workaround is to consistently use UIDs in the spreadsheet, extract the XML from the exported .wtt/.zip, find and replace
AssociatedTrain
withAssociatedUID
and put back into the .zip/.wtt.(On a side note - sorry for the flood of tickets - I'd be forking and fixing and submitting hopefully useful pull requests but my knowledge of Visual Studio / C# is insufficient to fix what's probably a trivial mismatched library error when I get to file IO, so I cannot test my changes!)