how can i let user that use my dll , change the command that he what
<CommandMethod("CC")> Public Sub CopyMyContent() CopyContents.CopyContent() End Sub
ex : how can i change cc to cmc
Solved! Go to Solution.
There's no way to change it in the registry unless it is some sort of alias.
The command will be defined using the string given in the CommandMethod attribute.
You can define an alias for the command in the .PGP file, or with LISP.
Best bet, use a verbose command name like "SOMESORTOFCOMMANDNAME" rather than "SS". Far less likely to result in conflict with other commands and user managed aliases. If a user wants to use "SS", "SSC", or whatever they can use the PGP to create the alias as they want.
I don't see that registry key in my version. is that something you added and want autocad to pick it up?
How was it assigned?
I agree with dgorsman.
By my side, I use my registered developper symbol as prefix for command names and let the user free to define aliases or to rename the command with LISP.
The entry in the registry is how AutoCAD loads your app before the first time the command is used. As soon as it is loaded, the command is defined and AutoCAD invokes that command. It does not 'define' the name of the command as you may be presuming.
If you change that value in the registry you have to change the name of the command as well.
Adding an alias for a command is something that you should allow the user to do, which is quite easy. The reason why you shouldn't define aliases is because you don't know if the user may have already used the same alias you've chosen.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.