<?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 VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307306#M62034</link>
    <description>"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:B863230A3BB594254533BEC622452D9D@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; A DVB cannot produce either type of file. You'll have to port the code&lt;BR /&gt;
&amp;gt; to Visual Basic, not VBA if you want an EXE or a DLL.&lt;BR /&gt;
&lt;BR /&gt;
i *do* realize that much, that's what I meant.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Only go with the ActiveX executable if a DLL is not desirable.&lt;BR /&gt;
&lt;BR /&gt;
why would it be not desirable?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; DLL.&lt;BR /&gt;
cool.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; and in terms of the "calling client":&lt;BR /&gt;
&amp;gt; &amp;gt; as I understand it, there is no possibility of running a vb or vba&lt;BR /&gt;
&amp;gt; &amp;gt; app in autocad without the calling client being a lisp function.  Is&lt;BR /&gt;
&amp;gt; &amp;gt; that incorrect?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Yes, that is incorrect. You can also use VBA to create your client. The&lt;BR /&gt;
&amp;gt; DVB will contain only the code necessary to create an instance of your&lt;BR /&gt;
&amp;gt; class so one Public Sub is all you'd need.&lt;BR /&gt;
&lt;BR /&gt;
but I can't call the vba dvb without using a lisp function to call it,&lt;BR /&gt;
that's what I meant in the sentence above.&lt;BR /&gt;
is that not correct?&lt;BR /&gt;
so ultimately the lisp is the calling client, is it not?&lt;BR /&gt;
a lisp client calling a vba client, calling a dll server????&lt;BR /&gt;
or just eliminate the middle man and have the lisp call the dll with invoke&lt;BR /&gt;
method&lt;BR /&gt;
or am i missing something yet again (yeah, I know, I'm missing a whole lot&lt;BR /&gt;
of somethings)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; As if I didn't pester folks around just as much five years ago. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
hmm, I don't remember that!&lt;BR /&gt;
&lt;BR /&gt;
Thanks again,&lt;BR /&gt;
Mark&lt;/FRANKO&gt;</description>
    <pubDate>Tue, 15 Jul 2003 11:25:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-07-15T11:25:39Z</dc:date>
    <item>
      <title>how to call acad from std. exe?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307291#M62019</link>
      <description>Hi all,&lt;BR /&gt;
I have a vba dvb I've been calling from acad with a lisp routine via&lt;BR /&gt;
vla-runmacro or vl-vbarun&lt;BR /&gt;
I want to change it to a stand alone .exe&lt;BR /&gt;
&lt;BR /&gt;
in addition to changing all ThisDrawing references I need to somehow connect&lt;BR /&gt;
to acad.&lt;BR /&gt;
but since I'll be calling the exe from within acad (I presume by using&lt;BR /&gt;
(Startapp) ???) I'm confused about how to connect to acad.  I obviously&lt;BR /&gt;
don't need the usual "on error resume next getobject if err then create&lt;BR /&gt;
object" that I would use if I was starting the exe from outside of acad. so&lt;BR /&gt;
what's the proper way to refer to the instance of acad that is calling the&lt;BR /&gt;
app?&lt;BR /&gt;
I know this is a stupid question but hey, that's my specialty!&lt;BR /&gt;
:-)&lt;BR /&gt;
Mark</description>
      <pubDate>Mon, 14 Jul 2003 12:24:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307291#M62019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-14T12:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to call acad from std. exe?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307292#M62020</link>
      <description>Mark Propst wrote:&lt;BR /&gt;
