Skip to content
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

Assign keyboard shortcut for commands #93

Open
andrMollo opened this issue Apr 19, 2023 · 6 comments
Open

Assign keyboard shortcut for commands #93

andrMollo opened this issue Apr 19, 2023 · 6 comments
Assignees

Comments

@andrMollo
Copy link

As per title, is it possible to assign a user-defined keyboard shortcut to commands added via xCAD?

@artem1t artem1t self-assigned this Apr 22, 2023
@artem1t
Copy link
Contributor

artem1t commented Apr 22, 2023

Yes, it should be possible just as with any other standard command in SW

@andrMollo
Copy link
Author

Thanks for the reply. I thought of writing directly to the registry key as suggested here, because I don't think there is an API method to do it. It would be awesome if xCAD could implement it.

@artem1t
Copy link
Contributor

artem1t commented Apr 22, 2023

Ah, sorry, you mean you want to assign this from the code, not by the user, right?

@andrMollo
Copy link
Author

Yes, l'm sorry if it wasn't clear. I'm using your framework to create an addin with some button to lunch VBA macros (like your toolbar+ that I'm not allow to use at my company). If I were able to assign shortcut with the code I could standardize the user experience for all users. I have not tried to assign a shortcut to a button via the SW user interface.

@andrMollo
Copy link
Author

Hello! I was able to add keyboard shortcuts via the SolidWorks user interface, that's awesome. I you prefer I can close the issue.

@andrMollo
Copy link
Author

Hi! Sorry to bring it up again. I was able to assign shortcuts via the SolidWorks user interface but sometimes they get switched.

I can't pin-point why, but the shortcut I assigned to a command of the add-in is then assigned to another one.

Can you help me or show me an area in which I can investigate the issue? Right now I'm clueless.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants