In VB. Net sending commands directly to the AutoCAD command line by using SendStringToExecute method.
EchoCommand parameter set to False. Command sent not visible in the AutoCAD command line, but we can see it after clicking the right mouse. Is there any method to see .NET command as last one insteed the LISP one sent by .NET?
No, and is why it's a bad idea to use SendStringToExecute()
to script AutoCAD commands, regardless of what you may
have read suggesting otherwise, on some Autodesk blog.
You can define a command using the CommandMethod
attribute, and add the CommandFlags.NoHistory flag to it.
From that method you can execute AutoCAD commands
synchronously using the code at the link below.
You can run your command with SendStringToExecute()
and AutoCAD will not repeat it when the user presses
enter, as long as it has the CommandFlags.NoHistory bit.
AcadXTabs for AutoCAD
Supporting AutoCAD 2000-2011
I thought I read somewhere when the user clicks a button on custom ribbon you built to use the SendStringToExecute method
Do you suggest doing that?
Start with some of our most frequented solutions to get help installing your software.