<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Wait for SendStringToExecute to complete in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492014#M70388</link>
    <description>Ok, I'll will review this info and give it a shot tonight.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help, I will re-post once I give this a shot.</description>
    <pubDate>Mon, 22 Jun 2009 19:06:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-06-22T19:06:09Z</dc:date>
    <item>
      <title>Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492006#M70380</link>
      <description>I figured out a method to wait for the SendStringToExecute to complete. It's similar to using a WebService, i send my command and subscribe to an event and complete my function when the command completes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What i did was make a command that raises an event so i can just append that command onto any of my SendStringToExecute's&lt;BR /&gt;&lt;BR /&gt;{color:#0000ff}&lt;BR /&gt;&lt;BR /&gt;Public Event{color} eCommandComplete {color:#0000ff}As{color} EventHandler &lt;BR /&gt;&lt;BR /&gt;&amp;lt;CommandMethod({color:#ff0000}"CommandComplete"{color})&amp;gt; _ &lt;BR /&gt;&lt;BR /&gt;{color:#0000ff}Sub{color} CommandComplete()&lt;BR /&gt;&lt;BR /&gt;{color:#0000ff}RaiseEvent{color} eCommandComplete({color:#0000ff}Nothing{color}, {color:#0000ff}Nothing{color}) &lt;BR /&gt;&lt;BR /&gt;{color:#0000ff}End Sub&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;{color}Then my other command goes like&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;CommandMethod({color:#ff0000}"SomeCommand"{color}&amp;gt; _&lt;BR /&gt;&lt;BR /&gt;{color:#0000ff}Sub{color} SomeCommand()&lt;BR /&gt;&lt;BR /&gt;{color:#339966}'Do Some Work&lt;BR /&gt;&lt;BR /&gt;{color}{color:#0000ff}AddHandler{color} eCommandComplete, {color:#0000ff}AddressOf{color} SomeCommand&lt;BR /&gt;&lt;BR /&gt;SendStringToExecute({color:#ff0000}"Zoom E CommandComplete "{color}, {color:#0000ff}False{color}, {color:#0000ff}False{color}, {color:#0000ff}False{color})&lt;BR /&gt;&lt;BR /&gt;{color:#000000}{color:#0000ff}End Sub&lt;BR /&gt;&lt;BR /&gt;{color}{color}{color:#0000ff}&lt;BR /&gt;&lt;BR /&gt;Sub{color} SomeCommand({color:#0000ff}ByVal{color} sender {color:#0000ff}As Object{color}, {color:#0000ff}ByVal{color} e {color:#0000ff}As EventArgs{color})&lt;BR /&gt;&lt;BR /&gt;{color:#339966}'Do Some other Work&lt;BR /&gt;&lt;BR /&gt;{color}{color:#0000ff}End Sub{color}</description>
      <pubDate>Wed, 20 May 2009 16:05:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492006#M70380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-20T16:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492007#M70381</link>
      <description>&lt;P&gt;&lt;BR /&gt;While I avoid using SendStringToExecute as much as humanly possible (and then some), this is a cleverly simple solution to the asynchronous problem.  Thanks for posting it.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2009 22:54:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492007#M70381</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2009-05-21T22:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492008#M70382</link>
      <description>This seems to be exactly what I need, but I am having a little trouble understanding it. (I am using VB.net and am fairly new)&lt;BR /&gt;
&lt;BR /&gt;
Any chance you could break down the basics of this? &lt;BR /&gt;
&lt;BR /&gt;
I am using "SendStringToExecute" to use the ACAD erase command based on polyline points. Immediately after teh erase command I am searching the drawing for entities and it still finds the ones that should have been erased. &lt;BR /&gt;
&lt;BR /&gt;
Any help?</description>
      <pubDate>Sun, 21 Jun 2009 18:52:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492008#M70382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-21T18:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492009#M70383</link>
      <description>When you say 'searching the drawing', I assume you mean you are iterating through the model and/or paper space objects correct?&lt;BR /&gt;
If so, the 'erased' entities will still show up, but they have an IsErased property which should be true.</description>
      <pubDate>Mon, 22 Jun 2009 17:15:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492009#M70383</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2009-06-22T17:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492010#M70384</link>
      <description>Yes, by search I mean iterate the drawing DB.&lt;BR /&gt;
&lt;BR /&gt;
I am checking the IsErased property but it returns true for objects that would have been erased by the SendStringToExecute command. This leads me to believe the code is getting ahead of the SendStringToExecute part.&lt;BR /&gt;
&lt;BR /&gt;
Make sesne?</description>
      <pubDate>Mon, 22 Jun 2009 18:13:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492010#M70384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-22T18:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492011#M70385</link>
      <description>Basically the Event Handler sounded like what I may need to prevent the code from jumping ahead.&lt;BR /&gt;
&lt;BR /&gt;
I was wondering if someone could explain how the Even Handler logic works for this.</description>
      <pubDate>Mon, 22 Jun 2009 18:19:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492011#M70385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-22T18:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492012#M70386</link>
      <description>Basically the Event Handler sounded like what I may need to prevent the code from jumping ahead.&lt;BR /&gt;
&lt;BR /&gt;
I was wondering if someone could explain how the Even Handler logic works for this.</description>
      <pubDate>Mon, 22 Jun 2009 18:19:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492012#M70386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-22T18:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492013#M70387</link>
      <description>Basically, this part goes into your code exactly as is.  It declares an event, and a command which will raise the event.&lt;BR /&gt;
&lt;BR /&gt;
Public Event eCommandComplete As EventHandler &lt;BR /&gt;
&lt;COMMANDMETHOD&gt; _ &lt;BR /&gt;
Sub CommandComplete()&lt;BR /&gt;
RaiseEvent eCommandComplete(Nothing, Nothing) &lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Then your first command will do whatever it does to collect points for the window or whatever, set the event handler for the eCommandComplete event to point to your CommandTwo, set up your command string to send to the command line, and notice that the last part of the command string calls the CommandComplete function you just created.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;COMMANDMETHOD&gt; _&lt;BR /&gt;
Sub SomeCommand()&lt;BR /&gt;
&lt;BR /&gt;
'get your polyline points or whatever you are doing.&lt;BR /&gt;
&lt;BR /&gt;
AddHandler eCommandComplete, AddressOf CommandTwo  'set the event handler to CommandTwo&lt;BR /&gt;
SendStringToExecute("Zoom E CommandComplete ", False, False, False)  'Note the call to CommandComplete at the end.&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Sub CommandTwo(ByVal sender As Object, ByVal e As EventArgs)&lt;BR /&gt;
'Iterate the DB and do your post process&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
So the user runs CommandOne, which does some stuff and then calls SendStringToExecute, then ends.&lt;BR /&gt;
the SendStringToExecute executes.  Performing your erase, then calling CommandComplete.&lt;BR /&gt;
CommandComplete raises your defined event, which calls whatever sub you have assigned the handler to with the AddHandler method.&lt;BR /&gt;
&lt;BR /&gt;
Technically, you could eliminate the whole event setup and just create two commands, with the sendstring containing the call to the second command directly.  &lt;BR /&gt;
&lt;BR /&gt;
If that wasn't helpful, maybe you should post the pertinent bits of your code and someone can help figure out whats wrong.&lt;/COMMANDMETHOD&gt;&lt;/COMMANDMETHOD&gt;</description>
      <pubDate>Mon, 22 Jun 2009 18:56:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492013#M70387</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2009-06-22T18:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492014#M70388</link>
      <description>Ok, I'll will review this info and give it a shot tonight.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help, I will re-post once I give this a shot.</description>
      <pubDate>Mon, 22 Jun 2009 19:06:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492014#M70388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-22T19:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492015#M70389</link>
      <description>Your only mistake here was believing what chief wrote about this being a &lt;BR /&gt;
good solution to a problem.  It certainly is not.&lt;BR /&gt;
&lt;BR /&gt;
First, is there a reason why you are invoking the ERASE command rather than &lt;BR /&gt;
just erasing objects by calling their Erase() method ?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;JTA_ALBERT&gt; wrote in message news:6206202@discussion.autodesk.com...&lt;BR /&gt;
Basically the Event Handler sounded like what I may need to prevent the code &lt;BR /&gt;
from jumping ahead. I was wondering if someone could explain how the Even &lt;BR /&gt;
Handler logic works for this.&lt;/JTA_ALBERT&gt;</description>
      <pubDate>Mon, 22 Jun 2009 19:17:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492015#M70389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-22T19:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492016#M70390</link>
      <description>I do realize using the SendStringToExecute is not ideal, I am using it as a shortcut for now and hope to eventually do it the "right" way. I am also using SendStringToExecute with the Stretch and Copy commands for now. (Bascially trying to get the big picture of my project down before spending to much time on these things)&lt;BR /&gt;
&lt;BR /&gt;
Either way, would be nice to see if this Event Handler method could work with my current situation.</description>
      <pubDate>Mon, 22 Jun 2009 19:37:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492016#M70390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-22T19:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492017#M70391</link>
      <description>While it's true that using the managed ObjectARX API does&lt;BR /&gt;
require some learning, you are still able to use the same&lt;BR /&gt;
ActiveX API you use in VBA, which means that you can do&lt;BR /&gt;
the same things you do in VBA without much more difficulty.&lt;BR /&gt;
&lt;BR /&gt;
Hence, what you call a 'shortcut' is really not that, because&lt;BR /&gt;
you could have easily wrote ActiveX code to delete entities&lt;BR /&gt;
in far less time than you've wasted on this very bad kludge,&lt;BR /&gt;
that will only box you into a corner down the road.&lt;BR /&gt;
&lt;BR /&gt;
Stretching is another matter, and it's not doable via ActiveX,&lt;BR /&gt;
and is not easily scriptable via the command line because of&lt;BR /&gt;
its dependence on the current view.&lt;BR /&gt;
&lt;BR /&gt;
Well, if you insist on following the chief's bad advice, then&lt;BR /&gt;
hopefully, you're doing this on your own dime, rather than&lt;BR /&gt;
on company time. I don't think chief is going to compensate&lt;BR /&gt;
you for losses that result from following his bad advice.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;JTA_ALBERT&gt; wrote in message news:6206293@discussion.autodesk.com...&lt;BR /&gt;
I do realize using the SendStringToExecute is not ideal, I am using it as a &lt;BR /&gt;
shortcut for now and hope to eventually do it the "right" way. I am also &lt;BR /&gt;
using SendStringToExecute with the Stretch and Copy commands for now. &lt;BR /&gt;
(Bascially trying to get the big picture of my project down before spending &lt;BR /&gt;
to much time on these things) Either way, would be nice to see if this Event &lt;BR /&gt;
Handler method could work with my current situation.&lt;/JTA_ALBERT&gt;</description>
      <pubDate>Mon, 22 Jun 2009 20:38:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492017#M70391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-22T20:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492018#M70392</link>
      <description>Ok, I am pretty sure I understand how the EventHandler works, but not sure it will work for my situation as I need to pass an arraylist to the second command(not sure how you would do that...)&lt;BR /&gt;
&lt;BR /&gt;
What do you think of this, kind of crazy but might work...&lt;BR /&gt;
&lt;BR /&gt;
I will still have a "CommandComplete" command that is appeneded on to the SendStringToExecute, but have this command do something I can look for. Directly after my SendString command I will go into a loop and look for whatever "CommandComplete" does and proceed once I recognize it. (Probably just have it create a tmp file on disk)&lt;BR /&gt;
&lt;BR /&gt;
What do you think?</description>
      <pubDate>Mon, 22 Jun 2009 23:09:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492018#M70392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-22T23:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492019#M70393</link>
      <description>Are you saying the original solution posted by timbot is not a good one and if so can you explain why?</description>
      <pubDate>Mon, 22 Jun 2009 23:33:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492019#M70393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-22T23:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492020#M70394</link>
      <description>Ok, so I realize now that my SendString commands are not executed untill all my code is finished...&lt;BR /&gt;
&lt;BR /&gt;
Hmm...</description>
      <pubDate>Tue, 23 Jun 2009 01:02:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492020#M70394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-23T01:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492021#M70395</link>
      <description>If the plan is to have one function like this:&lt;BR /&gt;
&lt;BR /&gt;
Sub Whatever&lt;BR /&gt;
'do stuff&lt;BR /&gt;
SendStringToExecute()&lt;BR /&gt;
Do&lt;BR /&gt;
'nothing&lt;BR /&gt;
Loop Until Commandcomplete&lt;BR /&gt;
'do more stuff&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Then I think the SendStringToExecute will still be waiting to run.  Essentially, your code must end, and return control back to the AutoCAD app, before the SendStringToExecute will fire.  &lt;BR /&gt;
Depending on what your arraylist contains, maybe you can temporarily store it in a dictionary for retrieval by the second command in the Event model.</description>
      <pubDate>Tue, 23 Jun 2009 01:02:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492021#M70395</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2009-06-23T01:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492022#M70396</link>
      <description>No, it's not a good solution, mainly because it attempts to solve&lt;BR /&gt;
a problem that shouldn't exist in the first place, and only exists&lt;BR /&gt;
as a result of not using the right tools for the job.&lt;BR /&gt;
&lt;BR /&gt;
P/Invoking acedCommand() (as done by the CommandLine&lt;BR /&gt;
class available from my website) eliminates the need to call&lt;BR /&gt;
SendStringToExecute() to run AutoCAD commands, and with&lt;BR /&gt;
that, eliminates the need to 'wait' for the commands to finish.&lt;BR /&gt;
&lt;BR /&gt;
I've spoken at length about the problems associated with this&lt;BR /&gt;
Autodesk-devised kludge, and you can read them here.&lt;BR /&gt;
&lt;BR /&gt;
For example, what happens when a user presses enter to&lt;BR /&gt;
repeat the last command *they* issued.&lt;BR /&gt;
&lt;BR /&gt;
And then there's other issues like of undo grouping, and undoing&lt;BR /&gt;
an entire command sequence as a whole; passing input that can't&lt;BR /&gt;
be represented in string form (like objects) and so on.&lt;BR /&gt;
&lt;BR /&gt;
Better yet, I'll just refer you to the assorted hacks/kludges that&lt;BR /&gt;
you'll find on through-the-interface, which serve to demonstrate&lt;BR /&gt;
what's wrong with automating AutoCAD by sending keystrokes&lt;BR /&gt;
to the command line.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;NATHTAY&gt; wrote in message news:6206412@discussion.autodesk.com...&lt;BR /&gt;
Are you saying the original solution posted by timbot is not a good one and &lt;BR /&gt;
if so can you explain why?&lt;/NATHTAY&gt;</description>
      <pubDate>Tue, 23 Jun 2009 02:18:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492022#M70396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-23T02:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492023#M70397</link>
      <description>Thanks Tony. I have been fortunate with .NET (unlike VBA) not to be in the situation of having to send commands to the commandline. If I do get into that situation I will look into your CommandLine class.</description>
      <pubDate>Tue, 23 Jun 2009 02:29:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492023#M70397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-23T02:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492024#M70398</link>
      <description>wow, didn't realize people were responding to my post, must have forgot to  have it notify me or something... anyhow, the main reazon i made this was because of my horrible troubles i was having with zooming, and i didn't want to use the interop because i had problems when we upgraded... this was just a suggestion for people learning like me to get thru a problem... yeah, the big problem was with repeating the command or undoing... but, all my zooms work great! B) i'll have to read your post about the P/Invoking acedCommand thing, i just wish there was a better zoom function built into the .net api, then all of my problems would be solved, untill then perhaps i'll learn some better way... thanks for the rebuke!</description>
      <pubDate>Thu, 06 Aug 2009 19:51:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492024#M70398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-06T19:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for SendStringToExecute to complete</title>
      <link>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492025#M70399</link>
      <description>Yep, thats bascially what I reliazed... (about the sendstring not executing untill later)&lt;BR /&gt;
&lt;BR /&gt;
I would like to stay away from storing and jumping in and out of the code.&lt;BR /&gt;
&lt;BR /&gt;
Do you know if there is any way to send to the command line and have it run in sync?</description>
      <pubDate>Thu, 06 Aug 2009 19:55:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wait-for-sendstringtoexecute-to-complete/m-p/2492025#M70399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-06T19:55:14Z</dc:date>
    </item>
  </channel>
</rss>

