SendStringToExecute

SendStringToExecute

Anonymous
Not applicable
1,139 Views
5 Replies
Message 1 of 6

SendStringToExecute

Anonymous
Not applicable
Hi,

I want to use SendStringToExecute to call an AutoCAD command.
I'm wondering if a command thus invoked will run synchronously if all input
to the command is provided in the string.
I know that when I use the COM API, using SendCommand(), a command will run
asynchronously if it has to pause for user input.
Or is there a better way to call an AutoCAD command?
The command I want to invoke is "MEASURE"

Thanks in advance.
Guido Rooms
0 Likes
1,140 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
http://www.caddzone.com/CommandLine.cs

Put it in a C++ class library project, and build it.
Then you can use Reflector to convert it to VB.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:[email protected]...
Hi,

I want to use SendStringToExecute to call an AutoCAD command.
I'm wondering if a command thus invoked will run synchronously if all input
to the command is provided in the string.
I know that when I use the COM API, using SendCommand(), a command will run
asynchronously if it has to pause for user input.
Or is there a better way to call an AutoCAD command?
The command I want to invoke is "MEASURE"

Thanks in advance.
Guido Rooms
0 Likes
Message 3 of 6

Anonymous
Not applicable
Thanks a lot!
I went there and grabbed it.

Guido Rooms

"Tony Tanzillo" wrote in message
news:[email protected]...
http://www.caddzone.com/CommandLine.cs

Put it in a C++ class library project, and build it.
Then you can use Reflector to convert it to VB.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:[email protected]...
Hi,

I want to use SendStringToExecute to call an AutoCAD command.
I'm wondering if a command thus invoked will run synchronously if all input
to the command is provided in the string.
I know that when I use the COM API, using SendCommand(), a command will run
asynchronously if it has to pause for user input.
Or is there a better way to call an AutoCAD command?
The command I want to invoke is "MEASURE"

Thanks in advance.
Guido Rooms
0 Likes
Message 4 of 6

Anonymous
Not applicable
Oops. Where I said put it in a C++ class library
project, I meant to say "C# classlibrary project".

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:[email protected]...
Thanks a lot!
I went there and grabbed it.

Guido Rooms

"Tony Tanzillo" wrote in message
news:[email protected]...
http://www.caddzone.com/CommandLine.cs

Put it in a C++ class library project, and build it.
Then you can use Reflector to convert it to VB.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:[email protected]...
Hi,

I want to use SendStringToExecute to call an AutoCAD command.
I'm wondering if a command thus invoked will run synchronously if all input
to the command is provided in the string.
I know that when I use the COM API, using SendCommand(), a command will run
asynchronously if it has to pause for user input.
Or is there a better way to call an AutoCAD command?
The command I want to invoke is "MEASURE"

Thanks in advance.
Guido Rooms
0 Likes
Message 5 of 6

Anonymous
Not applicable
Ha!
No problem.
I 'm not an expert in C++ or C#, but I have no problem telling the beasts
apart.
I used to be a Delphi man, remember?
Thanks again.

"Tony Tanzillo" wrote in message
news:[email protected]...
Oops. Where I said put it in a C++ class library
project, I meant to say "C# classlibrary project".

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:[email protected]...
Thanks a lot!
I went there and grabbed it.

Guido Rooms

"Tony Tanzillo" wrote in message
news:[email protected]...
http://www.caddzone.com/CommandLine.cs

Put it in a C++ class library project, and build it.
Then you can use Reflector to convert it to VB.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:[email protected]...
Hi,

I want to use SendStringToExecute to call an AutoCAD command.
I'm wondering if a command thus invoked will run synchronously if all input
to the command is provided in the string.
I know that when I use the COM API, using SendCommand(), a command will run
asynchronously if it has to pause for user input.
Or is there a better way to call an AutoCAD command?
The command I want to invoke is "MEASURE"

Thanks in advance.
Guido Rooms
0 Likes
Message 6 of 6

Anonymous
Not applicable
Escaped again!
Works perfectly!
Thanks a billion.


"Tony Tanzillo" wrote in message
news:[email protected]...
http://www.caddzone.com/CommandLine.cs

Put it in a C++ class library project, and build it.
Then you can use Reflector to convert it to VB.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:[email protected]...
Hi,

I want to use SendStringToExecute to call an AutoCAD command.
I'm wondering if a command thus invoked will run synchronously if all input
to the command is provided in the string.
I know that when I use the COM API, using SendCommand(), a command will run
asynchronously if it has to pause for user input.
Or is there a better way to call an AutoCAD command?
The command I want to invoke is "MEASURE"

Thanks in advance.
Guido Rooms
0 Likes