<?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: Autocad vs autocad mechanical (Urgent!) in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625745#M46960</link>
    <description>&lt;P&gt;It's looking like you're going to have to use COM, my friend... Everything I'm finding for .NET + Mechanical is in COM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps someone more knowledgeable than I can verify?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2013 17:20:12 GMT</pubDate>
    <dc:creator>BlackBox_</dc:creator>
    <dc:date>2013-11-15T17:20:12Z</dc:date>
    <item>
      <title>Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625435#M46954</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just finished developing an plugin for Autocad 2014 using the managed .net api&lt;/P&gt;&lt;P&gt;It appears that the client also want to use this addin in Autocad Mechanical 2014, but when i run netload on my dll nothing happens and my command is not available. Some googling gave me the impression that autocad mechanical only has a COM and c++ api, is that correct? is there any way i can make my code work in autocad mechanical?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can give me a quick answer here!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Henrik&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 16:15:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625435#M46954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-15T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625563#M46955</link>
      <description>&lt;P&gt;Sounds like there's an issue with your code, as (generally speaking) an assembly compiled for vanilla AutoCAD will load into one if its verticals just fine... As example, I use all of my AutoCAD plug-ins with Civil 3D on a daily basis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hard to tell for sure though, as you've not posted any code, such as any Initialize() evaluation, etc.. More information is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, instead of manually NETLOADing your assembly, you might try creating an Autoload .bundle since you're using 2014.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 16:38:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625563#M46955</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2013-11-15T16:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625589#M46956</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1206685"&gt;@BlackBox_&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Sounds like there's an issue with your code, as (generally speaking) an assembly compiled for vanilla AutoCAD will load into one if its verticals just fine... As example, I use all of my AutoCAD plug-ins with Civil 3D on a daily basis.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Apparently, I am mistaken... I'm only finding ObjectARX, and COM developer guides here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://usa.autodesk.com/adsk/servlet/index?id=14952981&amp;amp;siteID=123112"&gt;http://usa.autodesk.com/adsk/servlet/index?id=14952981&amp;amp;siteID=123112&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for any confusion... I wonder if these API's are only for the Mechanical aspects of the product, and that they still support AutoCAD's .NET API???&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 16:43:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625589#M46956</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2013-11-15T16:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625687#M46957</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good to know that i didnt make all that code for nothing!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my addin is pretty big, but below i've pasted the code for the main class,&lt;/P&gt;&lt;P&gt;I mananged to get it installed on my dev pc now, and with visual studio debugger i can at least see that it loads the dll and steps into the Initialize function&lt;/P&gt;&lt;P&gt;but any idea why my command methods are not available?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just saw your second post: jup that developer guide is what scared me too.... but at least it loads, so maybe there is some hocus pocus setting somewhere that makes my commands invisible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Runtime;
using Tagit;
using Application = Autodesk.AutoCAD.ApplicationServices.Application;

[assembly: CommandClass(typeof(Program))]
[assembly: ExtensionApplication(typeof(Program))]
namespace Tagit 
{
    class Program : IExtensionApplication
    {
        public static TagitMainAutocad TagitMain;
        private static Document Doc;



        [CommandMethod("TTBalloon")]
        public static void PlaceBalloon()
        {
            if (TagitMain == null)
            {
                if (!ActivateDocument(true))
                    return;
            }
            TagitMain.ShowPosForm();
        }
        [CommandMethod("TTBOM")]
        public static void ShowBOMForm()
        {
            if (TagitMain == null)
            {
                if(!ActivateDocument(true))
                    return;
            }
            TagitMain.ShowForm();
        }

        [CommandMethod("TTADD")]
        public static void CreateItem()
        {
            if (TagitMain == null)
            {
                if (!ActivateDocument(true))
                    return;
            }
            TagitMain.CurrentBOM.BOMTable.CreateItem(TagitMain);
        }

        [CommandMethod("TTCLEANUP")]
        public static void Cleanup()
        {
            if (TagitMain == null)
            {
                if (!ActivateDocument(true))
                    return;
            }
            TagitMain.CurrentBOM.Cleanup();
        }

        [CommandMethod("GetRevision")]
        public static void ReadRevision()
        {
           Doc.Editor.WriteMessage("Revision: " + TagitMain.CurrentBOM.Revision.DisplayValue + "\n\n");
        }

