<?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: Dynamic Input in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339776#M84859</link>
    <description>Hi Albert,&lt;BR /&gt;
i will look at it, but isn't it a little bit confusing that Autodesk makes a new dynamic input and says that you don't need the commandline, and on the other side it is just possible to write something in the commandline and not at the cursor with .NET!?!&lt;BR /&gt;
&lt;BR /&gt;
Roland</description>
    <pubDate>Wed, 01 Jun 2005 06:36:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-06-01T06:36:19Z</dc:date>
    <item>
      <title>Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339772#M84855</link>
      <description>1. Is it possible to bring some text to the curser with c# (like with the command distance), which will stay there till the cursor moves?&lt;BR /&gt;
   2. Is it possible to insert an errorsymbol at the cursor like it does the editor if you input the wrong thing?</description>
      <pubDate>Mon, 30 May 2005 09:12:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339772#M84855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-30T09:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339773#M84856</link>
      <description>Can you post some screen mock-up of what you are trying to do. I'm having a &lt;BR /&gt;
hard time to visualize this. Also look into the Editor.PointMonitor or &lt;BR /&gt;
Editor.PointFilter event: they allow you to add a tooltip to the cursor.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;BR /&gt;
&lt;ROLANDF&gt; wrote in message news:4859881@discussion.autodesk.com...&lt;BR /&gt;
1. Is it possible to bring some text to the curser with c# (like with the &lt;BR /&gt;
command distance), which will stay there till the cursor moves?&lt;BR /&gt;
   2. Is it possible to insert an errorsymbol at the cursor like it does the &lt;BR /&gt;
editor if you input the wrong thing?&lt;/ROLANDF&gt;</description>
      <pubDate>Mon, 30 May 2005 20:32:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339773#M84856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-30T20:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339774#M84857</link>
      <description>I attached an image which is showing what i want to do.&lt;BR /&gt;
e.g. i want to set some values, afterwords i want to show them like acad soes with command distance.&lt;BR /&gt;
&lt;BR /&gt;
Maybe  .PointMonitor is the right way to do this, but how?&lt;BR /&gt;
&lt;BR /&gt;
Roland</description>
      <pubDate>Tue, 31 May 2005 06:24:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339774#M84857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-31T06:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339775#M84858</link>
      <description>Look at the AppendToolTipText method. It won't exactly work like the dist &lt;BR /&gt;
command but somewhat similar.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;ROLANDF&gt; wrote in message news:4860283@discussion.autodesk.com...&lt;BR /&gt;
I attached an image which is showing what i want to do.&lt;BR /&gt;
e.g. i want to set some values, afterwords i want to show them like acad &lt;BR /&gt;
soes with command distance.&lt;BR /&gt;
&lt;BR /&gt;
Maybe  .PointMonitor is the right way to do this, but how?&lt;BR /&gt;
&lt;BR /&gt;
Roland&lt;/ROLANDF&gt;</description>
      <pubDate>Wed, 01 Jun 2005 02:19:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339775#M84858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-01T02:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339776#M84859</link>
      <description>Hi Albert,&lt;BR /&gt;
i will look at it, but isn't it a little bit confusing that Autodesk makes a new dynamic input and says that you don't need the commandline, and on the other side it is just possible to write something in the commandline and not at the cursor with .NET!?!&lt;BR /&gt;
&lt;BR /&gt;
Roland</description>
      <pubDate>Wed, 01 Jun 2005 06:36:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339776#M84859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-01T06:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339777#M84860</link>
      <description>OK, now i have to say that i have no idea how to write a text e.g. "Hello World!" with AppendToolTipText to the cursor with following code?&lt;BR /&gt;
&lt;BR /&gt;
[code]#region Using directives&lt;BR /&gt;
&lt;BR /&gt;
using System;&lt;BR /&gt;
using System.Collections.Generic;&lt;BR /&gt;
using System.Text;&lt;BR /&gt;
&lt;BR /&gt;
using Autodesk.AutoCAD.EditorInput;&lt;BR /&gt;
using Autodesk.AutoCAD.ApplicationServices;&lt;BR /&gt;
&lt;BR /&gt;
#endregion&lt;BR /&gt;
&lt;BR /&gt;
namespace RSNNAcadApp.Test&lt;BR /&gt;
{&lt;BR /&gt;
    public class TestEditor&lt;BR /&gt;
    {&lt;BR /&gt;
        public TestEditor()&lt;BR /&gt;
        {&lt;BR /&gt;
            Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;&lt;BR /&gt;
            string TestString = "Hello World!";&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
        }&lt;BR /&gt;
    }&lt;BR /&gt;
}[/code]&lt;BR /&gt;
&lt;BR /&gt;
Roland</description>
      <pubDate>Wed, 01 Jun 2005 15:21:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339777#M84860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-01T15:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339778#M84861</link>
      <description>Ok. I looked at this a bit more and there really isn't any way to accomplish &lt;BR /&gt;
