SOLIDWORKS PDM TIP: Creating Submenus in SOLIDWORKS PDM with IEdmCmdMgr5::AddCmd
If you’re developing custom add-ins or commands for SOLIDWORKS PDM, you may want to improve the user experience by organizing your commands into submenus. This approach is central to creating submenus in SOLIDWORKS PDM, ensuring a more professional and structured interface. As you add more commands, a cluttered context menu can quickly become overwhelming, so grouping related commands under a parent label keeps the interface clean and intuitive. How to Create a Submenu To create a submenu, use the double backslash (\\ in C# if not escaped) separator in the menu name when registering your command with AddCmd. Example poCmdMgr.AddCmd(15065, “ParentMenu\\ChildMenu”, 43, string.Empty, string.Empty, -1, 0); This code registers a new command under: Right-click > ParentMenu > ChildMenu Important Notes Need help building PDM tools or structuring your add-ins? Reach out to Blue Byte Systems Inc. — we specialize in SOLIDWORKS PDM automation and custom development.