NewStepType Method

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

Engine.NewStepType

Return Value

StepType

Purpose

Creates and returns a new StepType object.

Remarks

You must specify the name of the new step type by setting the StepType.Name property. You can add the type to a TypeUsageList object to associate the type with a particular PropertyObjectFile object. Once you create the step type, you can use the Engine.NewStep method to create an instance of the type.

Note  TestStand does not validate step type names you create programmatically for invalid characters, such as spaces, which can result in errors when you use the data type. Use the TypeUsageList.ValidateNewTypeName method to validate step type names. TestStand requires step type names to be strings that contain only letters, numbers, and underscores. Step type names cannot contain spaces, start with a number, or be empty. Additionally, You cannot duplicate step type names already in memory.


See Also

Engine.NewStep

PropertyObjectFile

StepType

StepType.Name

TypeUsageList

TypeUsageList.ValidateNewTypeName

WAS THIS ARTICLE HELPFUL?

Not Helpful