&amp;gt; so what's the proper way to refer to the instance of&lt;BR /&gt;
&amp;gt; acad that is calling the app?&lt;BR /&gt;
&lt;BR /&gt;
You'll need to create an ActiveX executable with one publicly creatable&lt;BR /&gt;
class. That class should have a property that will accept a reference to&lt;BR /&gt;
an AcadApplication object.&lt;BR /&gt;
&lt;BR /&gt;
Using VisualLISP, create an instance of the class and set its&lt;BR /&gt;
application property passing the return value of (vlax-get-acad-object).&lt;BR /&gt;
&lt;BR /&gt;
I know that sounds like a lot of effort but it's the only reliable way&lt;BR /&gt;
to attach to the proper instance of AutoCAD. VB's GetObject is&lt;BR /&gt;
insufficient for scenarios involving multiple running instances of&lt;BR /&gt;
AutoCAD.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
There are 10 kinds of people. Those who understand binary and those who&lt;BR /&gt;
don't.&lt;BR /&gt;
&lt;BR /&gt;
http://code.acadx.com</description>
      <pubDate>Mon, 14 Jul 2003 12:45:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307292#M62020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-14T12:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to call acad from std. exe?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307293#M62021</link>
      <description>Hi Mark,&lt;BR /&gt;
Perhaps it would be easier to answer your question if you stated what you&lt;BR /&gt;
are trying to accomplish. But on the side, some things you stated are&lt;BR /&gt;
inconsistent. You stated you wanted a stand alone program, but then you&lt;BR /&gt;
sound as if you still want it to run in the same process as the current&lt;BR /&gt;
session of acad. BTW, (startapp) is like using the Shell function, once you&lt;BR /&gt;
start the app, acad has no control over it.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Ed&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
"Mark Propst" &lt;MARK-AT-ATRENG-DOT-COM&gt; wrote in message&lt;BR /&gt;
news:8CF75C8DCA9D38E6E759AA8156D6B42C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi all,&lt;BR /&gt;
&amp;gt; I have a vba dvb I've been calling from acad with a lisp routine via&lt;BR /&gt;
&amp;gt; vla-runmacro or vl-vbarun&lt;BR /&gt;
&amp;gt; I want to change it to a stand alone .exe&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; in addition to changing all ThisDrawing references I need to somehow&lt;BR /&gt;
connect&lt;BR /&gt;
&amp;gt; to acad.&lt;BR /&gt;
&amp;gt; but since I'll be calling the exe from within acad (I presume by using&lt;BR /&gt;
&amp;gt; (Startapp) ???) I'm confused about how to connect to acad.  I obviously&lt;BR /&gt;
&amp;gt; don't need the usual "on error resume next getobject if err then create&lt;BR /&gt;
&amp;gt; object" that I would use if I was starting the exe from outside of acad.&lt;BR /&gt;
so&lt;BR /&gt;
&amp;gt; what's the proper way to refer to the instance of acad that is calling the&lt;BR /&gt;
&amp;gt; app?&lt;BR /&gt;
&amp;gt; I know this is a stupid question but hey, that's my specialty!&lt;BR /&gt;
&amp;gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&amp;gt; Mark&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MARK-AT-ATRENG-DOT-COM&gt;</description>
      <pubDate>Mon, 14 Jul 2003 12:45:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307293#M62021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-14T12:45:27Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307294#M62022</link>
      <description>Thanks Frank,&lt;BR /&gt;
I'll try that.&lt;BR /&gt;
Mark&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:980A78CFEA8EFF9B82938CD27BD09F2C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; You'll need to create an ActiveX executable with one publicly creatable&lt;BR /&gt;
&amp;gt; class.&lt;/FRANKO&gt;</description>
      <pubDate>Mon, 14 Jul 2003 12:52:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307294#M62022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-14T12:52:37Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307295#M62023</link>
      <description>Hi Ed,&lt;BR /&gt;