        [CommandMethod("SetRevision")]
        public static void WriteRevision()
        {
            var res = Doc.Editor.GetString("Enter revision");
            TagitMain.CurrentBOM.Revision = new Revision(res.StringResult);
        }
        [CommandMethod("ReadBalloons")]
        public static void ReadBalloons()
        {
            using (var tr = new QueryTransaction(TagitMain.Database))
            {
                foreach (DBObject obj in tr.Find(e =&amp;gt; e is MLeader))
                {
                    var xdata = obj.GetXDataForApplication(TagitMainAutocad.ApplicationName);
                    if (xdata == null)
                    {
                        TagitMain.Editor.WriteMessage("No XDATA \n\n");
                        continue;
                    }
                    var array = xdata.AsArray();
                    TagitMain.Editor.WriteMessage("MLeader: " + array[0].Value.ToString() + ", " + array[1].Value.ToString() + ", " + array[2].Value.ToString() + "\n\n");
                }
            }
            
        }

        [CommandMethod("ReadItems")]
        public static void ReadBOMItems()
        {
            foreach (var block in TagitMain.CurrentBOM.BOMTable.GetTableItems())
            {
                using (var trans = new QueryTransaction(TagitMain.Database))
                {
                    string items = "";
                    foreach (var item in trans.GetBlockAttributes(block))
                    {
                        items += item.Key + ": " + item.Value + ", ";
                    }
                    items += "\n\n";
                    TagitMain.Editor.WriteMessage(items);

                }

            }
        }

        [CommandMethod("ReadXData")]
        public static void ReadXData()
        {
            using (var trans = new QueryTransaction(TagitMain.Database))
            {
                foreach (
                    BlockReference block in
                        trans.Find(e =&amp;gt; e is BlockReference &amp;amp;&amp;amp; e.Name == BOMTable.TableItemBlockName))
                {
                    var x = block.GetXDataForApplication(TagitMainAutocad.ApplicationName);
                    
                    TagitMain.Editor.WriteMessage("Xdata&amp;amp;colon; " + x.ToString());
                    
                        
                    
                    
                    
                }



            }



        }


        public void Initialize()
        {
            Application.DocumentManager.DocumentActivated += DocumentManagerOnDocumentActivated;
            Application.DocumentManager.DocumentToBeDeactivated += DocumentManagerOnDocumentToBeDeactivated;
            
            
            ActivateDocument();
        }

        private void DocumentManagerOnDocumentToBeDeactivated(object sender, DocumentCollectionEventArgs e)
        {



            if (TagitMain != null)
            {
                using (e.Document.LockDocument())
                {
                    ActivateDocument();
                }
            }
            TagitMain = null;
        }



        public static bool ActivateDocument(bool showMessage = false)
        {
            var errors = TagitMainAutocad.IsValidDocument(Application.DocumentManager.MdiActiveDocument);
            if (errors.Count &amp;gt; 0)
            {
                if (showMessage)
                {
                    var message = "This document is not compatible with Tagit. Missing following elements: \n";
                    foreach (var error in errors)
                    {
                        message += "- " + error + "\n";
                    }
                    MessageBox.Show(message, "Tagit: Incompatible document.");
                    
                }
                return false;
            }

            TagitMain = new TagitMainAutocad();
            Doc = Application.DocumentManager.MdiActiveDocument;
            TagitMain.Initialize(Doc);
            return true;
        }

        private void DocumentManagerOnDocumentActivated(object sender, DocumentCollectionEventArgs e)
        {
            using (e.Document.LockDocument())
            {
                ActivateDocument();    
            }
            
            
            
        }

