-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CommandManager.RemoveCommandGroup method does not delete command groups #33
Comments
Does the items actually get removed in SolidWorks and its just the references in the |
Unfortunately not. The items are still visible in the SW interface |
I think I remember this being an issue with the API itself. I'll try and investigate shortly. |
Looks like many years ago I found it as a bug https://forum.solidworks.com/thread/41131 and I think its still there. In SolidDNA calling the Remove 3 times removes the command group, but leaves other bits. So I dropped to basic code in the The remaining bug is, I can remove the menu, the tab, tab box and command group... but the toolbar created via
|
And we can't use iconListsPath in this case, yes? |
I've found a workaround but anyway it looks not so reliably. It can be considered like a temporary solution:
|
That just does what I show above, it removes the tab. However you will still have a menu as shown in my screenshot that we cannot remove |
SolidWorksEnvironment.Application.CommandManager.RemoveCommandGroup does not remove commands.
I have two static methods, one to add commands groups and 1 to delete:
Adding wokks fine, but remove command does not clear specified groups. Before deleting:
and after:
as you can see, the set of groups is the same.
The text was updated successfully, but these errors were encountered: