<?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: in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319347#M36347</link>
    <description>alex,&lt;BR /&gt;
&lt;BR /&gt;
The problem is related to Modeless dialogs and AutoCAD drawing screen.&lt;BR /&gt;
My dialog is huge and I need to hide it before go to the drawing screen.&lt;BR /&gt;
If I send a command through a sendStringToExecute() function, that is the&lt;BR /&gt;
recommended method for modeless dialog calls, AutoCAD process the command&lt;BR /&gt;
but the dialog does not wait the end of process to get back.&lt;BR /&gt;
This way the dialog appear in front of AutoCAD screen even the command is&lt;BR /&gt;
not finished yet.&lt;BR /&gt;
&lt;BR /&gt;
Hope you understand now my situation...&lt;BR /&gt;
Regards,&lt;BR /&gt;
Fernando.&lt;BR /&gt;
&lt;BR /&gt;
"alex" &lt;ALEXB&gt; wrote in message&lt;BR /&gt;
news:CF98946EE24E760EBACB014F7DE101A3@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi,&lt;BR /&gt;
&amp;gt; As I understand, you need a general method for invoking each and every&lt;BR /&gt;
acad&lt;BR /&gt;
&amp;gt; command, so the need for acedCommand() or acedCmd() and the /PAUSE&lt;BR /&gt;
problem?&lt;BR /&gt;
&amp;gt; If so, can't help, sorry.&lt;BR /&gt;
&amp;gt; Else, for each command you want to implement, you can interactively&lt;BR /&gt;
acquire&lt;BR /&gt;
&amp;gt; the data using&lt;BR /&gt;
&amp;gt; acedGetxx() funcs (e.g. acedGetPoint()), acedGetReal() twice and&lt;BR /&gt;
&amp;gt; acedGetAngle() for INSERT),&lt;BR /&gt;
&amp;gt; thus dispensing with acedCommand() or acedCmd().&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Hope it helps,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; alex&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ALEXB&gt;</description>
    <pubDate>Wed, 07 May 2003 06:33:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-05-07T06:33:16Z</dc:date>
    <item>
      <title>User interaction withou acedCommand() or acedCmd()</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319343#M36343</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I need to call AutoCAD native commands from a Modeless dialog. I know that I&lt;BR /&gt;
can't use acedCommand() or acedCmd().&lt;BR /&gt;
&lt;BR /&gt;
Further the desired commands will also need user interaction like, for&lt;BR /&gt;
instance, INSERT command where I will need to PAUSE for user to select&lt;BR /&gt;
insertion point.&lt;BR /&gt;
&lt;BR /&gt;
The dialog must be Modeless because it has a huge tree control and I can't&lt;BR /&gt;
build it on every user command call.&lt;BR /&gt;
&lt;BR /&gt;
I have tried several options but the problem seems to be related with the&lt;BR /&gt;
PAUSE for user input (user interaction)...&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Fernando</description>
      <pubDate>Mon, 05 May 2003 05:05:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319343#M36343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-05-05T05:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: User interaction withou acedCommand() or acedCmd()</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319344#M36344</link>
      <description>I don't understand - what isn't working?  You say that the problem is&lt;BR /&gt;
related to the PAUSE - what problem is it?&lt;BR /&gt;
&lt;BR /&gt;
If you want to mimic the INSERT functionality, you should look into AcEdJig.&lt;BR /&gt;
The example that comes with the SDK should probably be enough to teach you&lt;BR /&gt;
how to use it...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-Rich&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Fernando Poinho Malard" &lt;FPMALARD&gt; wrote in message&lt;BR /&gt;
news:6B9AD4B620D7C047BBE3CA9C5AEA322F@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hello,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I need to call AutoCAD native commands from a Modeless dialog. I know that&lt;BR /&gt;
I&lt;BR /&gt;
&amp;gt; can't use acedCommand() or acedCmd().&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Further the desired commands will also need user interaction like, for&lt;BR /&gt;
&amp;gt; instance, INSERT command where I will need to PAUSE for user to select&lt;BR /&gt;
&amp;gt; insertion point.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The dialog must be Modeless because it has a huge tree control and I can't&lt;BR /&gt;
&amp;gt; build it on every user command call.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have tried several options but the problem seems to be related with the&lt;BR /&gt;
&amp;gt; PAUSE for user input (user interaction)...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Regards,&lt;BR /&gt;
&amp;gt; Fernando&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/FPMALARD&gt;</description>
      <pubDate>Mon, 05 May 2003 10:03:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319344#M36344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-05-05T10:03:01Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319345#M36345</link>
      <description>Justavian,&lt;BR /&gt;
