Hi David,
Here is some steps for saving your Step types.
You will need to create a type palette Ini file to hold your step types.
Get a PropertyObjectFile reference by calling Engine.NewPropertyObjectFile(FileType_TypePaletteFile).
Set the path of the ini file with PropertyObjectFile(Path).
Get a TypeUserList reference by calling PropertyObjectFile.TypeUsageList().
Get a count of the number of Types in the TypeUsageList by calling TypeUsageList.NumTypes().
This point create your Step types (as you have done). You will need a PropertyObject reference to your steptypes for use with the TypeUsageList.InsertType().
Using each steptype PorpertyObject reference.
Insert the Type into the TypeUsageList by calling TypeUsageList.InsertType(step type propertyobject ref, index (which will be your count), typeCategoryParam = TypeCategory_StepType)
Call the PropertyObjectFile.IncChangeCount() to indicate file changed.
Increment the count and repeat Insert for each of your step types.
save the ini file PropertyObjectFile.SaveFileIfModified(prompt = TRUE).
Tidy up by releasing references etc.
I know this works for TestStand 2.0.1f1 and hopefully it will work for 3.1. Unfortunately I haven't got 3.x installed on a PC to try it.
Hope this gets you started.
Regards
Ray Farmer
Regards
Ray Farmer
