These are the functions that I've located that refer to sorting:
Main Menu - FMScripts
Code: Select all
FMScripts.getCadToolBarPanel = function() {
var mtb = EAction.getMainCadToolBarPanel();
var actionName = "FMScriptsPanelButton";
if (!isNull(mtb) && mtb.findChild(actionName)==undefined) {
var action = new RGuiAction(qsTr("FM Scripts"), mtb);
action.setScriptFile(FMScripts.includeBasePath + "/FMScripts.js");
action.objectName = actionName;
action.setRequiresDocument(false);
action.setStatusTip(qsTr("Show FM Scripts"));
action.setNoState();
action.setDefaultCommands(["FMScriptsmenu"]);
action.setGroupSortOrder(80); //HERE
action.setSortOrder(100); //HERE
action.setWidgetNames(["!MainToolsPanel"]);
}
var tb = EAction.getCadToolBarPanel(
FMScripts.getTitle(),
"FMScriptsPanel",
true
);
return tb;
};
Code: Select all
FMMeasurements.getMenu = function() {
var menu = EAction.getSubMenu(
FMScripts.getMenu(),
51200, 100, //HERE
FMMeasurements.getTitle(),
"FMMeasurementsMenu"
);
return menu;
};
Code: Select all
FMBodiceFront.init = function(basePath) {
var action = new RGuiAction(qsTr("Bodice Front - Adult Female"), RMainWindowQt.getMainWindow());
action.setRequiresDocument(true);
action.setScriptFile(basePath + "/FMBodiceFront.js");
action.setGroupSortOrder(79100); //HERE
action.setSortOrder(100); //HERE
action.setWidgetNames(["FMPatternsMenu"]);
};
Thank you for your help.
Lori