NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programatically update the Step Description from C#?

Solved!
Go to solution
Based on user selections in my DLL I want to change the TestStand Step Description.  I am using C# 2008 and TestStand 4.1.  I am able to read the Description by using Step.GetDescriptionEx but I don't find a corresponding 'Set' command.
0 Kudos
Message 1 of 4
(3,494 Views)

Follow up Comments-

My usage is part of a custom step type where I am able to specify the TestStand Step Description using expressions.  TestStand will update the Description automatically but only if I insert a new Step or close the sequence file.  Is there a way to force TestStand to refresh this info programatically.

 

0 Kudos
Message 2 of 4
(3,473 Views)

Is this a runtime or edit time change that you want it to refresh for? For example, is this an edit substep? If so are you incrementing the change count on the file after making the edits? If so, then it should be refreshing once your dialog is dismissed. If instead it's something you want to change while your step is running then you can use the SequenceConext.Thread.PostUIMessage API with the UIMsg_RefreshWindows UI message.

 

Hope this helps,

-Doug

0 Kudos
Message 3 of 4
(3,456 Views)
Solution
Accepted by topic author skribling
This is an edit substep.  Using PropertyObjectFile.IncChangeCount() works great.
0 Kudos
Message 4 of 4
(3,447 Views)