<?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: How to send the text command from vb.net 2005 to AutoCad 2008 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644865#M66572</link>
    <description>There may be cases where using "SendStringToExecute()" makes sense, but &lt;BR /&gt;
since you are "new to programming...", it is definitely not good way to try &lt;BR /&gt;
out Acad .NET API. You should avoid the temptation of doing programming as &lt;BR /&gt;
if you are just issuing Acad built-in commands (running script file *.scr &lt;BR /&gt;
would be a lot easier for that). SendStringToExecute() is rather advanced &lt;BR /&gt;
topic.&lt;BR /&gt;
&lt;BR /&gt;
For your question of creating a text in drawing, there is .NET API &lt;BR /&gt;
object/method to create text (DBText/MText).&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"dawoodeg" wrote in message news:6350149@discussion.autodesk.com...&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
I`m v.new to programming vb.net 2005 with AutoCAD 2008.&lt;BR /&gt;
I just saw a presentation about how to send commands through &lt;BR /&gt;
SendStringToExecute method.&lt;BR /&gt;
My code is like that:&lt;BR /&gt;
&lt;I&gt;Imports System&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports System.IO&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports System.Collections.Generic&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.Runtime&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.ApplicationServices&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.Geometry&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.DatabaseServices&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.EditorInput&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports AcadApp = Autodesk.AutoCAD.ApplicationServices.Application&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;Public Class DGCommand&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
    &lt;I&gt;&lt;COMMANDMETHOD&gt; _&lt;/COMMANDMETHOD&gt;&lt;/I&gt;&lt;BR /&gt;
 &lt;I&gt;Public Sub Asdkcmd1()&lt;/I&gt;&lt;BR /&gt;
        &lt;I&gt;Dim acDoc As Document = &lt;BR /&gt;
AcadApp.DocumentManager.MdiActiveDocument&lt;/I&gt;&lt;BR /&gt;
        &lt;I&gt;acDoc.SendStringToExecute("._text '(10.0 10.0 0.0) 5 0 &lt;BR /&gt;
TestArcGIS", False, False, False)&lt;/I&gt;&lt;BR /&gt;
        &lt;I&gt;acDoc.SendStringToExecute("(\n)", False, False, False)&lt;/I&gt;&lt;BR /&gt;
    &lt;I&gt;End Sub&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;End Class&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
This script code &lt;I&gt;("._text '(10.0 10.0 0.0) 5 0 TestArcGIS", False, False, &lt;BR /&gt;
False)&lt;/I&gt; is not correct.&lt;BR /&gt;
Can anyone help me with this easy task.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
    <pubDate>Mon, 08 Mar 2010 13:42:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-03-08T13:42:25Z</dc:date>
    <item>
      <title>How to send the text command from vb.net 2005 to AutoCad 2008</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644862#M66569</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I`m v.new to programming vb.net 2005 with AutoCAD 2008.&lt;BR /&gt;
I just saw a presentation about how to send commands through SendStringToExecute method.&lt;BR /&gt;
My code is like that:&lt;BR /&gt;
&lt;I&gt;Imports System&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports System.IO&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports System.Collections.Generic&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.Runtime&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.ApplicationServices&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.Geometry&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.DatabaseServices&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.EditorInput&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports AcadApp = Autodesk.AutoCAD.ApplicationServices.Application&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;Public Class DGCommand&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
    &lt;I&gt;&lt;COMMANDMETHOD&gt; _&lt;/COMMANDMETHOD&gt;&lt;/I&gt;&lt;BR /&gt;
 &lt;I&gt;Public Sub Asdkcmd1()&lt;/I&gt;&lt;BR /&gt;
        &lt;I&gt;Dim acDoc As Document = AcadApp.DocumentManager.MdiActiveDocument&lt;/I&gt;&lt;BR /&gt;
        &lt;I&gt;acDoc.SendStringToExecute("._text '(10.0 10.0 0.0) 5 0 TestArcGIS", False, False, False)&lt;/I&gt;&lt;BR /&gt;
        &lt;I&gt;acDoc.SendStringToExecute("(\n)", False, False, False)&lt;/I&gt;&lt;BR /&gt;
    &lt;I&gt;End Sub&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;End Class&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
This script code &lt;I&gt;("._text '(10.0 10.0 0.0) 5 0 TestArcGIS", False, False, False)&lt;/I&gt; is not correct.&lt;BR /&gt;
Can anyone help me with this easy task.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Sun, 07 Mar 2010 07:34:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644862#M66569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-07T07:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to send the text command from vb.net 2005 to AutoCad 2008</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644863#M66570</link>
      <description>Can you cite the source of the presentation?&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&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;DAWOODEG&gt; wrote in message news:6350149@discussion.autodesk.com...&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
I`m v.new to programming vb.net 2005 with AutoCAD 2008.&lt;BR /&gt;
I just saw a presentation about how to send commands through SendStringToExecute &lt;BR /&gt;
method.&lt;BR /&gt;
My code is like that:&lt;BR /&gt;
&lt;I&gt;Imports System&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports System.IO&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports System.Collections.Generic&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.Runtime&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.ApplicationServices&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.Geometry&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.DatabaseServices&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.EditorInput&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports AcadApp = Autodesk.AutoCAD.ApplicationServices.Application&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;Public Class DGCommand&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
    &lt;I&gt;&lt;COMMANDMETHOD&gt; _&lt;/COMMANDMETHOD&gt;&lt;/I&gt;&lt;BR /&gt;
 &lt;I&gt;Public Sub Asdkcmd1()&lt;/I&gt;&lt;BR /&gt;
        &lt;I&gt;Dim acDoc As Document = AcadApp.DocumentManager.MdiActiveDocument&lt;/I&gt;&lt;BR /&gt;
        &lt;I&gt;acDoc.SendStringToExecute("._text '(10.0 10.0 0.0) 5 0 TestArcGIS", &lt;BR /&gt;
False, False, False)&lt;/I&gt;&lt;BR /&gt;
        &lt;I&gt;acDoc.SendStringToExecute("(\n)", False, False, False)&lt;/I&gt;&lt;BR /&gt;
    &lt;I&gt;End Sub&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;End Class&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
This script code &lt;I&gt;("._text '(10.0 10.0 0.0) 5 0 TestArcGIS", False, False, &lt;BR /&gt;
False)&lt;/I&gt; is not correct.&lt;BR /&gt;
Can anyone help me with this easy task.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/DAWOODEG&gt;</description>
      <pubDate>Sun, 07 Mar 2010 20:50:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644863#M66570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-07T20:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to send the text command from vb.net 2005 to AutoCad 2008</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644864#M66571</link>
      <description>Hi Tony...&lt;BR /&gt;
&lt;BR /&gt;
I didn`t get what you want me to do from your question "Can you cite the source of the presentation?". &lt;BR /&gt;
I explained that it is my first step in using ObjectARX libraries through VB.Net code.&lt;BR /&gt;
 &lt;BR /&gt;
I count in your assistance in order to undertsand some issues regarding those libraries.&lt;BR /&gt;
&lt;BR /&gt;
So, Can you show me a Vb.net example about the function SendStringToExecute.&lt;BR /&gt;
&lt;BR /&gt;
Thank you.</description>
      <pubDate>Mon, 08 Mar 2010 12:45:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644864#M66571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-08T12:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to send the text command from vb.net 2005 to AutoCad 2008</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644865#M66572</link>
      <description>There may be cases where using "SendStringToExecute()" makes sense, but &lt;BR /&gt;
since you are "new to programming...", it is definitely not good way to try &lt;BR /&gt;
out Acad .NET API. You should avoid the temptation of doing programming as &lt;BR /&gt;
if you are just issuing Acad built-in commands (running script file *.scr &lt;BR /&gt;
would be a lot easier for that). SendStringToExecute() is rather advanced &lt;BR /&gt;
topic.&lt;BR /&gt;
&lt;BR /&gt;
For your question of creating a text in drawing, there is .NET API &lt;BR /&gt;
object/method to create text (DBText/MText).&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"dawoodeg" wrote in message news:6350149@discussion.autodesk.com...&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
I`m v.new to programming vb.net 2005 with AutoCAD 2008.&lt;BR /&gt;
I just saw a presentation about how to send commands through &lt;BR /&gt;
SendStringToExecute method.&lt;BR /&gt;
My code is like that:&lt;BR /&gt;
&lt;I&gt;Imports System&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports System.IO&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports System.Collections.Generic&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.Runtime&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.ApplicationServices&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.Geometry&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.DatabaseServices&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports Autodesk.AutoCAD.EditorInput&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;Imports AcadApp = Autodesk.AutoCAD.ApplicationServices.Application&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;Public Class DGCommand&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
    &lt;I&gt;&lt;COMMANDMETHOD&gt; _&lt;/COMMANDMETHOD&gt;&lt;/I&gt;&lt;BR /&gt;
 &lt;I&gt;Public Sub Asdkcmd1()&lt;/I&gt;&lt;BR /&gt;
        &lt;I&gt;Dim acDoc As Document = &lt;BR /&gt;
AcadApp.DocumentManager.MdiActiveDocument&lt;/I&gt;&lt;BR /&gt;
        &lt;I&gt;acDoc.SendStringToExecute("._text '(10.0 10.0 0.0) 5 0 &lt;BR /&gt;
TestArcGIS", False, False, False)&lt;/I&gt;&lt;BR /&gt;
        &lt;I&gt;acDoc.SendStringToExecute("(\n)", False, False, False)&lt;/I&gt;&lt;BR /&gt;
    &lt;I&gt;End Sub&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;End Class&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
This script code &lt;I&gt;("._text '(10.0 10.0 0.0) 5 0 TestArcGIS", False, False, &lt;BR /&gt;
False)&lt;/I&gt; is not correct.&lt;BR /&gt;
Can anyone help me with this easy task.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Mon, 08 Mar 2010 13:42:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644865#M66572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-08T13:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to send the text command from vb.net 2005 to AutoCad 2008</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644866#M66573</link>
      <description>Where did you get the sample code from?&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&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;DAWOODEG&gt; wrote in message news:6350420@discussion.autodesk.com...&lt;BR /&gt;
Hi Tony...&lt;BR /&gt;
&lt;BR /&gt;
I didn`t get what you want me to do from your question "Can you cite the source&lt;BR /&gt;
of the presentation?".&lt;BR /&gt;
I explained that it is my first step in using ObjectARX libraries through VB.Net&lt;BR /&gt;
code.&lt;BR /&gt;
&lt;BR /&gt;
I count in your assistance in order to undertsand some issues regarding those&lt;BR /&gt;
libraries.&lt;BR /&gt;
&lt;BR /&gt;
So, Can you show me a Vb.net example about the function SendStringToExecute.&lt;BR /&gt;
&lt;BR /&gt;
Thank you.&lt;/DAWOODEG&gt;</description>
      <pubDate>Mon, 08 Mar 2010 16:06:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644866#M66573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-08T16:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to send the text command from vb.net 2005 to AutoCad 2008</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644867#M66574</link>
      <description>Greetings,&lt;BR /&gt;
&lt;BR /&gt;
Mr. Norman... Please note that I have 2 years experience as a GIS Developer and I want to create a tool that add attributes like those of GIS features to CAD features and let the Cad user assign data to these attributes through an interface.&lt;BR /&gt;
&lt;BR /&gt;
Mr. Tony...Upon your request, the source of the sample code. I got it from the DS09_TS_83_AutoCAD.wmv demo.&lt;BR /&gt;
&lt;BR /&gt;
My question was to find the alternate code in vb.net of the following line of code:&lt;BR /&gt;
acDoc.SendStringToExecute("command \"_text\" '(10.0 10.0 0.0) 200 0 \"Hello, World\")",false, false, false);&lt;BR /&gt;
&lt;BR /&gt;
Thank you a lot guys...</description>
      <pubDate>Tue, 09 Mar 2010 07:15:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644867#M66574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-09T07:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to send the text command from vb.net 2005 to AutoCad 2008</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644868#M66575</link>
      <description>A google search of that demo only turns up this post. Where did that demo come from?</description>
      <pubDate>Tue, 09 Mar 2010 10:29:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-send-the-text-command-from-vb-net-2005-to-autocad-2008/m-p/2644868#M66575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-09T10:29:31Z</dc:date>
    </item>
  </channel>
</rss>

