Cancel
Showing results for 
Search instead for 
Did you mean: 

How to create customized menus through FEMAP API?

Valued Contributor
Valued Contributor

Hello, everybody!

 

Create a customized menu at the menu bar through the FEMAP's user interface is quite simple, however, I wasn't able to do this task through API. Looking up the API manual, I found out at section 3.16.4 many commands related to customization of toolbars, but almost nothing about customization of menus. For instance, there is a command "feAddToolbar" but there isn't a "feAddMenu". For menus, there is only commands to get a list of commands of a menu, like "feGetMenuCommands".

Creation of customized menus (similar to the File, Tools, Geometry, Connect... menus) isn't possible to be done through API?

 

Best regards,

 

Fabiano

2 REPLIES

Re: How to create customized menus through FEMAP API?

Siemens Phenom Siemens Phenom
Siemens Phenom

The Menu is just another toolbar, as you can see if you go to the Toolbar "Customize" dialog in the User Interface (click the little down arrow at the end of any toolbar).  It will show up in the list as a toolbar with the name "Menu Bar".  So if you simply use the methods that you found for toolbars and use the name "Menu Bar", they should work to modify the Menu.

 

 

Re: How to create customized menus through FEMAP API?

Valued Contributor
Valued Contributor

Grudy,

 

Thank you for your answer. It works perfectly.

 

Best regards,

 

Fabiano.