Extending product function with VBA > System Architect events > Guidelines for adding macro items to menus programmatically > Adding a separator to a menu item
  
Adding a separator to a menu item
Use SetSeparatorBefore, provide the menu name and item name, then set True for a separator and false for no separator.
See also
Guidelines for adding macro items to menus programmatically