Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Users want to change my command name to shortcut string as their like. How to rename command by code? Thanks.
Solved! Go to Solution.
Users want to change my command name to shortcut string as their like. How to rename command by code? Thanks.
Solved! Go to Solution.
Is there a reason that they can't use the ALIASEDIT command and change it themselves?
It will be more user friendly.
Just found the method in this forum.
The undocumented AddCommand() method of the Autodesk.AutoCAD.Internal.Utils class will do it.
Thanks, caddzone.
@chunyuran, can you please share some details about how to use the AddCommand() method?
Is it an alternative to using the CommandMethodAttribute?
Or is it supposed to be used in addition to that?