Пример #1
0
        static InitClass()
        {
            ;
            syncCtrl = new System.Windows.Forms.UserControl();

            syncCtrl.CreateControl();


            Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
        }
Пример #2
0
        static InitClass()
        {
            ;
            syncCtrl = new System.Windows.Forms.UserControl();

            syncCtrl.CreateControl();

            string dllPath = InitClass.AssemblyDirectory;
            string pf      = (string)Application.GetSystemVariable("platform");

            if (pf.IndexOf("x86") > 0)
            {
                dllPath += "\\x86";
            }
            else
            {
                dllPath += "\\x64";
            }
            Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;

            ed.WriteMessage(dllPath);
            //commonA = Assembly.LoadFrom(dllPath+"\\Autodesk.AutoCAD.Interop.Common.dll");
            //interopA = Assembly.LoadFrom(dllPath + "\\Autodesk.AutoCAD.Interop.dll");
        }