<?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 ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514423#M17405</link>
    <description>Yes, but without the down arrow - it shows the option list already open, as for the PEDIT command.&lt;BR /&gt;
If cadmeup is right and there is no API, then either we cook our own, as he suggested, or we stay hungry.:)&lt;BR /&gt;
&amp;gt;,,using yhe right syntax ...&lt;BR /&gt;
Is there a syntax to cause the on-screen options list?&lt;BR /&gt;
[code]

acedInitGet(RSG_OTHER, _T("Create Default"));

  ss = acedEntSel(_T("\nSelect an Object/Create new/Default&amp;lt;D&amp;gt;: "), ename, pickpt);

[/code]&lt;BR /&gt;
As it is, the options list shows on-screen but in a single line, just as it would on the command line.&lt;BR /&gt;
Thanks&lt;BR /&gt;
alex</description>
    <pubDate>Mon, 29 Jun 2009 15:59:58 GMT</pubDate>
    <dc:creator>alex_b</dc:creator>
    <dc:date>2009-06-29T15:59:58Z</dc:date>
    <item>
      <title>Dynamic input</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514417#M17399</link>
      <description>&lt;P&gt;
Hi&lt;BR /&gt;
How would I go to have my command-line prompts display on screen (according to the DYNMODE setting)?&lt;BR /&gt;
Thanks&lt;BR /&gt;
alex
&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2009 14:20:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514417#M17399</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-06-28T14:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514418#M17400</link>
      <description>Anybody?&lt;BR /&gt;
Is it exposed at all in the API?&lt;BR /&gt;
Thanks&lt;BR /&gt;
alex</description>
      <pubDate>Mon, 29 Jun 2009 12:06:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514418#M17400</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-06-29T12:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514419#M17401</link>
      <description>This will set a value for the 'DYNMODE' system variable:&lt;BR /&gt;
&lt;BR /&gt;
struct resbuf rb;&lt;BR /&gt;
rb.restype = RTSHORT; &lt;BR /&gt;
rb.resval.rint = 3;&lt;BR /&gt;
if (acedSetVar(_T("DYNMODE"), &amp;amp;rb) != RTNORM) &lt;BR /&gt;
return;&lt;BR /&gt;
&lt;BR /&gt;
The ARX Developer's guide shows how to use acedSetVar &amp;amp; acedGetVar in code. Look under the heading 'System Variables'.</description>
      <pubDate>Mon, 29 Jun 2009 12:23:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514419#M17401</guid>
      <dc:creator>cadMeUp</dc:creator>
      <dc:date>2009-06-29T12:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514420#M17402</link>
      <description>Thanks for answering.&lt;BR /&gt;
I meant to have the prompts in my custom app show on-screen with &lt;U&gt;each option on a separate line&lt;/U&gt;.&lt;BR /&gt;
alex</description>
      <pubDate>Mon, 29 Jun 2009 12:46:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514420#M17402</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-06-29T12:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514421#M17403</link>
      <description>Sounds like something you could possibly set within the properties manager while your custom app/command is running?&lt;BR /&gt;
If so, and maybe this could be another method of implementing what you are thinking, you could look into using COM and command interaction with the properties manager. I know the ARX Developer's guide shows how to implement it and I know there is at least one sample project in the ARX samples that shows how to do that: 'AsdkSquareWrapper_dg'. I'm sure there are other samples in there though, another sample that shows this is the 'polysamp' sample project.&lt;BR /&gt;
&lt;BR /&gt;
Another possible way would be to create a modeless dialog/borderless window that is setup to appear when your app's command runs and reflects the interaction you want. To me, with dynamic input, it looks like AutoCAD is createing these modeless windows that are just text boxes to use for input. The windows move and adjust their values when the mouse moves, and allow you to enter values.&lt;BR /&gt;
&lt;BR /&gt;
Anyway, I don't think there is anything that is provided by the API that provides direct support with dynamic input interaction other than property manager command interaction.</description>
      <pubDate>Mon, 29 Jun 2009 13:46:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514421#M17403</guid>
      <dc:creator>cadMeUp</dc:creator>
      <dc:date>2009-06-29T13:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514422#M17404</link>
      <description>do you mean like when you run the pline command with dyn switched on, and it says 'specify next point or' and there's a down arrow which drops down the available keyword options, one per line?&lt;BR /&gt;
