Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

New SearchDirectories and SearchDirectory classes in TestStand 3.0 API

Primary Software: TestStand
Primary Software Version: 3.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: How can I programmatically change which search directories are active in TestStand?

Solution: In the TestStand 3.0 API there are two new classes, SearchDirectories and SearchDirectory, that define methods and properties for the new Engine.SearchDirectories object, which you can access to programmatically manipulate the active search directories TestStand uses. Prior versions to TestStand 3.0 only allow their search directories to be configured using the window opened with the Configure » Search Directories menu selection. The following are examples of the methods and properties found in the new SearchDirectories and SearchDirectory classes:

  • SearchDirectories.Count—Contains the number of search directories configured on the station
  • SearchDirectories.Item(0)—The Item property is a collection of SearchDirectories that can be accessed via an array notated expression, this example would be accessing the first search directory configured on the station
  • SearchDirectories.Insert( )—Used to add a new search directory to the station (there is also a method for removing directories and moving one as well
  • SearchDirectory.Disabled—Used to programmatically set whether the specific directory is active
  • SearchDirectory.ExcludeFileExtension—Used to programmatically filter which types of files are looked at
  • SearchDirectory.Path—Contains the path of the specific search directory the SearchDirectory object pertains too
For more information, refer to the TestStand 3.0 Reference Manual listed in the Related Links section.

Related Links:
Product Manuals: All TestStand Manual Versions

Attachments:





Report Date: 08/14/2003
Last Updated: 01/05/2005
Document ID: 30DF5JEV

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit