I want to create an C# Window Application that will lanch the AutoCad and will load the external plugin
cad_app.ActiveDocument.SetVariable("Filedia", "0")
cad_app.ActiveDocument.SendCommand(@"Netload C:\ObjectARX 2013\samples\dotNet\HelloWorld\bin\HelloWorld.dll")
using System.IO; using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.DatabaseServices; using Autodesk.AutoCAD.Runtime; [CommandMethod("OpenDrawing", CommandFlags.Session)] public static void OpenDrawing() { string strFileName = "C:\\campus.dwg"; DocumentCollection acDocMgr = Application.DocumentManager; if (File.Exists(strFileName)) { acDocMgr.Open(strFileName, false); } else { acDocMgr.MdiActiveDocument.Editor.WriteMessage("File " + strFileName + " does not exist."); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)