Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: rashid.mohd on September 08, 2006, 03:46:48 am
-
We want to make an Addin in EA that will create two separate Menus i.e. one will on Main menu of EA and other will be created on the Tree View of Model hierarchy by same addin. For this we have used the following Event in add-in
EA_GetMenuItems(...)
In this event code we have set the MenuLocation as “MainMenu” but it created same menu in both Main menu of EA as well as in TreeView. :(
So help me
Rashid
-
The MenuLocation parameter is passed in to specify where the menu is being created.
Try checking this variable and calling different functions depending on the value.