<?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: Modeless dialog advice requested... in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572916#M82471</link>
    <description>No, thats exactly the stuff I should study.  I am guessing its not an actual pallette, but a dialog that you can dock...&lt;BR /&gt;
Terry, have you delved into this, as an alternative to VBA dialogs, which I think you use for Toolpack a lot?&lt;BR /&gt;
Kind of makes you wonder how long VBA will be around since the VB6 "mothership" is not the thing any more.&lt;BR /&gt;
&lt;BR /&gt;
Thanks Terry.&lt;BR /&gt;
&lt;BR /&gt;
Terry W. Dotson &lt;NOSPAM&gt;&lt;BR /&gt;
|&amp;gt;James Maeding wrote:&lt;BR /&gt;
|&amp;gt;&lt;BR /&gt;
|&amp;gt;&amp;gt; I guess I am looking for someone who has actually written something&lt;BR /&gt;
|&amp;gt;&amp;gt; using modeless dialogs ...&lt;BR /&gt;
|&amp;gt;&lt;BR /&gt;
|&amp;gt;Have you looked at the example in the NET LABS downloadable from the &lt;BR /&gt;
|&amp;gt;Autodesk site.  Lab6/7 has a floating/dockable toolpalette and its VB.NET.&lt;BR /&gt;
|&amp;gt;&lt;BR /&gt;
|&amp;gt;Terry&lt;BR /&gt;
James Maeding&lt;BR /&gt;
Civil Engineer and Programmer&lt;BR /&gt;
jmaeding - athunsaker - com&lt;/NOSPAM&gt;</description>
    <pubDate>Mon, 06 Mar 2006 21:47:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-03-06T21:47:18Z</dc:date>
    <item>
      <title>Modeless dialog advice requested...</title>
      <link>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572914#M82469</link>
      <description>I have done several, what I would call, "major" programs in lisp.  We are talking more than 10,000 lines of code each. I&lt;BR /&gt;
use ObjectDCL for the dialogs, so I can write stuff that looks as good as VBA or C.  Problem is, the ObjectDCL program&lt;BR /&gt;
is third party and I am seriously worried about depending on it.  So I need to see what I can use instead for progs that&lt;BR /&gt;
have modeless dialogs, and a lot of command line interaction with users.&lt;BR /&gt;
&lt;BR /&gt;
I have also done several large programs with VB6, so I am very familiar with how to hook up to acad through com and do&lt;BR /&gt;
things.  I have never liked the results though.  Speed is one issue, but getting user input from the command line is a&lt;BR /&gt;
bigger issue.&lt;BR /&gt;
&lt;BR /&gt;
I am not interested in pursuing VB6 or VBA at this point, only .net or C++.&lt;BR /&gt;
&lt;BR /&gt;
Here are my questions:&lt;BR /&gt;
&lt;BR /&gt;
In VB6, for modeless dialogs, I would hold a reference to the acad application as one of the form's properties.  Then,&lt;BR /&gt;
anything in the diloag needing acad would be hooked to acad.&lt;BR /&gt;
Does .net (using the .net acad API, not com) use a similar method to stay hooked with a drawing?&lt;BR /&gt;
&lt;BR /&gt;
Or does .net run "in process" like lisp and VBA?  That would be ideal I think.&lt;BR /&gt;
&lt;BR /&gt;
With .net, how do you deal with command line access?  If a modeless dialog tries to run when another command is active,&lt;BR /&gt;
can you reliably catch the error?&lt;BR /&gt;
&lt;BR /&gt;
I guess I am looking for someone who has actually written something using modeless dialogs and has dealt with these&lt;BR /&gt;
issues in a real program.  I need to be able to handle sloppy user interaction without crashing acad.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any advice and feel free to redirect me to threads I missed on this.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
James Maeding&lt;BR /&gt;
Civil Engineer and Programmer&lt;BR /&gt;
jmaeding - athunsaker - com</description>
      <pubDate>Mon, 06 Mar 2006 18:10:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572914#M82469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-06T18:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modeless dialog advice requested...</title>
      <link>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572915#M82470</link>
      <description>James Maeding wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I guess I am looking for someone who has actually written something&lt;BR /&gt;
&amp;gt; using modeless dialogs ...&lt;BR /&gt;
&lt;BR /&gt;
Have you looked at the example in the NET LABS downloadable from the &lt;BR /&gt;
Autodesk site.  Lab6/7 has a floating/dockable toolpalette and its VB.NET.&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
      <pubDate>Mon, 06 Mar 2006 19:17:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572915#M82470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-06T19:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Modeless dialog advice requested...</title>
      <link>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572916#M82471</link>
      <description>No, thats exactly the stuff I should study.  I am guessing its not an actual pallette, but a dialog that you can dock...&lt;BR /&gt;
