I'm wanting to create a command that can be invoked as a Dialog or at the command line, just as there are the commands "Layer" and "-Layer" (among many others). However, when I attempt this:
[CommandMethod("-MyCommand")]
the command is not recognized by Autocad. I've read through the .NET and ObjectARX docs and have been unable to find any mention of the "-" character not being a valid character to use.
Any suggestions welcomed. (Yes, I know I can just create a similarly named command. I was hoping to mimic what Autocad does so the process will already be familiar to the end user.)
Thanks!
Solved! Go to Solution.
Solved by norman.yuan. Go to Solution.
Solved by _gile. Go to Solution.
@Jeff_M, I just recently posted something in my blog on this topic, and I have no problem to with code
[CommandMethod("-DoSothing")]
Norman Yuan
Can't find what you're looking for? Ask the community or share your knowledge.