12-03-2018 07:12 AM
Hi,
I want to query the test operator with a message box in my station model sequence file. I want the query to change based on which test sequence is loaded. Is there a way for me to get the name of the calling or loaded sequence file?
Curt
12-03-2018 08:21 AM
Hi Curt,
If I understand your question correctly, which is that you want to display the sequence file that's being run by the Process Model Entry Point (or is selected by the operator), "RunState.InitialSelection.SelectedFile.Path" should get you what you're looking for. From there you can parse the string to get the file name.
I hope this helps.
-Jack
12-03-2018 11:02 AM
You can also call RunState.ProcessModelClient.Path to get the path of the client file.
Or RunState.ProcessModelClient.AsPropertyObjectFile.DisplayName to get just the name of the sequence file.
Hope this helps,
12-03-2018 11:23 AM
Thanks jig,
That worked with one minor change
ThisContext.ProcessModelClient.AsPropertyObjectFile.DisplayName
Thanks for your help
Curt
08-08-2019 08:30 PM
To get the name and file path of the running sequence from the Station Model you can use the following statement command:
ThisContext.ProcessModelClient.Path
I have tested a verified this using TestStand 2016.