Extending product function with VBA : System Architect events : Guidelines for adding macro items to menus programmatically : Adding a popup to a System Architect menu
  
Adding a popup to a System Architect menu
You may add a popup to a System Architect menu in exactly the same way you add a macro item to a menu, except, use InsertPopupMenuItemInMenu and do not specify a macro name.
Example
InsertPopupMenuItemInMenu(PopUpName as String, InMenuTitleCaption as String, [BeforeMenuItemCaption as string]) as long
See also
Guidelines for adding macro items to menus programmatically