&lt;BR /&gt;
The problem is not related only to INSERT command.&lt;BR /&gt;
The problem seems to be related to PAUSE because it requires user to be&lt;BR /&gt;
focused on AutoCAD drawing screen and consequently with every command that&lt;BR /&gt;
requires user interaction.&lt;BR /&gt;
&lt;BR /&gt;
Once acedCommand() and acedCmd() both does not work in this context I have&lt;BR /&gt;
to find another way to do that.&lt;BR /&gt;
&lt;BR /&gt;
One solution I have found shows a trick using ADS registered functions to&lt;BR /&gt;
interact with AutoCAD and when finished send a message to the modeless&lt;BR /&gt;
dialog but I don't like this trick once it will cause a lot of problems&lt;BR /&gt;
because my procedures are using a lot of information stored inside the&lt;BR /&gt;
dialog. So I can imagine a hell to pass and get information around.&lt;BR /&gt;
&lt;BR /&gt;
If I can manage this by a clean method from the dialog it would be nice...&lt;BR /&gt;
&lt;BR /&gt;
Any crazy tip would be nice...&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Fernando.&lt;BR /&gt;
&lt;BR /&gt;
"Justavian" &lt;RPRIDDY&gt; wrote in message&lt;BR /&gt;
news:993D031708B884323A452BE7100FB239@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I don't understand - what isn't working?  You say that the problem is&lt;BR /&gt;
&amp;gt; related to the PAUSE - what problem is it?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If you want to mimic the INSERT functionality, you should look into&lt;BR /&gt;
AcEdJig.&lt;BR /&gt;
&amp;gt; The example that comes with the SDK should probably be enough to teach you&lt;BR /&gt;
&amp;gt; how to use it...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; -Rich&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Fernando Poinho Malard" &lt;FPMALARD&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:6B9AD4B620D7C047BBE3CA9C5AEA322F@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Hello,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I need to call AutoCAD native commands from a Modeless dialog. I know&lt;BR /&gt;
that&lt;BR /&gt;
&amp;gt; I&lt;BR /&gt;
&amp;gt; &amp;gt; can't use acedCommand() or acedCmd().&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Further the desired commands will also need user interaction like, for&lt;BR /&gt;
&amp;gt; &amp;gt; instance, INSERT command where I will need to PAUSE for user to select&lt;BR /&gt;
&amp;gt; &amp;gt; insertion point.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; The dialog must be Modeless because it has a huge tree control and I&lt;BR /&gt;
can't&lt;BR /&gt;
&amp;gt; &amp;gt; build it on every user command call.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I have tried several options but the problem seems to be related with&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; &amp;gt; PAUSE for user input (user interaction)...&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Regards,&lt;BR /&gt;
&amp;gt; &amp;gt; Fernando&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/FPMALARD&gt;&lt;/RPRIDDY&gt;</description>
      <pubDate>Mon, 05 May 2003 10:10:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319345#M36345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-05-05T10:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: User interaction withou acedCommand() or acedCmd()</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319346#M36346</link>
      <description>Hi,&lt;BR /&gt;
As I understand, you need a general method for invoking each and every acad&lt;BR /&gt;
command, so the need for acedCommand() or acedCmd() and the /PAUSE problem?&lt;BR /&gt;
If so, can't help, sorry.&lt;BR /&gt;
Else, for each command you want to implement, you can interactively acquire&lt;BR /&gt;
the data using&lt;BR /&gt;
acedGetxx() funcs (e.g. acedGetPoint()), acedGetReal() twice and&lt;BR /&gt;
acedGetAngle() for INSERT),&lt;BR /&gt;
thus dispensing with acedCommand() or acedCmd().&lt;BR /&gt;
&lt;BR /&gt;
Hope it helps,&lt;BR /&gt;
&lt;BR /&gt;
alex</description>
      <pubDate>Tue, 06 May 2003 11:01:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319346#M36346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-05-06T11:01:37Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319347#M36347</link>
      <description>alex,&lt;BR /&gt;