what you want using supported, documented APIs. There's an undocumented API &lt;BR /&gt;
that you can use if you are so inclined. Please see below:&lt;BR /&gt;
#region Using directives&lt;BR /&gt;
&lt;BR /&gt;
using System;&lt;BR /&gt;
using System.Text;&lt;BR /&gt;
&lt;BR /&gt;
using Autodesk.AutoCAD.Runtime;&lt;BR /&gt;
using Autodesk.AutoCAD.ApplicationServices;&lt;BR /&gt;
using Autodesk.AutoCAD.EditorInput;&lt;BR /&gt;
using Autodesk.AutoCAD.DatabaseServices;&lt;BR /&gt;
&lt;BR /&gt;
using System.Threading;&lt;BR /&gt;
using System.Globalization;&lt;BR /&gt;
using System.Runtime.InteropServices;&lt;BR /&gt;
&lt;BR /&gt;
#endregion&lt;BR /&gt;
&lt;BR /&gt;
namespace RSNNAcadApp.Test&lt;BR /&gt;
{&lt;BR /&gt;
    public class Test&lt;BR /&gt;
    {&lt;BR /&gt;
        //this is an undocumented api exported from acad.exe. Use it at your &lt;BR /&gt;
own risk.&lt;BR /&gt;
        //&lt;BR /&gt;
        // Setting this flag tells AutoCAD to display the last string output &lt;BR /&gt;
to the command line&lt;BR /&gt;
        //in the Dynamic Input prompt window (one time only.)&lt;BR /&gt;
        [DllImport("acad.exe", &lt;BR /&gt;
EntryPoint="?acedSetDynInputDisplayMessage@@YA_N_N@Z")]&lt;BR /&gt;
        private static extern bool acedSetDynInputDisplayMessage(bool &lt;BR /&gt;
displayMessageOnce);&lt;BR /&gt;
&lt;BR /&gt;
        private double m_dist; //last distance chosen (per-document)&lt;BR /&gt;
        private bool m_firstTime = true; //first invocation of "test"? &lt;BR /&gt;
(per-document)&lt;BR /&gt;
        //use a non-static command method so the enclosing class (Test) will &lt;BR /&gt;
be instantiated&lt;BR /&gt;
        //for each document&lt;BR /&gt;
        [CommandMethod("test")]&lt;BR /&gt;
        public void DoIt()&lt;BR /&gt;
        {&lt;BR /&gt;
            Editor ed = &lt;BR /&gt;
Application.DocumentManager.MdiActiveDocument.Editor;&lt;BR /&gt;
            PromptDistanceOptions opt1 = new PromptDistanceOptions("Abstand &lt;BR /&gt;
zeigen");&lt;BR /&gt;
&lt;BR /&gt;
            opt1.AllowNegative = false;&lt;BR /&gt;
            opt1.AllowZero = false;&lt;BR /&gt;
            opt1.AllowNone = false;&lt;BR /&gt;
            opt1.UseDashedLine = true;&lt;BR /&gt;
            if (!m_firstTime)&lt;BR /&gt;
                opt1.DefaultValue = m_dist;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
            PromptDoubleResult res = ed.GetDistance(opt1);&lt;BR /&gt;
&lt;BR /&gt;
            if (res.Status == PromptStatus.OK)&lt;BR /&gt;
            {&lt;BR /&gt;
                m_dist = res.Value;&lt;BR /&gt;
                ed.WriteMessage(String.Format("Abstand = {0}", &lt;BR /&gt;
m_dist.ToString()));&lt;BR /&gt;
                acedSetDynInputDisplayMessage(true);&lt;BR /&gt;
            }&lt;BR /&gt;
            m_firstTime = false;&lt;BR /&gt;
        }&lt;BR /&gt;
        void MyPointFilter(object sender, PointFilterEventArgs e)&lt;BR /&gt;
        {&lt;BR /&gt;
            e.Result.ToolTipText = String.Format("Abstand = {0}", &lt;BR /&gt;
m_dist.ToString());&lt;BR /&gt;
        }&lt;BR /&gt;
    }&lt;BR /&gt;
}&lt;BR /&gt;
&lt;ROLANDF&gt; wrote in message news:4861461@discussion.autodesk.com...&lt;BR /&gt;
Hi Albert,&lt;BR /&gt;
i will look at it, but isn't it a little bit confusing that Autodesk makes a &lt;BR /&gt;
new dynamic input and says that you don't need the commandline, and on the &lt;BR /&gt;
other side it is just possible to write something in the commandline and not &lt;BR /&gt;
at the cursor with .NET!?!&lt;BR /&gt;
&lt;BR /&gt;
Roland&lt;/ROLANDF&gt;</description>
      <pubDate>Wed, 01 Jun 2005 22:19:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339778#M84861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-01T22:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339779#M84862</link>
      <description>That works great!!!&lt;BR /&gt;
I will use it as long as  it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
Do you know if there will be a chance to put this in the .NET Wrappers?&lt;BR /&gt;
Or is it planed to put something like this in the Managed Wrapper Classes of the next Acad-Version, or better, next Service Pack?

Message was edited by: RolandF</description>
      <pubDate>Thu, 02 Jun 2005 06:33:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339779#M84862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-02T06:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339780#M84863</link>
      <description>Note that this C++ API is undocumented and unsupported. Once this API &lt;BR /&gt;
becomes supported on the C++ API  I'm pretty sure we will expose it one way &lt;BR /&gt;
or another in the .NET API too.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;ROLANDF&gt; wrote in message news:4862897@discussion.autodesk.com...&lt;BR /&gt;
That works great!!!&lt;BR /&gt;
I will use it as long as  it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
Do you know if there will be a chance to put this in the .NET Wrappers?&lt;BR /&gt;
Or is it planed to put something like this in the Managed Wrapper Classes of &lt;BR /&gt;
the next Acad-Version, or better, next Service Pack?&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: RolandF&lt;/ROLANDF&gt;</description>
      <pubDate>Thu, 02 Jun 2005 15:11:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339780#M84863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-02T15:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339781#M84864</link>
      <description>Thank you again.&lt;BR /&gt;
&lt;BR /&gt;
Roland</description>
      <pubDate>Thu, 02 Jun 2005 18:40:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/1339781#M84864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-02T18:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/3390781#M84865</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;PRE&gt;[DllImport("acad.exe", EntryPoint="?acedSetDynInputDisplayMessage@@YA_N_N@Z")]
private static extern bool acedSetDynInputDisplayMessage(bool
displayMessageOnce);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;the code Albert showed us doesn't work in AutoCAD 2013 anymore. Does anyone know if there is something new?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 11:51:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/3390781#M84865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-29T11:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/3390801#M84866</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;the code Albert showed us doesn't work in AutoCAD 2013 anymore. Does anyone know if there is something new?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;[DllImport(&lt;STRONG&gt;&lt;FONT color="#000080"&gt;"accore.dll"&lt;/FONT&gt;&lt;/STRONG&gt;, EntryPoint="?acedSetDynInputDisplayMessage@@YA_N_N@Z")]
private static extern bool acedSetDynInputDisplayMessage(bool displayMessageOnce);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 12:06:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/3390801#M84866</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-03-29T12:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Input</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/3395375#M84867</link>
      <description>&lt;P&gt;Thank you again &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2012 14:45:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-input/m-p/3395375#M84867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-02T14:45:07Z</dc:date>
    </item>
  </channel>
</rss>

