<?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: Load a VB.NET dll with a Lisp routine in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679546#M81324</link>
    <description>Could you give me an example of how to create a lisp routine with the s::startup routine so the netload wil be performed after initialization.&lt;BR /&gt;
&lt;BR /&gt;
This because netload has to performed after initialization</description>
    <pubDate>Tue, 20 Jun 2006 05:06:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-06-20T05:06:20Z</dc:date>
    <item>
      <title>Load a VB.NET dll with a Lisp routine</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679541#M81319</link>
      <description>I am used to load my VB.NET library's with a lisp routine.&lt;BR /&gt;
&lt;BR /&gt;
This lisp routine is added to the "Startup Suite", so it should be loaded every time I start this profile of Autocad.&lt;BR /&gt;
When I look in the list of loaded applications, this lisp routine shows up, so it should be loaded. If this is so then the command line in it (load the VB.NET dll) is not executed. &lt;BR /&gt;
&lt;BR /&gt;
When I add this line to the Acad.lsp the dll will be loaded, but then it will be loaded in every profile and that is not what I want.&lt;BR /&gt;
&lt;BR /&gt;
Is there another method to just load the dll I want in the profile I have chosen ? It should happen automaticly since my users dont want to push a button to start the loading of the dll.&lt;BR /&gt;
&lt;BR /&gt;
with kind regards,&lt;BR /&gt;
&lt;BR /&gt;
Harold van Aarsen</description>
      <pubDate>Mon, 19 Jun 2006 14:10:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679541#M81319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-19T14:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Load a VB.NET dll with a Lisp routine</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679542#M81320</link>
      <description>How you try to load VBA.NET dll? With (command ..) function?&lt;BR /&gt;
I've not tested that but you can try to load it with (vla-SendCommand ...) function.</description>
      <pubDate>Mon, 19 Jun 2006 14:45:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679542#M81320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-19T14:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load a VB.NET dll with a Lisp routine</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679543#M81321</link>
      <description>I use the following line:&lt;BR /&gt;
&lt;BR /&gt;
(command "Netload" "c:/hsb-assist/Vz_Settings/DotNet/2006/acVogelzang2006.dll")&lt;BR /&gt;
&lt;BR /&gt;
Could you tell me something more about the val-sendcommand ?</description>
      <pubDate>Mon, 19 Jun 2006 17:07:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679543#M81321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-19T17:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Load a VB.NET dll with a Lisp routine</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679544#M81322</link>
      <description>[code]&lt;BR /&gt;
(setvar "filedia" 0)&lt;BR /&gt;
(vl-load-com)&lt;BR /&gt;
(vla-sendcommand (vla-get-activedocument (vlax-get-acad-object)) "_.netload \"c:/hsb-assist/Vz_Settings/DotNet/2006/acVogelzang2006.dll\"\n")&lt;BR /&gt;
[/code]</description>
      <pubDate>Mon, 19 Jun 2006 18:17:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679544#M81322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-19T18:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Load a VB.NET dll with a Lisp routine</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679545#M81323</link>
      <description>where have you put it?&lt;BR /&gt;
&lt;BR /&gt;
if it is in your acaddoc.lsp it may be exicuted before the command line is &lt;BR /&gt;
initialized so doesn't actually run.  if so look at (defun s::startup) this &lt;BR /&gt;
is run after the commandline is initilaized.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;HAROLDVANAARSEN&gt; wrote in message news:5210988@discussion.autodesk.com...&lt;BR /&gt;
I use the following line:&lt;BR /&gt;
&lt;BR /&gt;
(command "Netload" &lt;BR /&gt;
"c:/hsb-assist/Vz_Settings/DotNet/2006/acVogelzang2006.dll")&lt;BR /&gt;
&lt;BR /&gt;
Could you tell me something more about the val-sendcommand ?&lt;/HAROLDVANAARSEN&gt;</description>
      <pubDate>Tue, 20 Jun 2006 01:36:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679545#M81323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-20T01:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load a VB.NET dll with a Lisp routine</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679546#M81324</link>
      <description>Could you give me an example of how to create a lisp routine with the s::startup routine so the netload wil be performed after initialization.&lt;BR /&gt;
