<?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: NETLOAD command does not work with full path to Library in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4874630#M45098</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;within LISP statements you should use the forward-slash "/" instead of the backslash "\" as directory separator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH, - alfred -&lt;/P&gt;</description>
    <pubDate>Mon, 10 Mar 2014 09:46:57 GMT</pubDate>
    <dc:creator>Alfred.NESWADBA</dc:creator>
    <dc:date>2014-03-10T09:46:57Z</dc:date>
    <item>
      <title>NETLOAD command does not work with full path to Library</title>
      <link>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4874622#M45097</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am trying to call the NETLOAD command from the click of a button&amp;nbsp; and passing the path of the class libray as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I observe that the NETLOAD command is looking only at User docs path for the dl and not the fullpath that is specifed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas or thoughts on this ??&lt;/P&gt;&lt;PRE&gt;CommandParameter="(command "NETLOAD" "C:\Users\UserName\AppData\Roaming\Autodesk\ApplicationPlugins\DLL  ")";

  doc.SendStringToExecute( button.CommandParameter.ToString(), true, false, true);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2014 09:37:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4874622#M45097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-10T09:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: NETLOAD command does not work with full path to Library</title>
      <link>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4874630#M45098</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;within LISP statements you should use the forward-slash "/" instead of the backslash "\" as directory separator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH, - alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2014 09:46:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4874630#M45098</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2014-03-10T09:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: NETLOAD command does not work with full path to Library</title>
      <link>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4874664#M45099</link>
      <description>&lt;P&gt;Hi.. for info, with AUTOCAD 2013 - 2014 you have to add the path in the option of acad for bypass the security of application. (if you use acad v2013+).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2014 10:12:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4874664#M45099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-10T10:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: NETLOAD command does not work with full path to Library</title>
      <link>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4874670#M45100</link>
      <description>&lt;P&gt;Hi AubelecBE&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the quick reply but can you please provide an example or point to any refernces that provides an example in .NET&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2014 10:20:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4874670#M45100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-10T10:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: NETLOAD command does not work with full path to Library</title>
      <link>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4875146#M45101</link>
      <description>&lt;P&gt;1. The code is C#, right? How can you "observe&amp;nbsp;that the&amp;nbsp;NETLOAD..."? Because, to me, the code should not even be compliled. purely by syntex (in order to be compiled):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CommandParameter="(command "NETLOAD" "C:\Users\UserName\AppData\Roaming\Autodesk\ApplicationPlugins\DLL&amp;nbsp; ")";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CommandParameter="(command \"NETLOAD\" \"C:\\Users\\UserName\\AppData\\Roaming\\Autodesk\\ApplicationPlugins\DLL&amp;nbsp; \")";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;because you need to escape the quote (") and the backslash (\) when they are inside a literal string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Then, since this command string is an lisp command, you need to double the backslash in the file path, or use "/" instead, as Alfred pointed out. Therefore, the lien of code should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CommandParameter="(command \"NETLOAD\" \"C:/Users/UserName/AppData/Roaming/Autodesk/ApplicationPlugins/DLL&amp;nbsp; ")";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Are you should you want to NETLOAD a DLL file, named as "DLL" (without file extension "dll")? If the file is oddly enough named as DLL.dll, then the code should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CommandParameter="(command \"NETLOAD\" \"C:/Users/UserName/AppData/Roaming/Autodesk/ApplicationPlugins/DLL.dll&amp;nbsp; ")";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. If you are using AutoCAd2014, you must make sure the folder of this Dll.dll is trusted, as the other reply pointed out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5. Lastly, since your app is already NETLOADed .NET app, you do not have to call Document.SendStringToExecute() to NETLOAD a .NET assembly, since it runs asynchly, and if your next line relies on the assembly to be loaded, then you may run into issue. You can use System.reflection.Assembly.Load()/LoadFromFile(). This, of course also suject to the trusted path issue, if you are using Acad2014.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2014 13:50:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4875146#M45101</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2014-03-10T13:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: NETLOAD command does not work with full path to Library</title>
      <link>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4880280#M45102</link>
      <description>&lt;P&gt;Hi Norman,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the real good explaination.&lt;/P&gt;&lt;P&gt;Yes the code is in C#. As said I am using the char(34) to handle&amp;nbsp; escaping of double quote.&lt;/P&gt;&lt;P&gt;I only posted the snippet of the tring to give an idea.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I tried with Assembly.Load() with the full path (from Program Files ) crashes ACAD but&amp;nbsp; works from&amp;nbsp;a&lt;/SPAN&gt;&lt;SPAN&gt;ny ther location.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you shed some light on&amp;nbsp; as I am&amp;nbsp; newbie into Acad programming.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2014 08:20:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/netload-command-does-not-work-with-full-path-to-library/m-p/4880280#M45102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-12T08:20:01Z</dc:date>
    </item>
  </channel>
</rss>

