One of the things I was wondering about is how can I run those amazing addons from the ADN from the network, since when you netload them, because of the set in restrictions,  Autocad errors in the following way:

image

The only way you can use the dll is to run it from a local folder. But from the CAD management point of view, where we want to store most of the common data in the network, then we have to make Autocad let us load them from the network.

Therefore in order to be able to load and run network stored dll, you will need to do the following:

  • locate your acad.exe.config file at : C:\Program Files\Autodesk\AutoCAD Civil 3D 2012\Acad.exe.Config
  • Open the file in Notepad and you will find the following configuration:

<configuration>
    <startup useLegacyV2RuntimeActivationPolicy=”true”>
        <supportedRuntime version=”v4.0″/>
    </startup>
    <!–All assemblies in AutoCAD are fully trusted so there’s no point generating publisher evidence–>
    <runtime>
        <generatePublisherEvidence enabled=”false”/>
        <assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″><probing privatePath=”bin\FDO;bin;Plugins\Workflow\Activities”/></assemblyBinding></runtime>
</configuration>

  • Now modify the data in the file to look like this:

<configuration>
    <startup useLegacyV2RuntimeActivationPolicy=”true”>
        <supportedRuntime version=”v4.0″/>
    </startup>
    <!–All assemblies in AutoCAD are fully trusted so there’s no point generating publisher evidence–>
    <runtime>
        <loadFromRemoteSources enabled=”true”/>
        <generatePublisherEvidence enabled=”false”/>
        <assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″><probing privatePath=”bin\FDO;bin;Plugins\Workflow\Activities”/></assemblyBinding></runtime>
<system.diagnostics>
    <sources>
      <source name=”System.Windows.Data” switchName=”SourceSwitch”>
        <listeners>
          <remove name=”Default” />
        </listeners>
      </source>
    </sources>
  </system.diagnostics>
</configuration>

I have to mention that in the basic form the only thing you need to add is the highlighted in red line in between the <runtime> and the </runtime> areas of the file.

Save and there you go. You should be able now to call out network stored dll. Look at the screenshot below and you will see no error on the callout for the load of the dll.

image

Share
Tagged with →  
Share →

Leave a Reply

Your email address will not be published. Required fields are marked *

*

1,288 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>