Terry, have you delved into this, as an alternative to VBA dialogs, which I think you use for Toolpack a lot?&lt;BR /&gt;
Kind of makes you wonder how long VBA will be around since the VB6 "mothership" is not the thing any more.&lt;BR /&gt;
&lt;BR /&gt;
Thanks Terry.&lt;BR /&gt;
&lt;BR /&gt;
Terry W. Dotson &lt;NOSPAM&gt;&lt;BR /&gt;
|&amp;gt;James Maeding wrote:&lt;BR /&gt;
|&amp;gt;&lt;BR /&gt;
|&amp;gt;&amp;gt; I guess I am looking for someone who has actually written something&lt;BR /&gt;
|&amp;gt;&amp;gt; using modeless dialogs ...&lt;BR /&gt;
|&amp;gt;&lt;BR /&gt;
|&amp;gt;Have you looked at the example in the NET LABS downloadable from the &lt;BR /&gt;
|&amp;gt;Autodesk site.  Lab6/7 has a floating/dockable toolpalette and its VB.NET.&lt;BR /&gt;
|&amp;gt;&lt;BR /&gt;
|&amp;gt;Terry&lt;BR /&gt;
James Maeding&lt;BR /&gt;
Civil Engineer and Programmer&lt;BR /&gt;
jmaeding - athunsaker - com&lt;/NOSPAM&gt;</description>
      <pubDate>Mon, 06 Mar 2006 21:47:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572916#M82471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-06T21:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Modeless dialog advice requested...</title>
      <link>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572917#M82472</link>
      <description>James Maeding wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; No, thats exactly the stuff I should study.  I am guessing its not an&lt;BR /&gt;
&amp;gt;  actual pallette, but a dialog that you can dock...&lt;BR /&gt;
&lt;BR /&gt;
It seems to work like properties and other newer AutoCAD dialogs.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Terry, have you delved into this, as an alternative to VBA dialogs, &lt;BR /&gt;
&amp;gt; which I think you use for Toolpack a lot?&lt;BR /&gt;
&lt;BR /&gt;
I have only been observing from a planning stage and learning bits and&lt;BR /&gt;
pieces.  Since I make a living selling to all AutoCAD users, it will be&lt;BR /&gt;
a few years before I can require users have 2005 or higher.  Also note&lt;BR /&gt;
that 2006 is required for modeless.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Kind of makes you wonder how long VBA will be around since the VB6 &lt;BR /&gt;
&amp;gt; "mothership" is not the thing any more.&lt;BR /&gt;
&lt;BR /&gt;
http://worldcadaccess.typepad.com/blog/2005/09/vsta_not_vista_.html&lt;BR /&gt;
&lt;BR /&gt;
If I were in a Corporate CAD situation like you, with 2006 on all&lt;BR /&gt;
machines, I would dive in head first!&lt;BR /&gt;
&lt;BR /&gt;
"Adapt or die".&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
      <pubDate>Mon, 06 Mar 2006 22:17:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572917#M82472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-06T22:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Modeless dialog advice requested...</title>
      <link>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572918#M82473</link>
      <description>You can do modeless dialogs in 2005 you just need to use 'setwindowlong' to&lt;BR /&gt;
tell you form acad is the parent.&lt;BR /&gt;
&lt;BR /&gt;
"Terry W. Dotson" &lt;NOSPAM&gt; wrote in message&lt;BR /&gt;
news:5103133@discussion.autodesk.com...&lt;BR /&gt;
James Maeding wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; No, thats exactly the stuff I should study.  I am guessing its not an&lt;BR /&gt;
&amp;gt;  actual pallette, but a dialog that you can dock...&lt;BR /&gt;
&lt;BR /&gt;
It seems to work like properties and other newer AutoCAD dialogs.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Terry, have you delved into this, as an alternative to VBA dialogs,&lt;BR /&gt;
&amp;gt; which I think you use for Toolpack a lot?&lt;BR /&gt;
&lt;BR /&gt;
I have only been observing from a planning stage and learning bits and&lt;BR /&gt;
pieces.  Since I make a living selling to all AutoCAD users, it will be&lt;BR /&gt;
a few years before I can require users have 2005 or higher.  Also note&lt;BR /&gt;
that 2006 is required for modeless.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Kind of makes you wonder how long VBA will be around since the VB6&lt;BR /&gt;
&amp;gt; "mothership" is not the thing any more.&lt;BR /&gt;
&lt;BR /&gt;
http://worldcadaccess.typepad.com/blog/2005/09/vsta_not_vista_.html&lt;BR /&gt;
&lt;BR /&gt;
If I were in a Corporate CAD situation like you, with 2006 on all&lt;BR /&gt;
machines, I would dive in head first!&lt;BR /&gt;
&lt;BR /&gt;
"Adapt or die".&lt;BR /&gt;
&lt;BR /&gt;
Terry&lt;/NOSPAM&gt;</description>
      <pubDate>Tue, 07 Mar 2006 00:50:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572918#M82473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-07T00:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Modeless dialog advice requested...</title>
      <link>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572919#M82474</link>
      <description>&amp;gt;&amp;gt;I am guessing its not an actual pallette&lt;BR /&gt;
