NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

get view ring

In a sequence file I have several sequences. Is there some kind of ActiveX property that gives me a reference to the selected sequence in the view control?
Thanks in advance,

Angel
0 Kudos
Message 1 of 5
(3,106 Views)
Hi Angel,

You can find out what sequences are selected for the following property.

RunState.InitialSelection.SelectedSequences

This is an array of containers.

Therefore if for example you have selected some steps in MainSequence. The SelectedSequences will be of size 1 and will be
RunState.InitialSelection.SelectedSequences["MainSequence"].

Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,106 Views)
It depends on when/where you are trying to determine this. In the sequence editor, you can't determine if the user changes the select sequence in a file window from code inside a running sequence. However, you can determine the selected sequence(s) at the time that a tool menu item or process model entry point is invoked. In the sequence for the tool item or entry point, examine:

RunState.Root.RunState.InitialSelection.SelectedSequences.


0 Kudos
Message 3 of 5
(3,106 Views)
Hi James,
Thank you very much for your help!!!
Angel
0 Kudos
Message 4 of 5
(3,106 Views)
Hi Ray,
thanks a lot!
Angel
0 Kudos
Message 5 of 5
(3,106 Views)