public void RemoveCommandMgr() { SwApp.RemoveMenu((int)swDocumentTypes_e.swDocASSEMBLY, "Export as URDF@&File", ""); logger.Info("Removing assembly export from file menu"); SwApp.RemoveMenu((int)swDocumentTypes_e.swDocPART, "Export as URDF@&File", ""); logger.Info("Removing part export from file menu"); }
void removeUI() { int[] showInDocumentTypes = new int[2] { (int)swDocumentTypes_e.swDocPART, (int)swDocumentTypes_e.swDocASSEMBLY }; string callback = "PublishCmd_Callback"; foreach (var type in showInDocumentTypes) { SwApp.RemoveMenu(type, PublishMenuTitle, callback); } if (bitmapHandler != null) { bitmapHandler.CleanFiles(); } }