<?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 Sample Apps for AcadX ActiveX Extension in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297044#M96993</link>
    <description>The AcadX page on my web site has been updated.&lt;BR /&gt;
&lt;BR /&gt;
The Document Selector window from the FreeDock tools&lt;BR /&gt;
collection is now available as a sample application&lt;BR /&gt;
with complete source.&lt;BR /&gt;
&lt;BR /&gt;
The sample application is available in both a VB5 &lt;BR /&gt;
version and the original Delphi 5 version that was &lt;BR /&gt;
used to build the FreeDock tool. Both samples use&lt;BR /&gt;
the AutoCAD Dockable Container from Jorge Lopez.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
    <pubDate>Sun, 16 Jan 2000 12:19:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-01-16T12:19:45Z</dc:date>
    <item>
      <title>Sample Apps for AcadX ActiveX Extension</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297044#M96993</link>
      <description>The AcadX page on my web site has been updated.&lt;BR /&gt;
&lt;BR /&gt;
The Document Selector window from the FreeDock tools&lt;BR /&gt;
collection is now available as a sample application&lt;BR /&gt;
with complete source.&lt;BR /&gt;
&lt;BR /&gt;
The sample application is available in both a VB5 &lt;BR /&gt;
version and the original Delphi 5 version that was &lt;BR /&gt;
used to build the FreeDock tool. Both samples use&lt;BR /&gt;
the AutoCAD Dockable Container from Jorge Lopez.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
      <pubDate>Sun, 16 Jan 2000 12:19:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297044#M96993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-16T12:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Apps for AcadX ActiveX Extension</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297045#M96994</link>
      <description>I like the functions provided by your app, but the alert dialog box is&lt;BR /&gt;
annoying.  Is it to much to ask to change it to a (prompt) instead?&lt;BR /&gt;
&lt;BR /&gt;
Dan Elkins</description>
      <pubDate>Sun, 16 Jan 2000 21:38:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297045#M96994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-16T21:38:53Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297046#M96995</link>
      <description>What alert dialog box is that?&lt;BR /&gt;
&lt;BR /&gt;
Dan Elkins wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I like the functions provided by your app, but the alert dialog box is&lt;BR /&gt;
&amp;gt; annoying.  Is it to much to ask to change it to a (prompt) instead?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Dan Elkins&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
      <pubDate>Mon, 17 Jan 2000 01:56:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297046#M96995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-17T01:56:29Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297047#M96996</link>
      <description>I downloaded the latest build from your web site and when I load the&lt;BR /&gt;
AcadX.arx file it pops up an alert dialog box.  See attached file.  It's a&lt;BR /&gt;
small jpg so I hope no one minds that I attached it here.&lt;BR /&gt;
&lt;BR /&gt;
Dan Elkins</description>
      <pubDate>Mon, 17 Jan 2000 02:02:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297047#M96996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-17T02:02:43Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297048#M96997</link>
      <description>Yes - but this should not be a problem, because this only&lt;BR /&gt;
appears when you load AcadX.arx as an ARX application, which&lt;BR /&gt;
is normally not required. &lt;BR /&gt;
&lt;BR /&gt;
Please read the documentation. You only need to load AcadX.arx&lt;BR /&gt;
as an ARX program once, in order to register it as an ActiveX&lt;BR /&gt;
server. After doing that, you should never load it as an ARX &lt;BR /&gt;
program. &lt;BR /&gt;
&lt;BR /&gt;
Dan Elkins wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I downloaded the latest build from your web site and when I load the&lt;BR /&gt;
&amp;gt; AcadX.arx file it pops up an alert dialog box.  See attached file.  It's a&lt;BR /&gt;
&amp;gt; small jpg so I hope no one minds that I attached it here.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Dan Elkins&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;  [Image]&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
      <pubDate>Mon, 17 Jan 2000 02:32:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297048#M96997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-17T02:32:25Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297049#M96998</link>
      <description>I did what your installation said:&lt;BR /&gt;
