NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert a new step type into a submenu (subgroup in the "Step Type Menu Editor")?

Hi!

I'm inserting a step type into the MyTypes.ini file with c++.


With the code below I managed to put it into a menu (in the step type menu editor it is called "Group").
But I want a sub menu.
How can I put it into a sub menu (in c++)?


I mean how I can add a group (a subgroup) to the "Step Type Menu Editor" of the "Type Palette" with a program written in C++."


Who can help me? Thanks in advance!!!


Here is the code:


...
property->PutName("StepTypeName");
typeUseage->InsertType(property, 0, TS::TypeCategory_StepTypes);


stepObj->PutMenuGroupName("StepTypeMenuGroup");



PS: I reposted this question, because it is still unanswered and very urgent
0 Kudos
Message 1 of 3
(3,103 Views)
.
0 Kudos
Message 2 of 3
(3,103 Views)
Hello TSNewbie,

What you want to do is get a reference to your new step type to be able to apply the "StepType" class. Here you will find options for editing all settings of a step type, including the menu appearance. Set the property "MenuGroupName" and then use "MenuItemNameExpr" to name it. I tested it using the API in TestStand and it worked fine, it should work exactly the same in C++. Don�t forget to increment the ini file count and save it so the changes will apply.

Hope this helps
0 Kudos
Message 3 of 3
(3,103 Views)