Engine.ResetTypeInstances
- Updated2025-07-21
- 2 minute(s) read
Engine.ResetTypeInstances
Syntax
Engine.ResetTypeInstances( typeParam, resetTypeInstancesOptions = ResetTypeInst_ResetFlags | ResetTypeInst_ResetValues)
Return Value
Returns True if this method finds any type instances or returns False if it finds none.
Purpose
Searches for all instances of the specified type definition in the TestStand Engine and sets the values and flags of each type definition instance to the default value and flags for the type.
Remarks
Use this method to apply the value of a type definition property to all instances of the type. Normally, when you change the value of a type definition property, the values in the instances of the type do not change.
Parameters
typeParam As PropertyObject
[In] Specifies a type definition or a subproperty of a type definition.
resetTypeInstancesOptions As Long
[In] Pass one or more ResetTypeInstancesOptions constants to specify different options. Use the bitwise-OR operator to specify more than one option. If you want to reset the values/flags of all the subproperties in all instances of a type, pass ResetTypeInst_RecurseSubProperties using the bitwise-OR operator with ResetTypeInst_ResetFlags or ResetTypeInst_ResetValues .
This parameter has a default value of ResetTypeInst_ResetFlags | ResetTypeInst_ResetValues .