.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SendStringToExecute method

4 REPLIES 4
Reply
Message 1 of 5
emilia_m
1840 Views, 4 Replies

SendStringToExecute method

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?

4 REPLIES 4
Message 2 of 5
Jeffrey_H
in reply to: emilia_m

go to options user perferences then click Right click customization and check settings

 

You can also find your answers @ TheSwamp
Message 3 of 5
caddzone
in reply to: emilia_m

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.

 

   http://www.caddzone.com/CommandLine.vb

   http://www.caddzone.com/CommandLine.cs

 



AcadXTabs for AutoCAD
Supporting AutoCAD 2000-2011


Message 4 of 5
Jeffrey_H
in reply to: caddzone

Tony T.

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?

You can also find your answers @ TheSwamp
Message 5 of 5
caddzone
in reply to: Jeffrey_H

Sorry, I don't understand the question given the way it was put.

 

 



AcadXTabs for AutoCAD
Supporting AutoCAD 2000-2011


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost