<?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 indicate position of getstring ? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441317#M55828</link>
    <description>&lt;P&gt;You may also be able to "fake it" by placing a temporary text object on screen where you want it; have the user enter the information in the text object; get the contents of the string (and error check!); move the text object to the middle of the&amp;nbsp;next segment; and delete the text object when finished.&amp;nbsp; You might also consider placing multiple text objects (with associated leader&amp;nbsp;lines&amp;nbsp;if there isn't room) then reading them all in a single go before deleting the lot of them.&lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2012 18:35:50 GMT</pubDate>
    <dc:creator>dgorsman</dc:creator>
    <dc:date>2012-05-02T18:35:50Z</dc:date>
    <item>
      <title>How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3439751#M55822</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;By&amp;nbsp;using GETSTRING I can show the user an input&amp;nbsp;field for text entry.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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 input field&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="3" face="Times New Roman"&gt;appears ? I would like to be able to pass a geometry.point3d as a parameter but I do not find where to pass this parameter.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;I show an example of getstring code:&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;using Autodesk.AutoCAD.ApplicationServices; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;using Autodesk.AutoCAD.EditorInput; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;using Autodesk.AutoCAD.Runtime;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;[CommandMethod("GetStringFromUser")] &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;public static void GetStringFromUser() &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;{&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;Document acDoc = Application.DocumentManager.MdiActiveDocument;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;PromptStringOptions pStrOpts = new PromptStringOptions("\nEnter your name: ");&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;pStrOpts.AllowSpaces = true;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;PromptResult pStrRes = acDoc.Editor.GetString(pStrOpts);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;Application.ShowAlertDialog("The name entered was: " +&amp;nbsp;pStrRes.StringResult);&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;﻿&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Times New Roman"&gt;﻿&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2012 20:50:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3439751#M55822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-01T20:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3439837#M55823</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the method GetString asks for some characters/a textstring. And that has nothing to do with coordinates on the drawing!&lt;/P&gt;&lt;P&gt;Imagine also that the user does not have &lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;DynamicInput (&amp;lt;F12&amp;gt;)&lt;/FONT&gt; active so the text to be typed in has to be typed in within the command-line-area (and there is no geomtry at all, so also no coordinates).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing you can do is to get the mouse ccords on screen and calculate them back to the coordiantes at your current space. That is possible as long as you are in any 2D-space, but if e.g. you are in modelspace and that shows a perspective view you won't get coordinates without any objectsnap (and while GetString is active you don't have an objectsnap active).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be you can give us some details? If it's more clear to us why you need coordinates for a GetString function that may help to find an alternative!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2012 21:35:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3439837#M55823</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-05-01T21:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3440983#M55824</link>
      <description>&lt;P&gt;I would like to show an input field for each segment of a polyline,&amp;nbsp;requesting the length of each segment of&amp;nbsp;the polyline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The input field should be placed at the middle point of each segment of the polyline, to make clear what length is being requested. As the input field should be placed at the middle point of each segment I need to know how to indicate this in the getstring function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously the polyline is not at scale. If it was at scale it would be enough to read the length for each segment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The drawings will always be 2D, never 3D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2012 15:53:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3440983#M55824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-02T15:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441051#M55825</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this case, if I understand that correct, you don't want "to get" coordinates from GetString, your want "to place the textinput" to a specific position (to the midpoint of a polyline-segment?&lt;/P&gt;&lt;P&gt;In that case you can't work with GetString as that asks for a textvalue either at the position where your cursor currently is positioned or within the command-line. Instead I would create a small form (without border, just one TextBox) and show that at the position of the midpoint of your polylinesegment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck, - alfred -&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2012 16:19:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441051#M55825</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-05-02T16:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441105#M55826</link>
      <description>&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's right, I want "to place the textinput"&amp;nbsp;in a specific position .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose the solution you propose is to create a very small form only containing an input field and call it like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myForm = new InputFieldForm1();&lt;/P&gt;&lt;P&gt;nAnswer = Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(myForm);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I choose the position at which this form will be shown, using autocad&amp;nbsp;coordinates&amp;nbsp;?&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>Wed, 02 May 2012 16:39:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441105#M55826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-02T16:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441117#M55827</link>
      <description>&lt;P&gt;Or another possibility, if you say the getstring is placed at the cursor position, would be to change the cursos position before calling getstring.&lt;/P&gt;&lt;P&gt;Is it possible to change the cursor position programmatically ?&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2012 16:44:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441117#M55827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-02T16:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441317#M55828</link>
      <description>&lt;P&gt;You may also be able to "fake it" by placing a temporary text object on screen where you want it; have the user enter the information in the text object; get the contents of the string (and error check!); move the text object to the middle of the&amp;nbsp;next segment; and delete the text object when finished.&amp;nbsp; You might also consider placing multiple text objects (with associated leader&amp;nbsp;lines&amp;nbsp;if there isn't room) then reading them all in a single go before deleting the lot of them.&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2012 18:35:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441317#M55828</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2012-05-02T18:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441345#M55829</link>
      <description>&lt;P&gt;Yes I can place a text object, but how can make the content&amp;nbsp;automatically editable ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2012 18:48:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441345#M55829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-02T18:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441767#M55830</link>
      <description>&lt;P&gt;Here is 2 little examples of using text objects and depends on what year you are using.&lt;/P&gt;&lt;P&gt;Might need at least&amp;nbsp;2011 or 2012.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just basic and need a regular polyline with line segs and not arcs(you could have arcs but not for this simple example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both just itterate the polyline invoking the InplaceTextEditor at the MidPoint of the LineSegments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using InPlaceTextEditor you could do something like this but you probably would want to jump to the next segment when Enter is pressed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; [CommandMethod("EnterLengths")]
        public void EnterLengths()
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;
            Editor ed = doc.Editor;

            PromptEntityOptions peo = new PromptEntityOptions("\nSelect PolyLine");
            peo.SetRejectMessage("\nNot a PolyLine Select a PolyLine");
            peo.AddAllowedClass(typeof(Polyline), true);

            PromptEntityResult per = ed.GetEntity(peo);

            if (per.Status != PromptStatus.OK)
            {
                return;
            }

            using (Transaction trx = db.TransactionManager.StartTransaction())
            {

                Polyline pl = per.ObjectId.GetObject(OpenMode.ForRead) as Polyline;

                for (int i = 0; i &amp;lt; pl.NumberOfVertices; i++)
                {
                    if (pl.GetSegmentType(i) == SegmentType.Line)
                    {
                        LineSegment3d lineSeg = pl.GetLineSegmentAt(i);
                        using (MText mtxt = new MText())
                        {
                            mtxt.Contents = "";
                            mtxt.Location = lineSeg.MidPoint;
                            InplaceTextEditorSettings ipts = new InplaceTextEditorSettings();
                            ipts.SimpleMText = true;
                            ipts.TabSupported = false;                      
                            InplaceTextEditor.Invoke(mtxt, ipts);
                        }
                    }
                }
               
                trx.Commit();
            }


        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use text objects and you do not want them to have to press ctrl+enter to move to next&amp;nbsp; or if they left click outside the text editor to create another new text object then Mtext will not work unless you hack it even more by maybe watching for a new line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will still have the same problem using DBText unless it is database resident.&lt;/P&gt;&lt;P&gt;So you could hack your way through by creating a empty DbText object then opening it in the InPlaceTextEditor and erasing it or not if wanted it to stay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        [CommandMethod("EnterLengthsDbtxt")]
        public void EnterLengthsDbtxt()
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;
            Editor ed = doc.Editor;

            PromptEntityOptions peo = new PromptEntityOptions("\nSelect PolyLine");
            peo.SetRejectMessage("\nNot a PolyLine Select a PolyLine");
            peo.AddAllowedClass(typeof(Polyline), true);

            PromptEntityResult per = ed.GetEntity(peo);

            if (per.Status != PromptStatus.OK)
            {
                return;
            }
            
            using (Transaction trx = db.TransactionManager.StartTransaction())
            {
                BlockTableRecord btr = db.CurrentSpaceId.GetObject(OpenMode.ForWrite) as BlockTableRecord;
                Polyline pl = per.ObjectId.GetObject(OpenMode.ForRead) as Polyline;

                for (int i = 0; i &amp;lt; pl.NumberOfVertices; i++)
                {
                    if (pl.GetSegmentType(i) == SegmentType.Line)
                    {
                        LineSegment3d lineSeg = pl.GetLineSegmentAt(i);

                        DBText dbTxt = new DBText();
                        dbTxt.TextString = "";
                        dbTxt.Position = lineSeg.MidPoint;

                        btr.AppendEntity(dbTxt);
                        trx.AddNewlyCreatedDBObject(dbTxt, true);

                        InplaceTextEditorSettings ipts = new InplaceTextEditorSettings();
                        ipts.SimpleMText = true;
                        ipts.TabSupported = false;
                        ObjectId[] ids = new ObjectId[0];
                        InplaceTextEditor.Invoke(dbTxt, ref ids);

                        dbTxt.Erase();
                    }
                }

                trx.Commit();
            }


        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2012 00:22:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3441767#M55830</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2012-05-03T00:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3442079#M55831</link>
      <description>&lt;P&gt;Here is a little screencast showing the code here which is the same as above except it fills in text with existing length and selects all the text. Will post code at bottom.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://screencast.com/t/K6xQ0txwUSZ"&gt;http://screencast.com/t/K6xQ0txwUSZ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I wonder is how you will handle changing the lengths because changing the length of one segment or really moving the vertex(LineSegment properties are mostly read-only)&amp;nbsp;will change the length of the segment before and &amp;amp; after it or at least one of the other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        [CommandMethod("EnterLengthsDbtxt")]
        public void EnterLengthsDbtxt()
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;
            Editor ed = doc.Editor;

            PromptEntityOptions peo = new PromptEntityOptions("\nSelect PolyLine");
            peo.SetRejectMessage("\nNot a PolyLine Select a PolyLine");
            peo.AddAllowedClass(typeof(Polyline), true);

            PromptEntityResult per = ed.GetEntity(peo);

            if (per.Status != PromptStatus.OK)
            {
                return;
            }
            
            using (Transaction trx = db.TransactionManager.StartTransaction())
            {
                BlockTableRecord btr = db.CurrentSpaceId.GetObject(OpenMode.ForWrite) as BlockTableRecord;
                Polyline pl = per.ObjectId.GetObject(OpenMode.ForRead) as Polyline;

                for (int i = 0; i &amp;lt; pl.NumberOfVertices; i++)
                {
                    if (pl.GetSegmentType(i) == SegmentType.Line)
                    {
                        LineSegment3d lineSeg = pl.GetLineSegmentAt(i);

                        DBText dbTxt = new DBText();
                        dbTxt.TextString = lineSeg.Length.ToString();
                        dbTxt.Position = lineSeg.MidPoint;

                        btr.AppendEntity(dbTxt);
                        trx.AddNewlyCreatedDBObject(dbTxt, true);

                        InplaceTextEditorSettings ipts = new InplaceTextEditorSettings();                       
                        ipts.SimpleMText = true;
                        ipts.TabSupported = false;
                        ObjectId[] ids = new ObjectId[0];
                        InplaceTextEditor.Invoke(dbTxt, ref ids);
                        InplaceTextEditor.Current.SelectAll();

                        double length;
                        if ((!String.IsNullOrWhiteSpace(dbTxt.TextString)) &amp;amp;&amp;amp; Double.TryParse(dbTxt.TextString, out length))
                        {
                            //////
                            
                        }

                        dbTxt.Erase();
                    }
                }

                trx.Commit();
            }


        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2012 08:08:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3442079#M55831</guid>
      <dc:creator>jeffHGCE</dc:creator>
      <dc:date>2012-05-03T08:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3443307#M55832</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; how you will handle changing the lengths&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Just a short interrupt: have you looked into constraints?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2012 19:28:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3443307#M55832</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-05-03T19:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3443959#M55833</link>
      <description>&lt;P&gt;Thank you very much for your help to all who have answered. This was important for me and now I see solutions for my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying them and will go back to this thread to report on the results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of the solutions that have been proposed, what seems closer is inplacetexteditor&amp;nbsp;using dbtext instead of mtext, as in [CommandMethod("EnterLengthsDbtxt")] . This is because with dbtext you end edition by pressing enter, so it is simpler.&amp;nbsp;With mtext you have to press Ctrl-Enter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REGARDING THE SOLUTION WITH INPLACETEXTEDITOR ( [CommandMethod("EnterLengthsDbtxt")])&lt;/P&gt;&lt;P&gt;I would like&amp;nbsp;a&amp;nbsp;possibility of controlling the navigation keys: for instance when the user presses the up arrow key, the editing focus&amp;nbsp;should&amp;nbsp;go back to the previous segment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REGARDING THE SOLUTION WITH SMALL FORM&lt;/P&gt;&lt;P&gt;This solution was proposed earlier and it would be great since it would also work on older autocad versions. I have 2 difficulties in implementing it:&lt;/P&gt;&lt;P&gt;Problem 1) Manage the navigation keys: When the user presses enter, it should go to the form in the&amp;nbsp;next segment (without needing to press ok button), when the user presses the up arrow key, the editing focus should&amp;nbsp;go back to the&amp;nbsp;form in&amp;nbsp;previous segment.&lt;/P&gt;&lt;P&gt;Problem 2) How to convert from autocad coordinates to screen coordinates needed to position the small form&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REGARDING THE SOLUTION WITH GETSTRING&lt;/P&gt;&lt;P&gt;It seems the getstring input field appears at the cursor location, it would be enough to be able to change cursor location, but don't know if this is possible or how to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REGARDING THE PROPOSAL TO LOOK AT CONSTRAINTS:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; how you will handle changing the lengths&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Just a short interrupt: have you looked into constraints?&lt;/P&gt;&lt;P&gt;Sorry I don't know what constraints are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANKS FOR YOUR HELP, THIS IS IMPORTANT FOR ME.&lt;/P&gt;&lt;P&gt;JOSE MARIA ESPINOSA&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 06:18:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3443959#M55833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-04T06:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to indicate position of getstring ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3444221#M55834</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for getting coordiantes:&lt;/P&gt;&lt;P&gt;Within AutoCAD I think you know how to get the coords, for the screen you can use&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;System.Windows.Forms.Control.MousePosition&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;to know where you mouse is placed on your screen and so where you have to popup your form-object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 11:30:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-indicate-position-of-getstring/m-p/3444221#M55834</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-05-04T11:30:09Z</dc:date>
    </item>
  </channel>
</rss>