&lt;BR /&gt;
It is an actual palette that hosts a user control that you create.  Have fun &lt;BR /&gt;
:-)&lt;BR /&gt;
-- &lt;BR /&gt;
Bobby C. Jones&lt;BR /&gt;
http://www.acadx.com</description>
      <pubDate>Tue, 07 Mar 2006 15:00:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572919#M82474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-07T15:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Modeless dialog advice requested...</title>
      <link>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572920#M82475</link>
      <description>this will be interesting....cool stuff&lt;BR /&gt;
I guess the main thing I am looking at is how .net progs run inside the acad environment.&lt;BR /&gt;
Previously, only lisp, VBA, and arx allowed this I think.&lt;BR /&gt;
&lt;BR /&gt;
Am I right on that?  Was it possible to make a dll in VB6 and somehow have it run "inside" autocad?&lt;BR /&gt;
I thought VBA was the only way to run VB code inside acad.&lt;BR /&gt;
thx&lt;BR /&gt;
&lt;BR /&gt;
Bobby C. Jones &lt;BJONES&gt;&lt;BR /&gt;
|&amp;gt;&amp;gt;&amp;gt;I am guessing its not an actual pallette&lt;BR /&gt;
|&amp;gt;&lt;BR /&gt;
|&amp;gt;It is an actual palette that hosts a user control that you create.  Have fun &lt;BR /&gt;
|&amp;gt;:-)&lt;BR /&gt;
James Maeding&lt;BR /&gt;
Civil Engineer and Programmer&lt;BR /&gt;
jmaeding - athunsaker - com&lt;/BJONES&gt;</description>
      <pubDate>Tue, 07 Mar 2006 17:42:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572920#M82475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-07T17:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Modeless dialog advice requested...</title>
      <link>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572921#M82476</link>
      <description>&amp;gt;I guess the main thing I am looking at is how .net progs run inside the &lt;BR /&gt;
&amp;gt;acad environment.&lt;BR /&gt;
&amp;gt;Previously, only lisp, VBA, and arx allowed this I think.&lt;BR /&gt;
&lt;BR /&gt;
.net does indeed "run inside" AutoCAD.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;Am I right on that?  Was it possible to make a dll in VB6 and somehow have &lt;BR /&gt;
&amp;gt;it run "inside" autocad?&lt;BR /&gt;
&amp;gt;I thought VBA was the only way to run VB code inside acad.&lt;BR /&gt;
&lt;BR /&gt;
ActiveX dll's can be loaded in process with AutoCAD via &lt;BR /&gt;
acadApp.GetInterfaceObject("InsertProgIdHere") where acadApp is an instance &lt;BR /&gt;
of the COM AcadApplication object.&lt;BR /&gt;
-- &lt;BR /&gt;
Bobby C. Jones&lt;BR /&gt;
http://www.acadx.com</description>
      <pubDate>Tue, 07 Mar 2006 18:56:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572921#M82476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-07T18:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Modeless dialog advice requested...</title>
      <link>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572922#M82477</link>
      <description>It was quite possible to use vb6 to automate autocad. It was also possible to have userforms that link to the autocad application. There is no difference in how it is done in .NET (fundamentally I mean).&lt;BR /&gt;
&lt;BR /&gt;
In .NET, make a userform like you normally would, then call the Show() method of the System.Windows.Forms.Form class instead of ShowDialog(). Keep a private reference to the autocad application in the userform, and you can reference it whenever you want.&lt;BR /&gt;
&lt;BR /&gt;
The toolbar idea is much "cooler" though - I suggest you look into that first, if it suits your purposes...</description>
      <pubDate>Wed, 08 Mar 2006 22:11:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572922#M82477</guid>
      <dc:creator>jbooth</dc:creator>
      <dc:date>2006-03-08T22:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Modeless dialog advice requested...</title>
      <link>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572923#M82478</link>
      <description>There's quite a few differences between VB6 and .NET&lt;BR /&gt;
