Another thread (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=749450&SiteID=1) raised the question of how to remove or alter the standard Add / Delete context menu items for the diagram and model explorer. Here are some notes on how you might do this.

Customising diagram menu commands

Diagram context menu commands are created using the Visual Studio Command Table Compiler (??TC??, and menu handlers are created and registered via the CommandSet.GetMenuItems. There are some built-in diagram context menu items, such as ??alidate??and ?淒elete??

Some of the built-in diagram context menu item commands can be customised via virtual methods on the DslPackage.CommandSet class. For example, you can control whether or not the ?淒elete??context menu appears by overriding the ??/font>ProcessOnStatusDeleteCommand