<?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: echo off in VB in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915359#M26526</link>
    <description>Thank you guys, I've got enough information I needed.&lt;BR /&gt;
&lt;BR /&gt;
&lt;ED_JOBE&gt; wrote in message news:5523057@discussion.autodesk.com...&lt;BR /&gt;
Sorry, my mind was on a single track. But even if cmdecho did affect echoing &lt;BR /&gt;
of SendCommand, because SendCommand is asyncronous, it would not have solved &lt;BR /&gt;
the original problem. The OP was apparently using SendCommand do do many &lt;BR /&gt;
things, not just set a sysvar. So this could be a lesson on using &lt;BR /&gt;
SendCommand to set any sysvar.&lt;BR /&gt;
&lt;BR /&gt;
What should happen:&lt;BR /&gt;
Turn sysvar off&lt;BR /&gt;
process&lt;BR /&gt;
Turn sysvar on&lt;BR /&gt;
&lt;BR /&gt;
What was happening:&lt;BR /&gt;
process&lt;BR /&gt;
vba finishes&lt;BR /&gt;
SendCommand begins&lt;BR /&gt;
Turn sysvar off&lt;BR /&gt;
Turn sysvar on&lt;BR /&gt;
&lt;BR /&gt;
Lesson: use SetVariable(), not SendCommand&lt;/ED_JOBE&gt;</description>
    <pubDate>Wed, 06 Jun 2007 00:37:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-06-06T00:37:26Z</dc:date>
    <item>
      <title>echo off in VB</title>
      <link>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915349#M26516</link>
      <description>In lisp when "command" function is used "cmdecho" variable turns on or off &lt;BR /&gt;
the command line "messages". In VBA, however, this variable does nothing. &lt;BR /&gt;
I'm using SendCommand method in VBA and setting up the "cmdecho" variable &lt;BR /&gt;
does not affect the command line "echoes" anyway. Is there any other &lt;BR /&gt;
"variable" that can be used in VBA for similar purpose?&lt;BR /&gt;
Thanks,</description>
      <pubDate>Wed, 14 Mar 2007 21:44:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915349#M26516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-14T21:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: echo off in VB</title>
      <link>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915350#M26517</link>
      <description>Probably because the SendCommand method is asyncrnous and will run after your vba finishes, thus, you don't see any effect. Try using ThisDrawing.SetVariable instead.</description>
      <pubDate>Wed, 14 Mar 2007 21:48:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915350#M26517</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2007-03-14T21:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: echo off in VB</title>
      <link>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915351#M26518</link>
      <description>The only way not to see anything is to avoid the SendCommand function and use the object adding/modifying methods -- however, you can clean up what is written to the command line by getting rid of the prompts by setting NOMUTT to 1.&lt;BR /&gt;
