<?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: SendStringToExecute method in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/sendstringtoexecute-method/m-p/2752344#M64151</link>
    <description>&lt;P&gt;No, and is why it's a bad idea to use SendStringToExecute()&lt;/P&gt;&lt;P&gt;to script AutoCAD commands, regardless of what you may&lt;/P&gt;&lt;P&gt;have read suggesting otherwise,&amp;nbsp;on some Autodesk blog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can define a command using the CommandMethod&lt;/P&gt;&lt;P&gt;attribute, and add the CommandFlags.NoHistory flag to it.&lt;/P&gt;&lt;P&gt;From that method you can execute AutoCAD commands&lt;/P&gt;&lt;P&gt;synchronously using the code at&amp;nbsp;the link below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can run your command with SendStringToExecute()&lt;/P&gt;&lt;P&gt;and AutoCAD will not repeat it when the user presses&lt;/P&gt;&lt;P&gt;enter, as long as it has the CommandFlags.NoHistory bit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;A target="_blank" href="http://www.caddzone.com/CommandLine.vb" rel="nofollow"&gt;http://www.caddzone.com/CommandLine.vb&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;A target="_blank" href="http://www.caddzone.com/CommandLine.cs" rel="nofollow"&gt;http://www.caddzone.com/CommandLine.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Aug 2010 18:44:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-08-23T18:44:28Z</dc:date>
    <item>
      <title>SendStringToExecute method</title>
      <link>https://forums.autodesk.com/t5/net-forum/sendstringtoexecute-method/m-p/2751798#M64149</link>
      <description>&lt;P&gt;In VB. Net sending commands directly to the AutoCAD command line by using SendStringToExecute method.&lt;BR /&gt;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?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2010 08:52:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/sendstringtoexecute-method/m-p/2751798#M64149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-23T08:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: SendStringToExecute method</title>
      <link>https://forums.autodesk.com/t5/net-forum/sendstringtoexecute-method/m-p/2751800#M64150</link>
      <description>&lt;P&gt;go to options user perferences then click Right click customization and check settings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2010 09:00:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/sendstringtoexecute-method/m-p/2751800#M64150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-23T09:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: SendStringToExecute method</title>
      <link>https://forums.autodesk.com/t5/net-forum/sendstringtoexecute-method/m-p/2752344#M64151</link>
      <description>&lt;P&gt;No, and is why it's a bad idea to use SendStringToExecute()&lt;/P&gt;&lt;P&gt;to script AutoCAD commands, regardless of what you may&lt;/P&gt;&lt;P&gt;have read suggesting otherwise,&amp;nbsp;on some Autodesk blog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can define a command using the CommandMethod&lt;/P&gt;&lt;P&gt;attribute, and add the CommandFlags.NoHistory flag to it.&lt;/P&gt;&lt;P&gt;From that method you can execute AutoCAD commands&lt;/P&gt;&lt;P&gt;synchronously using the code at&amp;nbsp;the link below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can run your command with SendStringToExecute()&lt;/P&gt;&lt;P&gt;and AutoCAD will not repeat it when the user presses&lt;/P&gt;&lt;P&gt;enter, as long as it has the CommandFlags.NoHistory bit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;A target="_blank" href="http://www.caddzone.com/CommandLine.vb" rel="nofollow"&gt;http://www.caddzone.com/CommandLine.vb&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;A target="_blank" href="http://www.caddzone.com/CommandLine.cs" rel="nofollow"&gt;http://www.caddzone.com/CommandLine.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2010 18:44:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/sendstringtoexecute-method/m-p/2752344#M64151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-23T18:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: SendStringToExecute method</title>
      <link>https://forums.autodesk.com/t5/net-forum/sendstringtoexecute-method/m-p/2753926#M64152</link>
      <description>&lt;P&gt;Tony T.&lt;/P&gt;&lt;P&gt;I thought I read somewhere&amp;nbsp;when the user clicks a button on custom ribbon you built to use the SendStringToExecute method&lt;/P&gt;&lt;P&gt;Do you suggest doing that?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2010 03:40:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/sendstringtoexecute-method/m-p/2753926#M64152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-25T03:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: SendStringToExecute method</title>
      <link>https://forums.autodesk.com/t5/net-forum/sendstringtoexecute-method/m-p/2755453#M64153</link>
      <description>&lt;P&gt;Sorry, I don't understand the&amp;nbsp;question given the way it was put.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2010 11:31:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/sendstringtoexecute-method/m-p/2755453#M64153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-26T11:31:01Z</dc:date>
    </item>
  </channel>
</rss>

