07-18-2019 10:04 AM
Hello everybody,
i created a custom step type with an edit Substep. The Substep calls a GUI and load an ini-file. Once the file is loaded the GUI doesn´t load it again.
For one sequence this is working fine, but if i have two sequence files open and want to work in the two different files i have to change the ini file manually everytime i change the sequence.
So my question is, is it possible to pass the name of the active Sequence file into this edit substep, so i can differentiate which sequence file calls the GUI at the moment? The Problem is that most of the variables, which consists the name or the path, are empty until you run the sequence.
Im using TestStand 2019 64-Bit and the GUI is written in VB.net.
Thanks for your help.
Solved! Go to Solution.
07-18-2019 02:52 PM
RunState.InitialSelection.SelectedFile
Make your input to the GUI a sequence file reference.
07-18-2019 02:53 PM
To make it even easier you could make the input to the GUI a string and pass RunState.InitialSelection.SelectedFile.Path.
Hope this helps,
07-19-2019 01:09 AM - edited 07-19-2019 01:14 AM
Thanks for your help jigg.
I tried this before and it didn´t work, but it seems that my code doesn´t work correct at this time. Also it was a little bit confusing, if you hover over this expression in the expression browser window, you get shown that the path is empty:
But now everything works fine, thanks again.