Thanks for responding,&lt;BR /&gt;
&lt;BR /&gt;
"Ed Jobe" &lt;EDLJOBE&gt; wrote in message&lt;BR /&gt;
news:F5CD95946C476EC4BFE5795790C7D8A9@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi Mark,&lt;BR /&gt;
&amp;gt; Perhaps it would be easier to answer your question if you stated what you&lt;BR /&gt;
&amp;gt; are trying to accomplish.&lt;BR /&gt;
&lt;BR /&gt;
I just wanted the app to be an .exe so it was compiled so the code wasn't&lt;BR /&gt;
visible.&lt;BR /&gt;
&lt;BR /&gt;
But on the side, some things you stated are&lt;BR /&gt;
&amp;gt; inconsistent. You stated you wanted a stand alone program, but then you&lt;BR /&gt;
&amp;gt; sound as if you still want it to run in the same process as the current&lt;BR /&gt;
&amp;gt; session of acad. BTW, (startapp) is like using the Shell function, once&lt;BR /&gt;
you&lt;BR /&gt;
&amp;gt; start the app, acad has no control over it.&lt;BR /&gt;
&lt;BR /&gt;
yeah, I was thinking that startapp or shell would be the two ways I could&lt;BR /&gt;
think of to fire an .exe file (don't know if there are others)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
yeah, i'm not sure the correct terminology, like I say I just wanted to&lt;BR /&gt;
compile it so I was thinking that meant it was a 'stand alone' .exe.&lt;BR /&gt;
But yes, the program flow is that i'm in acad and want to use this program&lt;BR /&gt;
(all it does is draw some symbols, inserting them as blocks with&lt;BR /&gt;
attributes).  It works fine as a dvb but that leaves the source code&lt;BR /&gt;
visible.&lt;BR /&gt;
Frank suggested activex exe so maybe that's more the right terminology?&lt;/EDLJOBE&gt;</description>
      <pubDate>Mon, 14 Jul 2003 12:59:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307295#M62023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-14T12:59:44Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307296#M62024</link>
      <description>&amp;gt; I just wanted the app to be an .exe so it was compiled so the code wasn't&lt;BR /&gt;
&amp;gt; visible.&lt;BR /&gt;
You could also compile to dll. The main difference is that the exe will be&lt;BR /&gt;
an out-of-process server and the dll will be running in acad's process which&lt;BR /&gt;
is usually faster. You could use Frank's approach for both. As for calling&lt;BR /&gt;
the dll, the lisp ng has had some discussions recently on how to do this.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Ed&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
"Mark Propst" &lt;MARK-AT-ATRENG-DOT-COM&gt; wrote in message&lt;BR /&gt;
news:E85B987E2A89D3F771DAB8C5408B25F6@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi Ed,&lt;BR /&gt;
&amp;gt; Thanks for responding,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Ed Jobe" &lt;EDLJOBE&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:F5CD95946C476EC4BFE5795790C7D8A9@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Hi Mark,&lt;BR /&gt;
&amp;gt; &amp;gt; Perhaps it would be easier to answer your question if you stated what&lt;BR /&gt;
you&lt;BR /&gt;
&amp;gt; &amp;gt; are trying to accomplish.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I just wanted the app to be an .exe so it was compiled so the code wasn't&lt;BR /&gt;
&amp;gt; visible.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; But on the side, some things you stated are&lt;BR /&gt;
&amp;gt; &amp;gt; inconsistent. You stated you wanted a stand alone program, but then you&lt;BR /&gt;
&amp;gt; &amp;gt; sound as if you still want it to run in the same process as the current&lt;BR /&gt;
&amp;gt; &amp;gt; session of acad. BTW, (startapp) is like using the Shell function, once&lt;BR /&gt;
&amp;gt; you&lt;BR /&gt;
&amp;gt; &amp;gt; start the app, acad has no control over it.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; yeah, I was thinking that startapp or shell would be the two ways I could&lt;BR /&gt;
&amp;gt; think of to fire an .exe file (don't know if there are others)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; yeah, i'm not sure the correct terminology, like I say I just wanted to&lt;BR /&gt;
&amp;gt; compile it so I was thinking that meant it was a 'stand alone' .exe.&lt;BR /&gt;
&amp;gt; But yes, the program flow is that i'm in acad and want to use this program&lt;BR /&gt;
&amp;gt; (all it does is draw some symbols, inserting them as blocks with&lt;BR /&gt;
&amp;gt; attributes).  It works fine as a dvb but that leaves the source code&lt;BR /&gt;
&amp;gt; visible.&lt;BR /&gt;
&amp;gt; Frank suggested activex exe so maybe that's more the right terminology?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/EDLJOBE&gt;&lt;/MARK-AT-ATRENG-DOT-COM&gt;</description>
      <pubDate>Mon, 14 Jul 2003 13:02:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307296#M62024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-14T13:02:17Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307297#M62025</link>
      <description>Hi Ed,&lt;BR /&gt;
&lt;BR /&gt;
I need a little clarification&lt;BR /&gt;
&lt;BR /&gt;
"Ed Jobe" &lt;EDLJOBE&gt; wrote in message&lt;BR /&gt;
news:050ED5110F59991CA21502A8371C82FF@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; You could also compile to dll. The main difference is that the exe will be&lt;BR /&gt;
&amp;gt; an out-of-process server&lt;BR /&gt;
&lt;BR /&gt;
is that *any* exe?  ie both a standard Exe and an Activex exe would be out&lt;BR /&gt;
of process?&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;and the dll will be running in acad's process which&lt;BR /&gt;
&amp;gt; is usually faster.&lt;BR /&gt;
&lt;BR /&gt;
that's what I would prefer&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; You could use Frank's approach for both.&lt;BR /&gt;
&lt;BR /&gt;
you mean I can create Either and activex.exe or an activex.dll and make the&lt;BR /&gt;
classes etc that frank mentioned and it would work the same?&lt;BR /&gt;
but the exe would be out of process where the dll would be in process???&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; As for calling&lt;BR /&gt;
&amp;gt; the dll, the lisp ng has had some discussions recently on how to do this.&lt;BR /&gt;
&lt;BR /&gt;
yes, I was playing with that a bit last week with limited success.  I'll&lt;BR /&gt;
have to try again if I get this conversion working.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again for your info.&lt;BR /&gt;
Mark&lt;/EDLJOBE&gt;</description>
      <pubDate>Mon, 14 Jul 2003 13:31:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307297#M62025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-14T13:31:27Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307298#M62026</link>
      <description>Mark Propst wrote:&lt;BR /&gt;
&amp;gt;&amp;gt; You could also compile to dll. The main difference is that the exe&lt;BR /&gt;
&amp;gt;&amp;gt; will be an out-of-process server&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; is that *any* exe?  ie both a standard Exe and an Activex exe would&lt;BR /&gt;
&amp;gt; be out of process?&lt;BR /&gt;
&lt;BR /&gt;
Any executable will be out-of-process. However, you can minimize the&lt;BR /&gt;
performance hit by compiling all code that will be interacting with&lt;BR /&gt;
AutoCAD into a DLL. Once you've conencted to AutoCAD, you can load the&lt;BR /&gt;
DLL into AutoCAD's process space by using GetInterfaceObject. Then&lt;BR /&gt;
manipulate the created object from within your executable.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;&amp;gt; You could use Frank's approach for both.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; you mean I can create Either and activex.exe or an activex.dll and&lt;BR /&gt;
&amp;gt; make the classes etc that frank mentioned and it would work the same?&lt;BR /&gt;
&amp;gt; but the exe would be out of process where the dll would be in&lt;BR /&gt;
&amp;gt; process???&lt;BR /&gt;
&lt;BR /&gt;
That's correct.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
There are 10 kinds of people. Those who understand binary and those who&lt;BR /&gt;
don't.&lt;BR /&gt;
&lt;BR /&gt;
http://code.acadx.com</description>
      <pubDate>Mon, 14 Jul 2003 13:50:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307298#M62026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-14T13:50:01Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307299#M62027</link>
      <description>sorry for being so dense, but...&lt;BR /&gt;
so what would be the advantage of creating an activex.exe *and* an&lt;BR /&gt;
activex.dll rather than just doing everything in the .dll?&lt;BR /&gt;
the program flow is merely calling sub main.&lt;BR /&gt;
sub main calls form.show&lt;BR /&gt;
form_initialize creates a weldsymbol class instance&lt;BR /&gt;
the various checkboxes etc in the form set class properties,&lt;BR /&gt;
then the command button calls the class.draw method which inserts or creates&lt;BR /&gt;
the appropriate block and attributes.&lt;BR /&gt;
so the only interaction with autocad is hiding the form and picking a point,&lt;BR /&gt;
once all the choices have been selected in the form. then that's the end of&lt;BR /&gt;
the program.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Could all of that  not be in the dll, eliminating the exe altogether?&lt;BR /&gt;
So far the only dlls Ive made are subs and classes only - (toolbox&lt;BR /&gt;
utilities).&lt;BR /&gt;
whenever I have created a project with a form I've been making a standard&lt;BR /&gt;
exe. so I'm not sure if there are issues with dll and a form class.&lt;BR /&gt;
Thanks as always for your helpful suggestions,.&lt;BR /&gt;
Mark&lt;BR /&gt;
&lt;BR /&gt;
all code is then an interaction between&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:E9043236B1CF438511F079A5CDAA5778@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any executable will be out-of-process. However, you can minimize the&lt;BR /&gt;
&amp;gt; performance hit by compiling all code that will be interacting with&lt;BR /&gt;
&amp;gt; AutoCAD into a DLL. Once you've conencted to AutoCAD, you can load the&lt;BR /&gt;
&amp;gt; DLL into AutoCAD's process space by using GetInterfaceObject. Then&lt;BR /&gt;
&amp;gt; manipulate the created object from within your executable.&lt;/FRANKO&gt;</description>
      <pubDate>Mon, 14 Jul 2003 15:22:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307299#M62027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-14T15:22:32Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307300#M62028</link>
      <description>Mark Propst wrote:&lt;BR /&gt;
&amp;gt; sorry for being so dense, but...&lt;BR /&gt;
&amp;gt; so what would be the advantage of creating an activex.exe *and* an&lt;BR /&gt;
&amp;gt; activex.dll rather than just doing everything in the .dll?&lt;BR /&gt;
&lt;BR /&gt;
Actually, you wouldn't do both.&lt;BR /&gt;
&lt;BR /&gt;
The ActiveX executable would be the way to go if you wanted everything&lt;BR /&gt;
inside the executable as a public class would be the only way for your&lt;BR /&gt;
app to interact with AutoCAD.&lt;BR /&gt;
&lt;BR /&gt;
The DLL is the right solution if you don't mind compartmentalizing your&lt;BR /&gt;
application or want to increase its performance.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
There are 10 kinds of people. Those who understand binary and those who&lt;BR /&gt;
don't.&lt;BR /&gt;
&lt;BR /&gt;
http://code.acadx.com</description>
      <pubDate>Tue, 15 Jul 2003 05:58:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307300#M62028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-15T05:58:24Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307301#M62029</link>
      <description>BTW, you can't just code a DLL because you'll still need a client&lt;BR /&gt;
application to make use of it. You can do that with VBA but it's not a&lt;BR /&gt;
very secure solution.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
There are 10 kinds of people. Those who understand binary and those who&lt;BR /&gt;
don't.&lt;BR /&gt;
&lt;BR /&gt;
http://code.acadx.com</description>
      <pubDate>Tue, 15 Jul 2003 05:59:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307301#M62029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-15T05:59:16Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307302#M62030</link>
      <description>so in this sentence:&lt;BR /&gt;
"... you can't just code a DLL because you'll still need a client&lt;BR /&gt;
application to make use of it."&lt;BR /&gt;
the word "client" refers to something different than just calling a dll from&lt;BR /&gt;
lisp?&lt;BR /&gt;
as in this pseudocode idea of how to call a dll from lisp&lt;BR /&gt;
(defun InvokeDll(dllName dllMethod / ac res res2)&lt;BR /&gt;
  (setq ac (vlax-get-acad-object))&lt;BR /&gt;
   (setq res(vla-GetInterfaceObject ac dllname))&lt;BR /&gt;
   (setq res2 (vlax-invoke-method res dllMethod))&lt;BR /&gt;
   (vlax-release-object res)&lt;BR /&gt;
   (vlax-release-object ac)&lt;BR /&gt;
 res2&lt;BR /&gt;
)&lt;BR /&gt;
that function (just pseudocode) probably wouldn't work, it's just my way of&lt;BR /&gt;
trying to figure out how to call a dll from lisp pasted together from a few&lt;BR /&gt;
recent posts. I haven't tried it yet.&lt;BR /&gt;
like I say it's more like pseudocode...i'm not sure what I need to change&lt;BR /&gt;
yet to make it work as a callable function.&lt;BR /&gt;
but is that what you mean by "client" or is it something different?&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:DE67F13EA570CBDDD9E7C4BCADD5A6BB@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; BTW, you can't just code a DLL because you'll still need a client&lt;BR /&gt;
&amp;gt; application to make use of it. You can do that with VBA but it's not a&lt;BR /&gt;
&amp;gt; very secure solution.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; There are 10 kinds of people. Those who understand binary and those who&lt;BR /&gt;
&amp;gt; don't.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; http://code.acadx.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/FRANKO&gt;</description>
      <pubDate>Tue, 15 Jul 2003 06:18:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307302#M62030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-15T06:18:40Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307303#M62031</link>
      <description>Mark Propst wrote:&lt;BR /&gt;
&amp;gt; so in this sentence:&lt;BR /&gt;
&amp;gt; "... you can't just code a DLL because you'll still need a client&lt;BR /&gt;
&amp;gt; application to make use of it."&lt;BR /&gt;
&amp;gt; the word "client" refers to something different than just calling a&lt;BR /&gt;
&amp;gt; dll from lisp?&lt;BR /&gt;
&lt;BR /&gt;
Not at all... A client can be written in any language that supports&lt;BR /&gt;
ActiveX, including VisualLISP.&lt;BR /&gt;
&lt;BR /&gt;
But if you already know VB and are new to LISP, I'd suggest sticking to&lt;BR /&gt;
what you know if you have any sort of deadline on this project.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
There are 10 kinds of people. Those who understand binary and those who&lt;BR /&gt;
don't.&lt;BR /&gt;
&lt;BR /&gt;
http://code.acadx.com</description>
      <pubDate>Tue, 15 Jul 2003 06:18:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307303#M62031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-15T06:18:40Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307304#M62032</link>
      <description>"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:58723241BA8FBB946D562F96764DAF70@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Not at all... A client can be written in any language that supports&lt;BR /&gt;
&amp;gt; ActiveX, including VisualLISP.&lt;BR /&gt;
&amp;gt; But if you already know VB and are new to LISP, I'd suggest sticking to&lt;BR /&gt;
&amp;gt; what you know if you have any sort of deadline on this project.&lt;BR /&gt;
&lt;BR /&gt;
well, I've been mangling lisp for 10 years more than I have been misusing&lt;BR /&gt;
vb. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
but..., this is the first I've tried calling a dll from lisp.&lt;BR /&gt;
&lt;BR /&gt;
I started this project as a vba inside autocad.&lt;BR /&gt;
It is functioning ok when called from lisp with vl-vbarun&lt;BR /&gt;
(because vla-runmacro won't allow me to hide the form and pick a point).&lt;BR /&gt;
&lt;BR /&gt;
Now I wanted to turn the .dvb file into a compiled type file. (from your&lt;BR /&gt;
posts, either an activex.exe or and activex.dll)&lt;BR /&gt;
(from many posts i've read I thought the .dll was the way to go because&lt;BR /&gt;
everyone mentions the performance issue, now I need to research the&lt;BR /&gt;
activex.exe methodology because you mentioned, if I don't mind&lt;BR /&gt;
"Compartmentalizing" the app.  unfortunately I don't understand what that&lt;BR /&gt;
means cause I'm not up on the details of an activex.exe interacting with&lt;BR /&gt;
acad. so I don't know whether I "should" mind "compartmentalizing" or not!&lt;BR /&gt;
obviously I've got a lot of research to do.&lt;BR /&gt;
&lt;BR /&gt;
If you think of this app as a simple form with a command button on it, the&lt;BR /&gt;
only action the entire app does (other than set some parameters for the&lt;BR /&gt;
inserted block) is to have the user pick a point, and then insert a block at&lt;BR /&gt;
that point, when the user clicks the "InsertBlock" button. so it's a&lt;BR /&gt;
pathetically simple application - the only other thing it does is decide&lt;BR /&gt;
which block to insert and if it doesn't exist, it creates it- big deal!&lt;BR /&gt;
&lt;BR /&gt;
So in that context, would you recommend an activex.exe or and activex.dll.?&lt;BR /&gt;
&lt;BR /&gt;
and in terms of the "calling client":&lt;BR /&gt;
as I understand it, there is no possibility of running a vb or vba app in&lt;BR /&gt;
autocad without the calling client being a lisp function.  Is that&lt;BR /&gt;
incorrect?&lt;BR /&gt;
so....&lt;BR /&gt;
would I make a sub that called the form and then run the sub with&lt;BR /&gt;
vl-vbarun(just like I'm doing now with the dvb file?) or would I use a lisp&lt;BR /&gt;
construct similar to the one I mentioned re: calling a .dll? and then&lt;BR /&gt;
invoking the sub(method) with the lisp syntax (once I get it figured out&lt;BR /&gt;
correctly)&lt;BR /&gt;
thanks, as always, for your help&lt;BR /&gt;
(sorry if I'm being incredibly obtuse here...as opposed to just my normal&lt;BR /&gt;
obtusosity) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Mark&lt;/FRANKO&gt;</description>
      <pubDate>Tue, 15 Jul 2003 07:17:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307304#M62032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-15T07:17:06Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307305#M62033</link>
      <description>Mark Propst wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Now I wanted to turn the .dvb file into a compiled type file. (from&lt;BR /&gt;
&amp;gt; your posts, either an activex.exe or and activex.dll)&lt;BR /&gt;
&lt;BR /&gt;
A DVB cannot produce either type of file. You'll have to port the code&lt;BR /&gt;
to Visual Basic, not VBA if you want an EXE or a DLL.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; (from many posts i've read I thought the .dll was the way to go&lt;BR /&gt;
&amp;gt; because everyone mentions the performance issue, now I need to&lt;BR /&gt;
&amp;gt; research the activex.exe methodology because you mentioned, if I&lt;BR /&gt;
&amp;gt; don't mind "Compartmentalizing" the app.  unfortunately I don't&lt;BR /&gt;
&amp;gt; understand what that means cause I'm not up on the details of an&lt;BR /&gt;
&amp;gt; activex.exe interacting with acad. so I don't know whether I "should"&lt;BR /&gt;
&amp;gt; mind "compartmentalizing" or not! obviously I've got a lot of&lt;BR /&gt;
&amp;gt; research to do.&lt;BR /&gt;
&lt;BR /&gt;
Only go with the ActiveX executable if a DLL is not desirable.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; If you think of this app as a simple form with a command button on&lt;BR /&gt;
&amp;gt; it, the only action the entire app does (other than set some&lt;BR /&gt;
&amp;gt; parameters for the inserted block) is to have the user pick a point,&lt;BR /&gt;
&amp;gt; and then insert a block at that point, when the user clicks the&lt;BR /&gt;
&amp;gt; "InsertBlock" button. so it's a pathetically simple application - the&lt;BR /&gt;
&amp;gt; only other thing it does is decide which block to insert and if it&lt;BR /&gt;
&amp;gt; doesn't exist, it creates it- big deal!&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; So in that context, would you recommend an activex.exe or and&lt;BR /&gt;
&amp;gt; activex.dll.?&lt;BR /&gt;
&lt;BR /&gt;
DLL.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; and in terms of the "calling client":&lt;BR /&gt;
&amp;gt; as I understand it, there is no possibility of running a vb or vba&lt;BR /&gt;
&amp;gt; app in autocad without the calling client being a lisp function.  Is&lt;BR /&gt;
&amp;gt; that incorrect?&lt;BR /&gt;
&lt;BR /&gt;
Yes, that is incorrect. You can also use VBA to create your client. The&lt;BR /&gt;
DVB will contain only the code necessary to create an instance of your&lt;BR /&gt;
class so one Public Sub is all you'd need.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; (sorry if I'm being incredibly obtuse here...as opposed to just my&lt;BR /&gt;
&amp;gt; normal obtusosity) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
As if I didn't pester folks around just as much five years ago. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
There are 10 kinds of people. Those who understand binary and those who&lt;BR /&gt;
don't.&lt;BR /&gt;
&lt;BR /&gt;
http://code.acadx.com</description>
      <pubDate>Tue, 15 Jul 2003 07:34:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307305#M62033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-15T07:34:07Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307306#M62034</link>
      <description>"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:B863230A3BB594254533BEC622452D9D@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; A DVB cannot produce either type of file. You'll have to port the code&lt;BR /&gt;
&amp;gt; to Visual Basic, not VBA if you want an EXE or a DLL.&lt;BR /&gt;
&lt;BR /&gt;
i *do* realize that much, that's what I meant.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Only go with the ActiveX executable if a DLL is not desirable.&lt;BR /&gt;
&lt;BR /&gt;
why would it be not desirable?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; DLL.&lt;BR /&gt;
cool.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; and in terms of the "calling client":&lt;BR /&gt;
&amp;gt; &amp;gt; as I understand it, there is no possibility of running a vb or vba&lt;BR /&gt;
&amp;gt; &amp;gt; app in autocad without the calling client being a lisp function.  Is&lt;BR /&gt;
&amp;gt; &amp;gt; that incorrect?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Yes, that is incorrect. You can also use VBA to create your client. The&lt;BR /&gt;
&amp;gt; DVB will contain only the code necessary to create an instance of your&lt;BR /&gt;
&amp;gt; class so one Public Sub is all you'd need.&lt;BR /&gt;
&lt;BR /&gt;
but I can't call the vba dvb without using a lisp function to call it,&lt;BR /&gt;
that's what I meant in the sentence above.&lt;BR /&gt;
is that not correct?&lt;BR /&gt;
so ultimately the lisp is the calling client, is it not?&lt;BR /&gt;
a lisp client calling a vba client, calling a dll server????&lt;BR /&gt;
or just eliminate the middle man and have the lisp call the dll with invoke&lt;BR /&gt;
method&lt;BR /&gt;
or am i missing something yet again (yeah, I know, I'm missing a whole lot&lt;BR /&gt;
of somethings)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; As if I didn't pester folks around just as much five years ago. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
hmm, I don't remember that!&lt;BR /&gt;
&lt;BR /&gt;
Thanks again,&lt;BR /&gt;
Mark&lt;/FRANKO&gt;</description>
      <pubDate>Tue, 15 Jul 2003 11:25:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307306#M62034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-15T11:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to call acad from std. exe?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307307#M62035</link>
      <description>Hi Mark,  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
How did you get on with this?  I was away last week and it's taken me until today (Thursday!!) to catch up on all my emails and the discussion group postings and still try and fit some real work in somewhere  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;  so I'm sorry I'm only getting to see your question now.  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
I can see Ed and Frank have provided you with a lot of info and maybe you've achieved what you were trying to accomplish by now.  My interest is due to the fact that we were spurred by the same requirement, ie I wrote a dvb in VBA and then wanted to protect the source code.  I dropped the code into a standalone VB exe but the performance was abysmal (as has been alluded) so instead we ported it to an ActiveX DLL.  After some experimentation the result was fairly successful.  It's initiated from a button in AutoCAD and doesn't require any lisp.  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
Let me know if you want more details posted.  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
Regards  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
Wayne Ivory  &lt;BR /&gt;&lt;BR /&gt;
IT Analyst Programmer  &lt;BR /&gt;&lt;BR /&gt;
Wespine Industries Pty Ltd  &lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jul 2003 20:03:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-call-acad-from-std-exe/m-p/307307#M62035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-23T20:03:15Z</dc:date>
    </item>
  </channel>
</rss>

