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

SendStringToExecute

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
715 Views, 5 Replies

SendStringToExecute

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
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

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:5764485@discussion.autodesk.com...
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
Message 3 of 6
Anonymous
in reply to: Anonymous

Thanks a lot!
I went there and grabbed it.

Guido Rooms

"Tony Tanzillo" wrote in message
news:5765255@discussion.autodesk.com...
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:5764485@discussion.autodesk.com...
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
Message 4 of 6
Anonymous
in reply to: Anonymous

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:5765514@discussion.autodesk.com...
Thanks a lot!
I went there and grabbed it.

Guido Rooms

"Tony Tanzillo" wrote in message
news:5765255@discussion.autodesk.com...
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:5764485@discussion.autodesk.com...
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
Message 5 of 6
Anonymous
in reply to: Anonymous

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:5766010@discussion.autodesk.com...
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:5765514@discussion.autodesk.com...
Thanks a lot!
I went there and grabbed it.

Guido Rooms

"Tony Tanzillo" wrote in message
news:5765255@discussion.autodesk.com...
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:5764485@discussion.autodesk.com...
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
Message 6 of 6
Anonymous
in reply to: Anonymous

Escaped again!
Works perfectly!
Thanks a billion.


"Tony Tanzillo" wrote in message
news:5765255@discussion.autodesk.com...
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:5764485@discussion.autodesk.com...
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

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