Book a Demo

Author Topic: MenuLocation of EA_GetMenuItems - custom locations possible?  (Read 38157 times)

Elpis

  • EA User
  • **
  • Posts: 64
  • Karma: +7/-0
  • Make MDA/MBSE vital.
    • View Profile
MenuLocation of EA_GetMenuItems - custom locations possible?
« on: January 15, 2026, 02:15:52 am »
I am curious about this statement in EA documentation on https://sparxsystems.com/enterprise_architect_user_guide/17.1/add-ins___scripting/eaadd-insea_getmenuitems.html:
"[MenuLocation] Description: A string representing the part of the user interface that brought up the context menu. This can be TreeView, MainMenu, Diagram or Other. You can add further values for MenuLocation at any time." (emphasis added)

Is it really possible to define our own additional values for MenuLocation parameter? How?
« Last Edit: January 15, 2026, 02:18:23 am by Elpis »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: MenuLocation of EA_GetMenuItems - custom locations possible?
« Reply #1 on: January 15, 2026, 01:50:52 pm »
Pretty sure that that should read "Sparx Systems may add further values". ie. Make sure your code handles unknown values.