01-30-2007 03:13 PM
01-30-2007 03:44 PM
Hi,
Not sure if it can be done, but if it is possible I think you would have to set up the properties found in RunState.InitialSelection
RunState.InitialSelection.SelectedSteps
RunState.InitialSelection.SelectedSequences
RunState.InitialSelection.SelectedFile
RunState.InitialSelection.SelectedPropertyObjectFile
RunState.InitialSelection.SelectedStepGroupByIndex
If you load up an example SequenceFile, then select a couple of steps in the MainSequence. The select the menu item View | Browse Sequence Context...Then expand the tree for RunState etc....
Regards
Ray Farmer
01-30-2007 04:09 PM
01-31-2007 12:20 AM
Hi,
Creating a New InteractiveArgs and supplying the reference to the NewExecution would be the same as making a selection.
Regards
Ray Farmer
01-31-2007 08:38 AM
06-29-2007 09:21 AM
06-29-2007 12:56 PM
To set the selection in 4.0, you can now do the following:
- Get a reference to the ApplicationMgr (if you don't already have one) by calling Engine.GetInternalOption(InternalOption_ApplicationManager)
- Get a reference to the SequenceFileViewMgr (if you don't already have one) that displays the file you want to select steps in by calling ApplicationMgr.GetSequenceViewMgr([your sequence file])
- Use the methods on SequenceFileViewMgr.SelectedSteps to set the selection
The changes in 4.0 that enable this are:
a) The SequenceEditor is now like the UIs in that it uses TestStand UI Manager controls such as the ApplicationMgr
b) Engine.GetInternalOption(InternalOption_ApplicationManager) enables you to obtain the ApplicationMgr, even for applications you do not have the source code for (such as the sequence editor)
Beyond setting the selection, you can use the manager controls to issue commands and go to specific locations in any application that uses the TestStand UI controls. Refer to the GetCommand method on the ApplicationMgr, SequenceFileViewMgr, and ExecutionViewMgr, and the GotoLocation method on the Locations object.