You should use ‘\’ symbol to create sub groups. You can also use SldWorks::GetLocalizedMenuName to return the localized name of the menu. Here is the snippet:
Dim fileMenu As String = m_SwApp.GetLocalizedMenuName(swMenuIdentifiers_e.swFileMenu)
Dim title As String = fileMenu & "\MyMenu"
cmdGroup = m_CmdMgr.CreateCommandGroup2(0, title, "", "", 0, ignorePrevious, cmdGroupErr)
Artem Taturevych, Application Engineer at Intercad (Australia)
translationXpert – add-in to translate SolidWorks models
myIntercad – an integrated tool for SolidWorks Professionals
Hey thanks for your reply, But the code didn't worked. How can I add a button in file menu below the Print3d.. Button
I have attached an image for better understanding!