&lt;BR /&gt;
that should work for you automatically provided you've set your keywords right, and you're using the right syntax in your acedGet... function.&lt;BR /&gt;
&lt;BR /&gt;
can you post your code for the bit when you're waiting for input from the user?</description>
      <pubDate>Mon, 29 Jun 2009 14:13:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514422#M17404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-29T14:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514423#M17405</link>
      <description>Yes, but without the down arrow - it shows the option list already open, as for the PEDIT command.&lt;BR /&gt;
If cadmeup is right and there is no API, then either we cook our own, as he suggested, or we stay hungry.:)&lt;BR /&gt;
&amp;gt;,,using yhe right syntax ...&lt;BR /&gt;
Is there a syntax to cause the on-screen options list?&lt;BR /&gt;
[code]

acedInitGet(RSG_OTHER, _T("Create Default"));

  ss = acedEntSel(_T("\nSelect an Object/Create new/Default&amp;lt;D&amp;gt;: "), ename, pickpt);

[/code]&lt;BR /&gt;
As it is, the options list shows on-screen but in a single line, just as it would on the command line.&lt;BR /&gt;
Thanks&lt;BR /&gt;
alex</description>
      <pubDate>Mon, 29 Jun 2009 15:59:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514423#M17405</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-06-29T15:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514424#M17406</link>
      <description>Sorry alex, I think I see what you are saying. So you want that options list to appear without having to press the Down arrow key to get it to appear? Seems like there would be a system variable that you could set to make that happen. I don't see an option or anything for that in the api though. It might be possible to send this keypress message, within your command routine at the appropriate time, to the AutoCAD frame window as a keypress event/message. AutoCAD must catch and implement a keypress message that drops that list down anyway. Maybe check out the 'CWnd::SendMessage' method.</description>
      <pubDate>Mon, 29 Jun 2009 16:45:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514424#M17406</guid>
      <dc:creator>cadMeUp</dc:creator>
      <dc:date>2009-06-29T16:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514425#M17407</link>
      <description>Using the posted code, I don't get any down arrow to press, all the options list is in one big line, so before I worry about sending messages to acad, I have to solve the multi-line options.&lt;BR /&gt;
Thanks&lt;BR /&gt;
alex</description>
      <pubDate>Mon, 29 Jun 2009 17:20:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514425#M17407</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-06-29T17:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514426#M17408</link>
      <description>OK if you go&lt;BR /&gt;
&lt;BR /&gt;
acedInitGet(RSG_OTHER, _T("Create Default"));&lt;BR /&gt;
ss = acedEntSel (_T("\nSelect an object or [Create/Default]: "), ename, pickpt);&lt;BR /&gt;
&lt;BR /&gt;
I think that should at least make it behave like a generic AutoCAD command, with the down arrow etc.  I'm no expert but I think it spots the [ and ] and works out the keywords, even though you already specify them in acedInitGet.&lt;BR /&gt;
&lt;BR /&gt;
As for showing the keyword list without having to press the down arrow, I've never done that before, I think thats maybe something you would have to do yourself from scratch?</description>
      <pubDate>Mon, 29 Jun 2009 18:43:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514426#M17408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-29T18:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514427#M17409</link>
      <description>Hi d4873,&lt;BR /&gt;
I played with it for a while and I think I got it now.&lt;BR /&gt;
To summarize, and for the benefit of others, the tooltip prompt behaviour inside OARX-defined commands is just like the native acad commands' (and of course according to the dyn settings in force at the time):&lt;BR /&gt;
1. If one of the command options is to pick something (like in acedEntSel) you get the tooltip prompt for entering coordinates, with the other options hidden behind the down-arrow.&lt;BR /&gt;
2. For other cases (like acedGetKword), you get the entire options list, fully open.&lt;BR /&gt;
The syntax is like you posted: slash-separated options-list inside square brackets, with the default option following inside angle brackets.&lt;BR /&gt;
The way to programmatically open the down-arrow, as mentioned in previous posts, has probably no importance now.&lt;BR /&gt;
Thanks&lt;BR /&gt;
alex</description>
      <pubDate>Tue, 30 Jun 2009 13:50:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dynamic-input/m-p/2514427#M17409</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-06-30T13:50:36Z</dc:date>
    </item>
  </channel>
</rss>

