NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is the Find/Replace dialog available through the API

I am doing a custom OI using many TestStand controls. However, I am not using any TestStand buttons or menus except for a context menus. I would like to add some Find/Replace functionality to my OI. Is the Find/Replace dialog and functionality used in the Sequence Editor available through a command or through the API? I really don't want to have to implement it all myself.

 

Thanks. I'm using TestStand 4.1.1 at the moment. The OI is developed in Visual Studio .Net 2008 in VB.net.

0 Kudos
Message 1 of 4
(3,419 Views)

Hello Skeptical,

If you refer to the TestStand Reference Manual, Chapter 1, on page 1-5 there is a chart that notes that the Find and Replace functionality is only provided in the Sequence Editor.  

It may be possible to write a Tool that will scan your sequence file and try to find matches to a keyword, however it would be quite inefficient since we have to loop over ever Sequence, Step, Property and sub-property in the whole sequence file.  Are you looking for a general find/replace function that does that, or are you looking for something more specific?  If we can restrict the search then it should make the code easier to implement and perhaps even practical.

John B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,392 Views)

Actually, the API for efficient searching exists (start with Engine.SearchFiles).

 

However, I don't think there is a Find/Replace dialog in the API.

0 Kudos
Message 3 of 4
(3,390 Views)

Thank you both. By way of suggestion to NI. It would be really nice if the Find/Replace dialog and functionality were available through the API or a control. It seems that NI has provided a lot to allow folks to develop their own custom UI. It would be nice to be able to create a full featured UI.

 

I will look at Engine.SearchFiles (or we'll just have to use the Sequence Editor if we need to do any finding and replacing).

 

Thanks.

0 Kudos
Message 4 of 4
(3,371 Views)