<?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: .NET Subassembly Speed in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5911010#M37956</link>
    <description>&lt;P&gt;The custom folder was full read/write for all users.&lt;/P&gt;
&lt;P&gt;I did try and add to Trusted Locations to see if that was an issue but no luck.&lt;/P&gt;
&lt;P&gt;By default neither folder is listed in Trusted Locations and yet there is no security warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2015 00:54:33 GMT</pubDate>
    <dc:creator>GTVic</dc:creator>
    <dc:date>2015-11-17T00:54:33Z</dc:date>
    <item>
      <title>.NET Subassembly Speed</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5907900#M37953</link>
      <description>&lt;P&gt;My subassemblies are executing very slowly, probably a minimum of 20x slower than stock subassemblies and this seems to be simply based on where I install the VB.NET DLL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I moved the DLL from C:\ProgramData\Autodesk\MySAFolder to C:\ProgramData\Autodesk\C3D 2015\enu and the SAs run at expected speed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would prefer not to install to a version specific location so any ideas on why the folder location causes this issue would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2015 00:51:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5907900#M37953</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2015-11-14T00:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Subassembly Speed</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5910817#M37954</link>
      <description>&lt;P&gt;No answer on the why of this problem as of yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Subassembly Installation:&lt;/P&gt;
&lt;P&gt;Folder #1 - ATC, CHM and ATC support files (PNG, etc.)&lt;/P&gt;
&lt;P&gt;Folder #2 - VB.NET DLL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Folder #1 = %ProgramData%\Autodesk\&amp;lt;custom folder name&amp;gt;\&lt;/P&gt;
&lt;P&gt;Folder #2 = %ProgramData%\Autodesk\C3D 2016\enu\ or %AeccContent_Dir%&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where %ProgramData% can be assumed to be C:\ProgramData&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The advantage to this setup is a common fixed location for the ATC and HELP files and the references inside the files. The DLL being in a version specific location would be a problem except that you can specify the filename only (no path) in the ATC and palettes and Civil 3D will find it for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately you can't put %ProgramData% into the ATC files or the palette but assuming almost 100% of computers use C:\ProgramData then you can get away with a fixed reference to the ATC, CHM and support files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this setup you can support multiple Civil 3D versions with the same 3 ATC files (catalog ATC, catalog tools ATC and palette ATC) and a fairly simple installation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 22:48:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5910817#M37954</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2015-11-16T22:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Subassembly Speed</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5910990#M37955</link>
      <description>&lt;P&gt;Have you checked permissions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does your "&lt;SPAN&gt;Folder #1 = %ProgramData%\Autodesk\&amp;lt;custom folder name&amp;gt;\"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;have the same permissions as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Folder #2 = %ProgramData%\Autodesk\C3D 2016\enu\ or %AeccContent_Dir%"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Edit: check that - probably no relation to speed anyway&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 00:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5910990#M37955</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2015-11-17T00:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Subassembly Speed</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5911010#M37956</link>
      <description>&lt;P&gt;The custom folder was full read/write for all users.&lt;/P&gt;
&lt;P&gt;I did try and add to Trusted Locations to see if that was an issue but no luck.&lt;/P&gt;
&lt;P&gt;By default neither folder is listed in Trusted Locations and yet there is no security warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 00:54:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5911010#M37956</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2015-11-17T00:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Subassembly Speed</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5911513#M37957</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not have much experience with Civil 3D, so my reply may not be specific to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in general, AutoCAD could be searching many other folders before it finds the files in the folder where you placed it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try using the ProcessMonitor to see which folders are being searched and its order.&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&lt;A href="https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx" target="_blank"&gt;https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to exclude many of the messages that ProcessMonitor displays that are not relevant. Right click on the unwanted messages and exclude them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, have you tried adding the path to&amp;nbsp;the AutoCAD support path or the system PATH variable ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that does not help, you may need to post your query to the Civil3D discussion forum to see if this is a known behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 11:17:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5911513#M37957</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-11-17T11:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Subassembly Speed</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5912656#M37958</link>
      <description>&lt;P&gt;Thank you for the reply, I have checked with Process Monitor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It attempts one time to find the DLL in the following location:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;lt;current working folder&amp;gt;&lt;FONT color="#993300"&gt;\file:\&lt;FONT color="#008000"&gt;&amp;lt;path\filename.atc of tool palette&amp;gt;&lt;/FONT&gt;\&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&amp;lt;DLL name&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This fails because of an invalid name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All further accesses to the DLL are directly from the &lt;STRONG&gt;C:\ProgramData\Autodesk\C3D 2015\enu&lt;/STRONG&gt; folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the above file access error appears to be associated with me clicking on the subassembly on the tool palette. If the subassembly is already in the drawing then modifying it or rebuilding the corridor shows all file accesses from the correct location. So I think file access or searching should not be a concern with my current solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Conversely, if I put the DLL in C:\ProgramData\Autodesk\MySAFolder, my original solution that was very slow, and write that path into the tool palette entry, then initially Civil 3D finds the file directly but then it goes on to search a wide number of other folders. I count 7 searches of 356 directories for a total of 2,492 searches in a span of 6 seconds for a single insertion of 1 subassembly in layout mode. A corridor rebuild using 2 subassembies on 25 stations gets 19,936 NO SUCH FILE accesses in 13 seconds. That is 356 unique directories searched 56 times for 2 subassemblies on 25 stations.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 21:39:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5912656#M37958</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2015-11-17T21:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Subassembly Speed</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5913565#M37959</link>
      <description>Not sure why Civil 3D is getting confused about the DLL path... maybe because you have different folders to place the files.&lt;BR /&gt;&lt;BR /&gt;Anyway, you can "help Civil 3D" by hooking into the AppDomain.CurrentDomain.AssemblyResolve event and, if your DLL is the one not found, call on the correct location.</description>
      <pubDate>Wed, 18 Nov 2015 13:12:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5913565#M37959</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-11-18T13:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Subassembly Speed</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5914956#M37960</link>
      <description>&lt;P&gt;Thanks for the suggestion. The result was actually&amp;nbsp;because I was trying to use a single folder. It seems like it only wants to find the DLLs in or below&amp;nbsp;%AeccContent_Dir%.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 03:04:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-subassembly-speed/m-p/5914956#M37960</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2015-11-19T03:04:15Z</dc:date>
    </item>
  </channel>
</rss>

