Scripting Using Product Builder

The Product Builder provides the capability to generate and export reports and graphs as well as save and load product lists for later use. Use the ScriptingTool "Props" function to explore the Ansys Orbit Determination Tool Kit (ODTK®) application ProductBuilder's interface in more detail.

For descriptions of the methods FindByName, FindProduct, GenerateAllProducts, GenerateProduct, LoadDataProductList, and SaveDataProductList and their arguments, see Product Builder Scope Functions.

When creating reports and graphs from a script, there are two common approaches. The first is to manually build a data product list. The script then loads the data product list and edits the properties of each data product as needed. The other approach is to use a new data product list and build a complete data product on the fly. The advantage of the former approach is that the script is using the same data product list that an analyst would use.

Below are descriptions and code samples for both approaches.

Using an existing data product list

The script example below processes measurements for the TDRS constellation and some of its user satellites. It performs a series of 10 one-day filter runs. After each run, it generates various data products using an existing data product list called TDRS6 and dumps them to disk. The analyst built the data product list manually ahead of time.

COM

Cross-Platform API

Building and using a data product list

The script examples below assume there is no existing data product list. Therefore, the Product Builder builds a data product each time the script calls it to produce the desired output.

COM

Cross-Platform API