Engine.ResetTypeInstances ( typeParam, resetTypeInstancesOptions = ResetTypeInst_ResetFlags | ResetTypeInst_ResetValues)
True if the method finds any type instances, False if it finds none.
Searches for all instances of the specified type definition in the TestStand Engine and then sets their values and flags to the default value and flags for that type.
This method allows you to apply the value of a type definition property to all of its instances. Normally, when you change the value of a type definition property, the values in its instances do not change.
![]() | Note Calling this method does not affect instances in files on disk that are not open. Also, this method ignores the subproperties of typeParam unless you pass ResetTypeInst_RecurseSubProperties as an option. |
typeParam As PropertyObject
[In] This parameter can be 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 multiple options. If you want to reset the values/flags of all of the subproperties of a type's instances, you can 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.