&lt;BR /&gt;
Installation:&lt;BR /&gt;
AcadX.arx must be registered by loading it into AutoCAD's process space.&lt;BR /&gt;
(skip ahead).  This step needs to be performed only once, and once completed&lt;BR /&gt;
AcadX.arx will be properly registered as an ActiveX server. You can load&lt;BR /&gt;
AcadX.ARX as an ARX application by dropping AcadX.arx on the AutoCAD window.&lt;BR /&gt;
Alternately, you can load AcadX.arx using the ARX or APPLOAD commands, or by&lt;BR /&gt;
using the (arxload) AutoLISP function, or the LoadARX() method of the&lt;BR /&gt;
AutoCAD Application Object from VBA or an ActiveX client.&lt;BR /&gt;
&lt;BR /&gt;
I loaded it by dragging and droping and by typing (arxload "AcadX.arx") and&lt;BR /&gt;
the dialog box happens everytime I load it on a new session of AutoCAD.&lt;BR /&gt;
&lt;BR /&gt;
Dan Elkins</description>
      <pubDate>Mon, 17 Jan 2000 06:56:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297049#M96998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-17T06:56:00Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297050#M96999</link>
      <description>Dan Elkins wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I loaded it by dragging and droping and by typing (arxload "AcadX.arx") and&lt;BR /&gt;
&amp;gt; the dialog box happens everytime I load it on a new session of AutoCAD.&lt;BR /&gt;
&lt;BR /&gt;
Perhaps my instructions are not clear. They say that you&lt;BR /&gt;
only have to load AcadX.arx as an ARX application _ONCE_&lt;BR /&gt;
(here, "ONCE" means when you first install it, not every&lt;BR /&gt;
time you start AutoCAD).&lt;BR /&gt;
&lt;BR /&gt;
You do not have to, and should not ARXLOAD AcadX.arx at all&lt;BR /&gt;
for normal use. It is automatically loaded when you use&lt;BR /&gt;
GetInterfaceObject("Acadx.Application"), and in that case,&lt;BR /&gt;
it does not display any dialog (just a command line message).&lt;BR /&gt;
&lt;BR /&gt;
Do not attempt to load AcadX.arx as an ARX program. It will&lt;BR /&gt;
be automatically loaded by Windows when you request an&lt;BR /&gt;
instance of the Application or DocumentManager objects via&lt;BR /&gt;
the GetInterfaceObject() method of the AutoCAD object.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
      <pubDate>Mon, 17 Jan 2000 08:02:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297050#M96999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-17T08:02:50Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297051#M97000</link>
      <description>Oh.  I was just going to mess with some of the functions through lisp like&lt;BR /&gt;
