<?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 choose position of getstring edit box in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2791630#M63624</link>
    <description>&lt;P&gt;Sorry I do not have&amp;nbsp;VS installed on this computer or the ObjectARX download so&amp;nbsp;I am going off of memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought the GetString method returned the string from the command prompt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What edit box are you talking about?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2010 03:42:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-10-08T03:42:07Z</dc:date>
    <item>
      <title>How to choose position of getstring edit box</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2789700#M63620</link>
      <description>&lt;P&gt;&lt;FONT size="3" face="times new roman,times"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="times new roman,times"&gt;With the following code using&amp;nbsp;GETSTRING I&amp;nbsp;can show the user&amp;nbsp;an input box for text entry.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;The question is: How can I decide which position in the drawing this text edit box appears ? I would like to be able to pass a geometry.point3d as a parameter pbut I do not find where to pass thisparameter.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;Thanks for your help.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="times new roman,times"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="times new roman,times"&gt;myDWG = ApplicationServices.Application.DocumentManager.MdiActiveDocument&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="times new roman,times"&gt;myDB = myDWG.Database&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="times new roman,times"&gt;myEd = myDWG.Editor&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="times new roman,times"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="times new roman,times"&gt;PSO.AllowSpaces =&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;FONT size="3"&gt;&lt;FONT color="#a31515"&gt;&lt;FONT color="#a31515"&gt;"EnterStringA"&lt;/FONT&gt;&lt;/FONT&gt;)&amp;gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Public&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt; EnterStringA()&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt; myDB &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt; DatabaseServices.Database&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt; myDWG &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt; ApplicationServices.Document&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt; myEd &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt; EditorInput.Editor&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt; myPSR &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt; EditorInput.PromptResult&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt; PSO &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;New&lt;/FONT&gt;&lt;/FONT&gt; EditorInput.PromptStringOptions(vbCrLf &amp;amp; vbTab &amp;amp; &lt;FONT color="#a31515"&gt;&lt;FONT color="#a31515"&gt;"Enter MText text"&lt;/FONT&gt;&lt;/FONT&gt;)&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;True&lt;/FONT&gt;&lt;/FONT&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="times new roman,times"&gt;myPSR = myEd.GetString(PSO)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="times new roman,times"&gt;MsgBox(myPSR.StringResult)&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2010 16:45:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2789700#M63620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-06T16:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose position of getstring edit box</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2789738#M63621</link>
      <description>&lt;P&gt;Take a look at this page&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" rel="nofollow" href="http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html?url=WS1a9193826455f5ff2566ffd511ff6f8c7ca-4875.htm,topicNumber=d0e51"&gt;http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html?url=WS1a9193826455f5ff2566ffd511ff6f8c7ca-4875.htm,topicNumber=d0e51&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;~'J'~&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2010 16:57:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2789738#M63621</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2010-10-06T16:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose position of getstring edit box</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2789812#M63622</link>
      <description>&lt;P&gt;Sorry but I find no information in the link you provide&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2010 17:37:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2789812#M63622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-06T17:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose position of getstring edit box</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2791494#M63623</link>
      <description>&lt;P&gt;Please, anybody knows how to place the edit box of getstring in a specific point ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jose Maria&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2010 22:01:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2791494#M63623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-07T22:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose position of getstring edit box</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2791630#M63624</link>
      <description>&lt;P&gt;Sorry I do not have&amp;nbsp;VS installed on this computer or the ObjectARX download so&amp;nbsp;I am going off of memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought the GetString method returned the string from the command prompt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What edit box are you talking about?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 03:42:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2791630#M63624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-08T03:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose position of getstring edit box</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2791648#M63625</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Do you mean the input box&amp;nbsp; when dynamic input is active&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;ie the prompt box that opens at the cursor location ??&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 05:06:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2791648#M63625</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2010-10-08T05:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose position of getstring edit box</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2791690#M63626</link>
      <description>&lt;P&gt;&amp;gt;What edit box are you talking about?&lt;BR /&gt;&amp;gt;Do you mean the input box &amp;nbsp;when dynamic input is active&amp;gt;ie the prompt box that opens at the cursor location ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes the inbut box of getstring opens at cursor location. So I suppose that if I change cursor location I will be changing the position of this input box, which is what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is I don't know how to choose cursor location. So the question could be rewriten:&amp;nbsp;How can I change cursor location ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To better explain what input box I am referring to, you can copy and paste the following routine which asks for a string and then it shows the string in a message box:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Jose Maria&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.EditorInput 'añadido
Imports Autodesk.AutoCAD.Windows 'añadido
Imports Autodesk.AutoCAD.ApplicationServices


    &amp;lt;CommandMethod("EnterStringA")&amp;gt; Public Sub EnterStringA()
        Dim myDB As DatabaseServices.Database
        Dim myDWG As ApplicationServices.Document
        Dim myEd As EditorInput.Editor
        Dim myPSR As EditorInput.PromptResult
        myDWG = ApplicationServices.Application.DocumentManager.MdiActiveDocument
        myDB = myDWG.Database
        myEd = myDWG.Editor
        Dim PSO As New EditorInput.PromptStringOptions("Enter String")
        PSO.AllowSpaces = True
        myPSR = myEd.GetString(PSO)
        MsgBox(myPSR.StringResult)
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 06:34:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2791690#M63626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-08T06:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose position of getstring edit box</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2791712#M63627</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Your code will NOTshow an 'input box' if the user does not have dynamic input toggled on.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;If you want to use an input box your best solution is to write one using the Forms namespace classes.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 07:37:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2791712#M63627</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2010-10-08T07:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to choose position of getstring edit box</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2792012#M63628</link>
      <description>&lt;P&gt;In response to:&lt;/P&gt;&lt;P&gt;&amp;gt; Your code will NOTshow an 'input box' if the user does not have dynamic input toggled on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I suppose the user has dynamic input on because when I run the command&amp;nbsp;EnterStringA&amp;nbsp;I get an input box requesting a string. You can try that yourself by copying and pasting the code below. The only problem is that I don't know how to choose the position of this input box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given the fact that the input box seems to appear where the cursor was, maybe the solution is to change the cursor position. The problem is I don't know how to change cursor position either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.EditorInput 'añadido
Imports Autodesk.AutoCAD.Windows 'añadido
Imports Autodesk.AutoCAD.ApplicationServices


    &amp;lt;CommandMethod("EnterStringA")&amp;gt; Public Sub EnterStringA()
        Dim myDB As DatabaseServices.Database
        Dim myDWG As ApplicationServices.Document
        Dim myEd As EditorInput.Editor
        Dim myPSR As EditorInput.PromptResult
        myDWG = ApplicationServices.Application.DocumentManager.MdiActiveDocument
        myDB = myDWG.Database
        myEd = myDWG.Editor
        Dim PSO As New EditorInput.PromptStringOptions("Enter String")
        PSO.AllowSpaces = True
        myPSR = myEd.GetString(PSO)
        MsgBox(myPSR.StringResult)
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 14:36:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-choose-position-of-getstring-edit-box/m-p/2792012#M63628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-08T14:36:44Z</dc:date>
    </item>
  </channel>
</rss>

