11-16-2010 08:22 AM
I'm running the sequence editor with a file as the parameter, however, the previous sequences also come up when I do so. Is there a way to run the sequence editor so only the file that I specify comes up?
11-16-2010 08:31 AM
Hi,
You should only get the one sequence file loaded e.g. SeqEdit.exe "c:\My Seqs\seq1.seq" would load only seq1.seq.
Are you running the SeqEditor or a Custom SeqEditor?
What version of TestStand are you using?
11-16-2010 08:41 AM
I'm using 4.0. The problem is that the entire history of files comes up and not just the file that is specified.
11-16-2010 09:26 AM
Ah, that's just the Sequence File List, they are not loaded. I think there maybe an option in the Perferences or Station Options to clear this on Startup. But I maybe thinking of something else. I'll check this later, as I dont have TestStand to hand, and get back to you.
11-16-2010 02:57 PM
Hi,
It seems I must have been thinking of something as there doesn't seem to be a way of clearing the Most Recently Used files.
On the over hand you can change the User Interface, get a reference to the MRUFiles using ApplicationMgr.MRUFiles and then performing MRUFiles.Clear
11-17-2010 09:30 AM
Are you using a UI or the sequence editor? The UI's by default reload whatever files you had opened when you exited. The sequence editor does not do this so I'm not sure what you are talking about. Perhaps a screen shot or more details would help clarify what you are describing.
-Doug
11-17-2010 09:55 AM
Looks like I'm running a ui. How do I set it it exclusively open the file selected?
11-18-2010 05:22 PM
If you can rebuild the UI youself, you can change the property on the ApplicationMgr UI control for ReloadFiles to ReloadFiles_None and rebuild the exe.
If you can't rebuild the UI then you will have to do something to ensure that all files are closed whenever you exit your UI. One way to do that would be to modify the frontend callback for login/logout to close all sequence files by using Engine.GetInternalOption() to get the application manager and then calling CloseAllSequenceFiles() on the application manager.
Hope this helps,
-Doug