&lt;BR /&gt;
This because netload has to performed after initialization</description>
      <pubDate>Tue, 20 Jun 2006 05:06:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679546#M81324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-20T05:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load a VB.NET dll with a Lisp routine</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679547#M81325</link>
      <description>is it this simple ????!&lt;BR /&gt;
&lt;BR /&gt;
  (defun s::startup ()&lt;BR /&gt;
    (command "Netload" "c:/hsb-assist/Vz_Settings/DotNet/2006/acVogelzang2006.dll")&lt;BR /&gt;
  );defun s::startup&lt;BR /&gt;
&lt;BR /&gt;
It seems do its job just fine.&lt;BR /&gt;
&lt;BR /&gt;
Please if somebody has other ideas please tell them here I am always in for improvement.</description>
      <pubDate>Tue, 20 Jun 2006 05:16:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679547#M81325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-20T05:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load a VB.NET dll with a Lisp routine</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679548#M81326</link>
      <description>from the autocad help&lt;BR /&gt;
&lt;BR /&gt;
(defun-q MYSTARTUP ( )... your startup function ... )(setq S::STARTUP &lt;BR /&gt;
(append S::STARTUP MYSTARTUP))note this will run each time a drawing is &lt;BR /&gt;
loaded&lt;HAROLDVANAARSEN&gt; wrote in message &lt;BR /&gt;
news:5211693@discussion.autodesk.com...&lt;BR /&gt;
is it this simple ????!&lt;BR /&gt;
&lt;BR /&gt;
  (defun s::startup ()&lt;BR /&gt;
    (command "Netload" &lt;BR /&gt;
"c:/hsb-assist/Vz_Settings/DotNet/2006/acVogelzang2006.dll")&lt;BR /&gt;
  );defun s::startup&lt;BR /&gt;
&lt;BR /&gt;
It seems do its job just fine.&lt;BR /&gt;
&lt;BR /&gt;
Please if somebody has other ideas please tell them here I am always in for &lt;BR /&gt;
improvement.&lt;/HAROLDVANAARSEN&gt;</description>
      <pubDate>Tue, 20 Jun 2006 07:20:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679548#M81326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-20T07:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load a VB.NET dll with a Lisp routine</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679549#M81327</link>
      <description>Harold, you do need to use the append approach shown in the documentation. &lt;BR /&gt;
The approach you used in your post overwrites any other prior startup &lt;BR /&gt;
functions, which could cause other customizations to fail.&lt;BR /&gt;
&lt;BR /&gt;
Also, the append approach assumes the other developers used defun-q when &lt;BR /&gt;
they appended to the S::Startup function, which can be a poor assumption.&lt;BR /&gt;
&lt;BR /&gt;
&lt;&gt;&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
R. Robert Bell&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Mark Gardiner" &lt;MARKGARDINER&gt; wrote in message &lt;BR /&gt;
news:5211718@discussion.autodesk.com...&lt;BR /&gt;
from the autocad help&lt;BR /&gt;
&lt;BR /&gt;
(defun-q MYSTARTUP ( )... your startup function ... )(setq S::STARTUP&lt;BR /&gt;
(append S::STARTUP MYSTARTUP))note this will run each time a drawing is&lt;BR /&gt;
loaded&lt;HAROLDVANAARSEN&gt; wrote in message&lt;BR /&gt;
news:5211693@discussion.autodesk.com...&lt;BR /&gt;
is it this simple ????!&lt;BR /&gt;
&lt;BR /&gt;
  (defun s::startup ()&lt;BR /&gt;
    (command "Netload"&lt;BR /&gt;
"c:/hsb-assist/Vz_Settings/DotNet/2006/acVogelzang2006.dll")&lt;BR /&gt;
  );defun s::startup&lt;BR /&gt;
&lt;BR /&gt;
It seems do its job just fine.&lt;BR /&gt;
&lt;BR /&gt;
Please if somebody has other ideas please tell them here I am always in for&lt;BR /&gt;
improvement.&lt;/HAROLDVANAARSEN&gt;&lt;/MARKGARDINER&gt;&lt;/&gt;</description>
      <pubDate>Tue, 20 Jun 2006 15:18:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-a-vb-net-dll-with-a-lisp-routine/m-p/1679549#M81327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-20T15:18:20Z</dc:date>
    </item>
  </channel>
</rss>