the ones you uploaded in the customerfiles newsgroup:&lt;BR /&gt;
(defun SetProgressMeter (label min max)&lt;BR /&gt;
   (getAcadX)&lt;BR /&gt;
   (vlax-invoke-method&lt;BR /&gt;
     *acadx*&lt;BR /&gt;
     'SetProgressMeter&lt;BR /&gt;
     label min max&lt;BR /&gt;
   )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Thanks for making it a little clearer.  I guess I should learn VB.&lt;BR /&gt;
&lt;BR /&gt;
Dan Elkins</description>
      <pubDate>Mon, 17 Jan 2000 08:08:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297051#M97000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-17T08:08:44Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297052#M97001</link>
      <description>You don't have to learn VB. It works the same regardless&lt;BR /&gt;
of the language. If you use Visual LISP, AcadX will be&lt;BR /&gt;
loaded automatically when you call vla-get-interfaceObject&lt;BR /&gt;
to get the Application or DocumentManager objects.&lt;BR /&gt;
&lt;BR /&gt;
You don't need to do an (arxload) first.&lt;BR /&gt;
&lt;BR /&gt;
Dan Elkins wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Oh.  I was just going to mess with some of the functions through lisp like&lt;BR /&gt;
&amp;gt; the ones you uploaded in the customerfiles newsgroup:&lt;BR /&gt;
&amp;gt; (defun SetProgressMeter (label min max)&lt;BR /&gt;
&amp;gt;    (getAcadX)&lt;BR /&gt;
&amp;gt;    (vlax-invoke-method&lt;BR /&gt;
&amp;gt;      *acadx*&lt;BR /&gt;
&amp;gt;      'SetProgressMeter&lt;BR /&gt;
&amp;gt;      label min max&lt;BR /&gt;
&amp;gt;    )&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanks for making it a little clearer.  I guess I should learn VB.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Dan Elkins&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
      <pubDate>Mon, 17 Jan 2000 08:14:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297052#M97001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-17T08:14:35Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297053#M97002</link>
      <description>&amp;gt; You don't have to learn VB. It works the same regardless&lt;BR /&gt;
&amp;gt; of the language. If you use Visual LISP, AcadX will be&lt;BR /&gt;
&amp;gt; loaded automatically when you call vla-get-interfaceObject&lt;BR /&gt;
&amp;gt; to get the Application or DocumentManager objects.&lt;BR /&gt;
&lt;BR /&gt;
I just figured that out.  Looks cool.  Do you have LISP functions like the&lt;BR /&gt;
one I put in the last message (SetProgressMeter) blocked out already.  I&lt;BR /&gt;
tried messing around with some of your functions and modified one to:&lt;BR /&gt;
&lt;BR /&gt;
(defun GetBlockRefs (blkname comments)&lt;BR /&gt;
   (getAcadX)&lt;BR /&gt;
   (vlax-invoke-method&lt;BR /&gt;
     *acadx*&lt;BR /&gt;
     'GetBlockRefs&lt;BR /&gt;
     blkname comments&lt;BR /&gt;
   )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
...but I guess it's harder than it looks.&lt;BR /&gt;
&lt;BR /&gt;
Dan Elkins</description>
      <pubDate>Mon, 17 Jan 2000 08:34:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297053#M97002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-17T08:34:42Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297054#M97003</link>
      <description>GetBlockRefs takes an AcadBlock object as its only&lt;BR /&gt;
parameter, not the name of a block, which appears &lt;BR /&gt;
to be what you're passing it. I also am not sure&lt;BR /&gt;
what the "comments" argument is for. Please read&lt;BR /&gt;
the documentation and you'll see that GetBlockRefs&lt;BR /&gt;
takes only a single parameter, which is the block&lt;BR /&gt;
object whose insertions are to be reterned.&lt;BR /&gt;
&lt;BR /&gt;
This will return them in a list:&lt;BR /&gt;
&lt;BR /&gt;
(defun ListBlockRefs (blockname)&lt;BR /&gt;
   (setq *acad* (vlax-get-acad-object))&lt;BR /&gt;
   (GetAcadX)&lt;BR /&gt;
   (setq block &lt;BR /&gt;
      (vla-item &lt;BR /&gt;
         (vla-get-blocks&lt;BR /&gt;
            (vla-get-activedocument *acad*)&lt;BR /&gt;
         )&lt;BR /&gt;
         blockname&lt;BR /&gt;
      )&lt;BR /&gt;
   )&lt;BR /&gt;
   (vlax-safearray-&amp;gt;list&lt;BR /&gt;
      (vlax-variant-value&lt;BR /&gt;
         (vlax-invoke-method&lt;BR /&gt;
            *acadx*&lt;BR /&gt;
            'GetBlockRefs&lt;BR /&gt;
            block&lt;BR /&gt;
         )&lt;BR /&gt;
      )&lt;BR /&gt;
   )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Dan Elkins wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &amp;gt; You don't have to learn VB. It works the same regardless&lt;BR /&gt;
&amp;gt; &amp;gt; of the language. If you use Visual LISP, AcadX will be&lt;BR /&gt;
&amp;gt; &amp;gt; loaded automatically when you call vla-get-interfaceObject&lt;BR /&gt;
&amp;gt; &amp;gt; to get the Application or DocumentManager objects.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I just figured that out.  Looks cool.  Do you have LISP functions like the&lt;BR /&gt;
&amp;gt; one I put in the last message (SetProgressMeter) blocked out already.  I&lt;BR /&gt;
&amp;gt; tried messing around with some of your functions and modified one to:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; (defun GetBlockRefs (blkname comments)&lt;BR /&gt;
&amp;gt;    (getAcadX)&lt;BR /&gt;
&amp;gt;    (vlax-invoke-method&lt;BR /&gt;
&amp;gt;      *acadx*&lt;BR /&gt;
&amp;gt;      'GetBlockRefs&lt;BR /&gt;
&amp;gt;      blkname comments&lt;BR /&gt;
&amp;gt;    )&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ...but I guess it's harder than it looks.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Dan Elkins&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
      <pubDate>Mon, 17 Jan 2000 09:29:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297054#M97003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-17T09:29:01Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297055#M97004</link>
      <description>Sorry,&lt;BR /&gt;
&lt;BR /&gt;
I meant SetBlockComments.  I read the documentation but as a novice some of&lt;BR /&gt;
it is a little fuzzy.  If I have any more questions, I'll probably post it&lt;BR /&gt;
in the customization group.  Thanks for the help.&lt;BR /&gt;
&lt;BR /&gt;
Dan</description>
      <pubDate>Mon, 17 Jan 2000 15:25:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sample-apps-for-acadx-activex-extension/m-p/297055#M97004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-17T15:25:05Z</dc:date>
    </item>
  </channel>
</rss>