&lt;BR /&gt;
The problem is related to Modeless dialogs and AutoCAD drawing screen.&lt;BR /&gt;
My dialog is huge and I need to hide it before go to the drawing screen.&lt;BR /&gt;
If I send a command through a sendStringToExecute() function, that is the&lt;BR /&gt;
recommended method for modeless dialog calls, AutoCAD process the command&lt;BR /&gt;
but the dialog does not wait the end of process to get back.&lt;BR /&gt;
This way the dialog appear in front of AutoCAD screen even the command is&lt;BR /&gt;
not finished yet.&lt;BR /&gt;
&lt;BR /&gt;
Hope you understand now my situation...&lt;BR /&gt;
Regards,&lt;BR /&gt;
Fernando.&lt;BR /&gt;
&lt;BR /&gt;
"alex" &lt;ALEXB&gt; wrote in message&lt;BR /&gt;
news:CF98946EE24E760EBACB014F7DE101A3@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi,&lt;BR /&gt;
&amp;gt; As I understand, you need a general method for invoking each and every&lt;BR /&gt;
acad&lt;BR /&gt;
&amp;gt; command, so the need for acedCommand() or acedCmd() and the /PAUSE&lt;BR /&gt;
problem?&lt;BR /&gt;
&amp;gt; If so, can't help, sorry.&lt;BR /&gt;
&amp;gt; Else, for each command you want to implement, you can interactively&lt;BR /&gt;
acquire&lt;BR /&gt;
&amp;gt; the data using&lt;BR /&gt;
&amp;gt; acedGetxx() funcs (e.g. acedGetPoint()), acedGetReal() twice and&lt;BR /&gt;
&amp;gt; acedGetAngle() for INSERT),&lt;BR /&gt;
&amp;gt; thus dispensing with acedCommand() or acedCmd().&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Hope it helps,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; alex&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ALEXB&gt;</description>
      <pubDate>Wed, 07 May 2003 06:33:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319347#M36347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-05-07T06:33:16Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319348#M36348</link>
      <description>Fernando,&lt;BR /&gt;
If the problem is hiding the dialog, you can do it like so:&lt;BR /&gt;
...&lt;BR /&gt;
...&lt;BR /&gt;
myclass_dlg *dlg;//ptr to dialog&lt;BR /&gt;
...&lt;BR /&gt;
...&lt;BR /&gt;
dlg-&amp;gt;EnableWindow(FALSE);&lt;BR /&gt;
dlg-&amp;gt;ShowWindow(SW_HIDE);&lt;BR /&gt;
...&lt;BR /&gt;
...&lt;BR /&gt;
//user does what users do...&lt;BR /&gt;
...&lt;BR /&gt;
...&lt;BR /&gt;
dlg-&amp;gt;ShowWindow(SW_SHOW);&lt;BR /&gt;
dlg-&amp;gt;EnableWindow(TRUE);&lt;BR /&gt;
dlg-&amp;gt;SetFocus();&lt;BR /&gt;
&lt;BR /&gt;
About the sendStringToExecute() method, I tried it long ago and decided&lt;BR /&gt;
against it as clumsy&lt;BR /&gt;
and unreliable. To me it looks like LISP inside ARX.&lt;BR /&gt;
I prefer the 'pure' ARX methods - see my former post - which, although&lt;BR /&gt;
harder to code give you much more control and are safer, to say nothing&lt;BR /&gt;
about all those&lt;BR /&gt;
variables which the user feeds to YOUR program - not to acad - and which you&lt;BR /&gt;
can subsequently&lt;BR /&gt;
use.&lt;BR /&gt;
&lt;BR /&gt;
hope it helps.&lt;BR /&gt;
&lt;BR /&gt;
alex</description>
      <pubDate>Sun, 11 May 2003 11:29:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/user-interaction-withou-acedcommand-or-acedcmd/m-p/319348#M36348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-05-11T11:29:52Z</dc:date>
    </item>
  </channel>
</rss>