&lt;BR /&gt;
For Example:&lt;BR /&gt;
&lt;BR /&gt;
Thisdrawing.SendCommand "line" &amp;amp; vbcr &amp;amp; "0,0,0" &amp;amp; vbcr &amp;amp; "999,999,0" &amp;amp; vbcr &amp;amp; vbcr&lt;BR /&gt;
&lt;BR /&gt;
... will display as:&lt;BR /&gt;
&lt;BR /&gt;
line&lt;BR /&gt;
0,0,0&lt;BR /&gt;
999,999,0&lt;BR /&gt;
&lt;BR /&gt;
... just remember to turn it back on when done (kinda hard to use commands when you don't know what AutoCAD is asking).&lt;BR /&gt;
&lt;BR /&gt;
HTH - Lanny</description>
      <pubDate>Wed, 14 Mar 2007 21:58:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915351#M26518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-14T21:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: echo off in VB</title>
      <link>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915352#M26519</link>
      <description>The best thing is to only use SendCommand as a last resort only when absolutely necessary.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Wed, 14 Mar 2007 22:04:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915352#M26519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-14T22:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: echo off in VB</title>
      <link>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915353#M26520</link>
      <description>I've never done this before, but couldn't you set cmdecho to 0, then use SendCommand, but send it as a small lisp routine that does what you want?</description>
      <pubDate>Fri, 16 Mar 2007 12:21:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915353#M26520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-16T12:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: echo off in VB</title>
      <link>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915354#M26521</link>
      <description>The problem is not what SendCommand sends, but using SendCommand. Your vba would execute and &lt;B&gt;then&lt;/B&gt; when its done, cmdecho would toggle on/off.</description>
      <pubDate>Fri, 16 Mar 2007 16:43:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915354#M26521</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2007-03-16T16:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: echo off in VB</title>
      <link>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915355#M26522</link>
      <description>So just to clarify, if it were to be toggled off before you did anything in vba, you wouldn't have a problem?</description>
      <pubDate>Fri, 16 Mar 2007 16:47:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915355#M26522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-16T16:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: echo off in VB</title>
      <link>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915356#M26523</link>
      <description>CMDECHO has no affect on echoing of prompts &lt;BR /&gt;
and input from SendCommand().  It doesn't matter &lt;BR /&gt;
when you turn it off.&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 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;RANDOM&gt; wrote in message news:5521205@discussion.autodesk.com...&lt;BR /&gt;
So just to clarify, if it were to be toggled off before you did anything in vba, you wouldn't have a problem?&lt;/RANDOM&gt;</description>
      <pubDate>Fri, 16 Mar 2007 19:39:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915356#M26523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-16T19:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: echo off in VB</title>
      <link>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915357#M26524</link>
      <description>Well that's what i would have thought. I would relate SendCommand() to actually typing in the command manually.</description>
      <pubDate>Mon, 19 Mar 2007 10:10:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915357#M26524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-19T10:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: echo off in VB</title>
      <link>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915358#M26525</link>
      <description>Sorry, my mind was on a single track. But even if cmdecho did affect echoing of SendCommand, because SendCommand is asyncronous, it would not have solved the original problem. The OP was apparently using SendCommand do do many things, not just set a sysvar. So this could be a lesson on using SendCommand to set any sysvar.&lt;BR /&gt;
&lt;BR /&gt;
What should happen:&lt;BR /&gt;
Turn sysvar off&lt;BR /&gt;
process&lt;BR /&gt;
Turn sysvar on&lt;BR /&gt;
&lt;BR /&gt;
What was happening:&lt;BR /&gt;
process&lt;BR /&gt;
vba finishes&lt;BR /&gt;
SendCommand begins&lt;BR /&gt;
Turn sysvar off&lt;BR /&gt;
Turn sysvar on&lt;BR /&gt;
&lt;BR /&gt;
Lesson: use SetVariable(), not SendCommand</description>
      <pubDate>Mon, 19 Mar 2007 15:17:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915358#M26525</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2007-03-19T15:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: echo off in VB</title>
      <link>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915359#M26526</link>
      <description>Thank you guys, I've got enough information I needed.&lt;BR /&gt;
&lt;BR /&gt;
&lt;ED_JOBE&gt; wrote in message news:5523057@discussion.autodesk.com...&lt;BR /&gt;
Sorry, my mind was on a single track. But even if cmdecho did affect echoing &lt;BR /&gt;
of SendCommand, because SendCommand is asyncronous, it would not have solved &lt;BR /&gt;
the original problem. The OP was apparently using SendCommand do do many &lt;BR /&gt;
things, not just set a sysvar. So this could be a lesson on using &lt;BR /&gt;
SendCommand to set any sysvar.&lt;BR /&gt;
&lt;BR /&gt;
What should happen:&lt;BR /&gt;
Turn sysvar off&lt;BR /&gt;
process&lt;BR /&gt;
Turn sysvar on&lt;BR /&gt;
&lt;BR /&gt;
What was happening:&lt;BR /&gt;
process&lt;BR /&gt;
vba finishes&lt;BR /&gt;
SendCommand begins&lt;BR /&gt;
Turn sysvar off&lt;BR /&gt;
Turn sysvar on&lt;BR /&gt;
&lt;BR /&gt;
Lesson: use SetVariable(), not SendCommand&lt;/ED_JOBE&gt;</description>
      <pubDate>Wed, 06 Jun 2007 00:37:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/echo-off-in-vb/m-p/1915359#M26526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-06-06T00:37:26Z</dc:date>
    </item>
  </channel>
</rss>

