<?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: How to keep AutoCAD hidden while NetLoading in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-keep-autocad-hidden-while-netloading/m-p/1896496#M78912</link>
    <description>Try these two approches:&lt;BR /&gt;
&lt;BR /&gt;
1. Load your .NET DLL at Acad startup. Say, you can add&lt;BR /&gt;
&lt;BR /&gt;
(command "_.NETLOAD" "C:\\folder\\NETDLL.dll")&lt;BR /&gt;
&lt;BR /&gt;
into Acad's Acad200x.lsp or Acad200xdoc.lsp, so that your NET Dll gets &lt;BR /&gt;
loaded when Acad/Acad drawing starts/opens&lt;BR /&gt;
&lt;BR /&gt;
2. Make your NET DLL command load on demand by modifying Windows registry.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;CHRNIT&gt; wrote in message news:5494371@discussion.autodesk.com...&lt;BR /&gt;
Hi.&lt;BR /&gt;
I'm writing an app that remotely starts AutoCAD and does some processing.&lt;BR /&gt;
For the startup part, I use COM, for the whole lot of functionality I use &lt;BR /&gt;
.NET API.&lt;BR /&gt;
My problem now is the user shouldn't see AutoCAD popping up.&lt;BR /&gt;
When starting ACAD using COM, the window is hidden from view anyway, it only &lt;BR /&gt;
pops up when some user interaction is required.&lt;BR /&gt;
And here the problem begins:&lt;BR /&gt;
After starting ACAD using COM the user won't see any ACAD-window.&lt;BR /&gt;
Now, to go on with my app, I need to load the .NET assembly.&lt;BR /&gt;
I do this using _acadApp.SendCommand( string.Format("netload &lt;BR /&gt;
assembly.dll\n"))&lt;BR /&gt;
This works just fine but leads to a visible ACAD-Window.&lt;BR /&gt;
When I add _acadApp.Visible = false after loading the dll, the window will &lt;BR /&gt;
disappear again.&lt;BR /&gt;
This causes a flickering ACAD-window between the calls to netload and &lt;BR /&gt;
visible = false.&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to load .NET dlls without popping up the ACAD-window?&lt;BR /&gt;
Would be great if I could hide the window completely from view-  as long &lt;BR /&gt;
there's no error the user should be informed about.&lt;BR /&gt;
It's nice that the window will show up when some kind of user interaction is &lt;BR /&gt;
required, but in this case it's only disturbing.&lt;BR /&gt;
&lt;BR /&gt;
Maybe it is possible to load the DLL by the COM-interface?&lt;BR /&gt;
There are methods to load ARX and DVB files, but I haven't found anything &lt;BR /&gt;
yet regarding DLLs &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
I'd appreciate any suggestion you have to this problem.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards&lt;BR /&gt;
Christian Nitschkowski&lt;/CHRNIT&gt;</description>
    <pubDate>Wed, 21 Feb 2007 20:24:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-02-21T20:24:11Z</dc:date>
    <item>
      <title>How to keep AutoCAD hidden while NetLoading</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-keep-autocad-hidden-while-netloading/m-p/1896495#M78911</link>
      <description>Hi.&lt;BR /&gt;
I'm writing an app that remotely starts AutoCAD and does some processing.&lt;BR /&gt;
For the startup part, I use COM, for the whole lot of functionality I use .NET API.&lt;BR /&gt;
My problem now is the user shouldn't see AutoCAD popping up.&lt;BR /&gt;
When starting ACAD using COM, the window is hidden from view anyway, it only pops up when some user interaction is required.&lt;BR /&gt;
And here the problem begins:&lt;BR /&gt;
After starting ACAD using COM the user won't see any ACAD-window.&lt;BR /&gt;
Now, to go on with my app, I need to load the .NET assembly.&lt;BR /&gt;
I do this using _acadApp.SendCommand( string.Format("netload assembly.dll\n"))&lt;BR /&gt;
This works just fine but leads to a visible ACAD-Window.&lt;BR /&gt;
When I add _acadApp.Visible = false after loading the dll, the window will disappear again.&lt;BR /&gt;
This causes a flickering ACAD-window between the calls to netload and visible = false.&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to load .NET dlls without popping up the ACAD-window?&lt;BR /&gt;
Would be great if I could hide the window completely from view-  as long there's no error the user should be informed about.&lt;BR /&gt;
It's nice that the window will show up when some kind of user interaction is required, but in this case it's only disturbing.&lt;BR /&gt;
&lt;BR /&gt;
Maybe it is possible to load the DLL by the COM-interface?&lt;BR /&gt;
There are methods to load ARX and DVB files, but I haven't found anything yet regarding DLLs &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
I'd appreciate any suggestion you have to this problem.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards&lt;BR /&gt;
Christian Nitschkowski</description>
      <pubDate>Wed, 21 Feb 2007 15:34:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-keep-autocad-hidden-while-netloading/m-p/1896495#M78911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-21T15:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep AutoCAD hidden while NetLoading</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-keep-autocad-hidden-while-netloading/m-p/1896496#M78912</link>
      <description>Try these two approches:&lt;BR /&gt;
&lt;BR /&gt;
1. Load your .NET DLL at Acad startup. Say, you can add&lt;BR /&gt;
&lt;BR /&gt;
(command "_.NETLOAD" "C:\\folder\\NETDLL.dll")&lt;BR /&gt;
&lt;BR /&gt;
into Acad's Acad200x.lsp or Acad200xdoc.lsp, so that your NET Dll gets &lt;BR /&gt;
loaded when Acad/Acad drawing starts/opens&lt;BR /&gt;
&lt;BR /&gt;
2. Make your NET DLL command load on demand by modifying Windows registry.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;CHRNIT&gt; wrote in message news:5494371@discussion.autodesk.com...&lt;BR /&gt;
Hi.&lt;BR /&gt;
I'm writing an app that remotely starts AutoCAD and does some processing.&lt;BR /&gt;
For the startup part, I use COM, for the whole lot of functionality I use &lt;BR /&gt;
.NET API.&lt;BR /&gt;
My problem now is the user shouldn't see AutoCAD popping up.&lt;BR /&gt;
When starting ACAD using COM, the window is hidden from view anyway, it only &lt;BR /&gt;
pops up when some user interaction is required.&lt;BR /&gt;
And here the problem begins:&lt;BR /&gt;
After starting ACAD using COM the user won't see any ACAD-window.&lt;BR /&gt;
Now, to go on with my app, I need to load the .NET assembly.&lt;BR /&gt;
I do this using _acadApp.SendCommand( string.Format("netload &lt;BR /&gt;
assembly.dll\n"))&lt;BR /&gt;
This works just fine but leads to a visible ACAD-Window.&lt;BR /&gt;
When I add _acadApp.Visible = false after loading the dll, the window will &lt;BR /&gt;
disappear again.&lt;BR /&gt;
This causes a flickering ACAD-window between the calls to netload and &lt;BR /&gt;
visible = false.&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to load .NET dlls without popping up the ACAD-window?&lt;BR /&gt;
Would be great if I could hide the window completely from view-  as long &lt;BR /&gt;
there's no error the user should be informed about.&lt;BR /&gt;
It's nice that the window will show up when some kind of user interaction is &lt;BR /&gt;
required, but in this case it's only disturbing.&lt;BR /&gt;
&lt;BR /&gt;
Maybe it is possible to load the DLL by the COM-interface?&lt;BR /&gt;
There are methods to load ARX and DVB files, but I haven't found anything &lt;BR /&gt;
yet regarding DLLs &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
I'd appreciate any suggestion you have to this problem.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards&lt;BR /&gt;
Christian Nitschkowski&lt;/CHRNIT&gt;</description>
      <pubDate>Wed, 21 Feb 2007 20:24:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-keep-autocad-hidden-while-netloading/m-p/1896496#M78912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-21T20:24:11Z</dc:date>
    </item>
  </channel>
</rss>

