NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent the value of a step variable being copied when my custom step is copied?

I have created a custom step. Within that step I have created a step variable, Step.ID. When my custom step is copied, I want the value of Step.ID to be reset to the value in the Custom Step type definition. How can I make this happen?

I have tried setting propflags_ExcludeFromCopy for Step.ID, but that does not seem to work.

Any help you have for me is greatly appreciated!
0 Kudos
Message 1 of 3
(3,119 Views)
Hi,

I am not sure you can, because what you are doing is copying the step.
The ExcludeFromCopy is when you insert the step from the palette but dont want the value which has been set as default.

regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,119 Views)
You cannot prevent the value of the property from being copied when you copy a step. When you cut/copy and paste a step, you are copying all of the values for the associated properties as well. You will need to insert a new instance of the step type in order for the properties to have the default values specified in the custom step type definition.
0 Kudos
Message 3 of 3
(3,119 Views)