        public void Terminate()
        {
            Application.DocumentManager.DocumentActivated -= DocumentManagerOnDocumentActivated;
            Application.DocumentManager.DocumentToBeDeactivated -= DocumentManagerOnDocumentToBeDeactivated;
        }
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:05:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625687#M46957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-15T17:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625713#M46958</link>
      <description>&lt;P&gt;I haven't scanned the entire code, but this jumped out to me right away... Shouldn't this line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[assembly: CommandClass(typeof(Program))]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... Be this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[assembly: CommandClass(typeof(Tagit.Program))]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, not sure if that's the (only?) issue, but it did get my attention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:13:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625713#M46958</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2013-11-15T17:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625727#M46959</link>
      <description>&lt;P&gt;Sorry, just saw the using statement for Tagit namespace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please disregard.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:15:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625727#M46959</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2013-11-15T17:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625745#M46960</link>
      <description>&lt;P&gt;It's looking like you're going to have to use COM, my friend... Everything I'm finding for .NET + Mechanical is in COM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps someone more knowledgeable than I can verify?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:20:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625745#M46960</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2013-11-15T17:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625909#M46961</link>
      <description>&lt;P&gt;jup, only found references to com and c++, but i still find it strange, ive developed for plant3d and other verticals without problem, and still find it hopeful that it actually loads the dll and enters the Initialize function, noticed that when i installed mechinical that it upgraded my vanilla autocad to service pack 1 as well (it seems to use the same autocad executable), and also now that i run it in vanilla, that my commands are not available... maybe its an upgrade issue??&lt;/P&gt;&lt;P&gt;strange...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your efforts blackbox though,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rewriting it is not really an option (3-4000 lines of code), so at least would be nice to have it from an official source that ac mechanical is not comaptible with managed .net&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or does anyone know if the service pack makes any difference?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:43:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4625909#M46961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-15T17:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4626069#M46962</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your efforts blackbox though,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You're welcome; I'm always happy to not help. LoL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 18:05:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4626069#M46962</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2013-11-15T18:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4628857#M46963</link>
      <description>&lt;P&gt;Put a try/catch around the code in your IExtensionApplication::Initialize function that prints the&amp;nbsp;info about the caught exception, then let us know what the exception is when you try to NETLOAD your DLL.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2013 04:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4628857#M46963</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2013-11-17T04:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4628927#M46964</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; but when i run netload on my dll nothing happens and my command is not available. &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; Some googling gave me the impression that autocad mechanical only has a COM and c++ api, is that correct?&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If AutoCAD Mechanical has a command _NETLOAD then it is able to load .NET assembly-DLL's and so supports the .NET api.&lt;/P&gt;
&lt;P&gt;You should verify that you have not set the "copy-local" property for AutoCAD-references (like acdbmgd.dll, acmgd.dll, accoremgd.dll, ...).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And as it happens sometimes without an error output ... keep in mind that without special settings a .NET DLL can only be loaded into AutoCAD when it's on your local drive (is seen as trusted), verify that your Mechanical-user does not try to load it from network.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH, - alfred -&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2013 08:09:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4628927#M46964</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2013-11-17T08:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4629667#M46965</link>
      <description>&lt;P&gt;Thanks for all the responses!&lt;/P&gt;&lt;P&gt;Try/Catch was the trick!&lt;/P&gt;&lt;P&gt;depended on having a searchpath set for block which of course wasnt set when mechanical got installed... big duh to me&lt;/P&gt;&lt;P&gt;Still scary the way it fails silently and doesnt show commands, good to know for another time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2013 22:33:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4629667#M46965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-17T22:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4631287#M46966</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/389680"&gt;@Alfred.NESWADBA&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;... keep in mind that without special settings a .NET DLL can only be loaded into AutoCAD when it's on your local drive (is seen as trusted), verify that your Mechanical-user does not try to load it from network.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For those who may be interested, the special setting is to enabled the&amp;nbsp;&lt;FONT color="#000080" face="georgia,palatino"&gt;&lt;EM&gt;LoadFromRemoteSources&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;element:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2011/07/loading-blocked-and-network-hosted-assemblies-with-net-4.html"&gt;http://through-the-interface.typepad.com/through_the_interface/2011/07/loading-blocked-and-network-hosted-assemblies-with-net-4.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 13:15:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4631287#M46966</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2013-11-18T13:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4631297#M46967</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; For those who may be interested, the special setting is to enabled the&amp;nbsp;&lt;FONT face="georgia,palatino"&gt;LoadFromRemoteSources&lt;/FONT&gt;&amp;nbsp;element:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;To complete this: this only works for Framework 4.0 (and newer), so starting with AutoCAD 2012, but not before (there the CASPOL.EXE has to be used if loading of assemblies through network is necessary).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 13:18:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4631297#M46967</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2013-11-18T13:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4631941#M46968</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/389680"&gt;@Alfred.NESWADBA&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; For those who may be interested, the special setting is to enabled the&amp;nbsp;&lt;FONT face="georgia,palatino"&gt;LoadFromRemoteSources&lt;/FONT&gt;&amp;nbsp;element:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;To complete this: this only works for Framework 4.0 (and newer), so starting with AutoCAD 2012, but not before (there the CASPOL.EXE has to be used if loading of assemblies through network is necessary).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Hi Alfred,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the clarification.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've actually never used CASPOL.exe personally (&lt;EM&gt;probably in use before I &lt;EM&gt;even&amp;nbsp;&lt;/EM&gt;learned what LISP was?&lt;/EM&gt;), so I certainly cannot comment on advantages, etc., however, speaking from personal experience&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: 15px;"&gt;enabling LoadFromRemoteSource in 2011 (&lt;EM&gt;we use Civil 3D&lt;/EM&gt;) does in fact&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: 15px;"&gt;allows one to load .NET 3.5 compiled assemblies saved to network.&lt;/SPAN&gt;&amp;nbsp;Kean's methodology solved this issue for my work +/-3 years ago, and has not presented a single issue since.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;cannot comment on how this would, or would not affect 2010 and older.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 16:25:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4631941#M46968</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2013-11-18T16:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4632099#M46969</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;surprise, surprise, whatever you have found, Microsoft tells us that it started with Framework 4.0 &lt;A href="http://msdn.microsoft.com/en-us/library/dd409252%28v=vs.100%29.aspx" target="_self"&gt;&amp;gt;&amp;gt;&amp;gt;click&amp;lt;&amp;lt;&amp;lt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But when it was working for you then it was a solution to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 17:16:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4632099#M46969</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2013-11-18T17:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4632155#M46970</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/389680"&gt;@Alfred.NESWADBA&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;surprise, surprise, whatever you have found, Microsoft tells us that it started with Framework 4.0 &lt;A target="_self" href="http://msdn.microsoft.com/en-us/library/dd409252%28v=vs.100%29.aspx"&gt;&amp;gt;&amp;gt;&amp;gt;click&amp;lt;&amp;lt;&amp;lt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But when it was working for you then it was a solution to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Perhaps you, or Owen could educate me... Just trying to better understand, as I claim no expertise here, I wonder... Is it possible that this only worked for us in 2011, as we also had 2012 installed (.NET 4.0)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revisiting Kean's Acad.Exe.Config code snippet, there is a line here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  &amp;lt;startup useLegacyV2RuntimeActivationPolicy="true"&amp;gt;
    &amp;lt;supportedRuntime version="v4.0"/&amp;gt;
  &amp;lt;/startup&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;... Which *may*explain why this is successful in 2011, despite that version being .NET 3.5 dependent. I do not have any system that only has 2011 to test my theory.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 17:29:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4632155#M46970</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2013-11-18T17:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4638045#M46971</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in that case I guess your project is set to Framework 4.0, so you get the runtime-security options available for AutoCAD 2011.&lt;/P&gt;
&lt;P&gt;Look to your project settings and the active Framework version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 18:27:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4638045#M46971</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2013-11-20T18:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4639167#M46972</link>
      <description>I checked... All of my R18 assemblies are compiled to .NET 3.5 framework, any CPU, and those that call for UndoMarks use late binding.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Thu, 21 Nov 2013 05:00:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4639167#M46972</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2013-11-21T05:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad vs autocad mechanical (Urgent!)</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4639665#M46973</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sorry to say, in that case (your project is 3.5 and AutoCAD 2011) I have no idea why the switch &lt;FONT face="lucida sans unicode,lucida sans" color="#666699"&gt;LoadFromRemoteSources&lt;/FONT&gt; is working.&lt;/P&gt;
&lt;P&gt;But I have also to say that I have not tried to reproduce it now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say thanks to your system that something is working, better than something is not working &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2013 07:08:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-vs-autocad-mechanical-urgent/m-p/4639665#M46973</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2013-11-21T07:08:53Z</dc:date>
    </item>
  </channel>
</rss>