forms. Applications that use the .NET API for AutoCAD&lt;BR /&gt;
must be loaded as DLLS. Standalone executables can&lt;BR /&gt;
only use COM/ActiveX to talk to AutoCAD, and I don't&lt;BR /&gt;
think that's what James had in mind.&lt;BR /&gt;
&lt;BR /&gt;
In .NET applications that are loaded into AutoCAD as&lt;BR /&gt;
DLLS and use the .NET API, Forms are not shown using &lt;BR /&gt;
the Show() or ShowModal() methods, they're shown &lt;BR /&gt;
using one of these methods of the Application object:&lt;BR /&gt;
&lt;BR /&gt;
   ShowModalDialog()&lt;BR /&gt;
   ShowModelessDialog()&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;JASON booth=""&gt; wrote in message news:5105604@discussion.autodesk.com...&lt;BR /&gt;
It was quite possible to use vb6 to automate autocad. It was also possible to have userforms that link to the autocad application. There is no difference in how it is done in .NET (fundamentally I mean).&lt;BR /&gt;
&lt;BR /&gt;
In .NET, make a userform like you normally would, then call the Show() method of the System.Windows.Forms.Form class instead of ShowDialog(). Keep a private reference to the autocad application in the userform, and you can reference it whenever you want.&lt;BR /&gt;
&lt;BR /&gt;
The toolbar idea is much "cooler" though - I suggest you look into that first, if it suits your purposes...&lt;/JASON&gt;</description>
      <pubDate>Wed, 08 Mar 2006 23:11:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572923#M82478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-08T23:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modeless dialog advice requested...</title>
      <link>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572924#M82479</link>
      <description>excellent, that nails down what I had heard.&lt;BR /&gt;
The problem with an external VB6 prog is that you have to be careful about what drawings are open in MDI sessions, and&lt;BR /&gt;
also sessions that are doing something when your modeless dialog tries to do something.&lt;BR /&gt;
Those tasks get much more stable when a prog runs inside acad.&lt;BR /&gt;
The only languages that seem appealing (to me) that run inside are .net and ARX apps.  Lisp was good, but without a&lt;BR /&gt;
decent dialog box extension program like ODCL, its not very slick.  I know how to make dlls with VB to do dialogs, but&lt;BR /&gt;
they are not "hooked up" to acad as nice as you can do with ODCL.&lt;BR /&gt;
&lt;BR /&gt;
I bet many people do not realize this.  The fact that .net runs inside, but relies on an outside editor that is standard&lt;BR /&gt;
is a big deal.  I never liked VBA because of its little differences from VB classic...&lt;BR /&gt;
&lt;BR /&gt;
Tony Tanzillo &lt;TONY.TANZILLO&gt;&lt;BR /&gt;
|&amp;gt;There's quite a few differences between VB6 and .NET&lt;BR /&gt;
|&amp;gt;forms. Applications that use the .NET API for AutoCAD&lt;BR /&gt;
|&amp;gt;must be loaded as DLLS. Standalone executables can&lt;BR /&gt;
|&amp;gt;only use COM/ActiveX to talk to AutoCAD, and I don't&lt;BR /&gt;
|&amp;gt;think that's what James had in mind.&lt;BR /&gt;
|&amp;gt;&lt;BR /&gt;
|&amp;gt;In .NET applications that are loaded into AutoCAD as&lt;BR /&gt;
|&amp;gt;DLLS and use the .NET API, Forms are not shown using &lt;BR /&gt;
|&amp;gt;the Show() or ShowModal() methods, they're shown &lt;BR /&gt;
|&amp;gt;using one of these methods of the Application object:&lt;BR /&gt;
|&amp;gt;&lt;BR /&gt;
|&amp;gt;   ShowModalDialog()&lt;BR /&gt;
|&amp;gt;   ShowModelessDialog()&lt;BR /&gt;
James Maeding&lt;BR /&gt;
Civil Engineer and Programmer&lt;BR /&gt;
jmaeding - athunsaker - com&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Thu, 09 Mar 2006 02:49:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modeless-dialog-advice-requested/m-p/1572924#M82479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-09T02:49:23Z</dc:date>
    </item>
  </channel>
</rss>

