C#进行AutoCAD2014二次开发的注意事项

  1. AutoCAD2014二次开发需要引用三个程序集:accoremgd.dll、acdmgd.ll、acmgd.dll;
  2. 项目属性中的生成,使用平台改为:x64;
  3. 目标框架选择.net framework4.0及以上版本;
  4. 调用COM的SendCommand函数访问AutoCAD命令的方法已经失效;
  5. P/Invoke非托管的C++函数acedCmd函数的调用方法改为:
    [DllImport("accore.dll", EntryPoint = "acedCmd", CharSet = CharSet.Auto, CallingConvention = CallingConvention.Cdecl)]
    private extern static int acedCmd(IntPtr rbp);
原文地址:https://www.cnblogs.com/rf8862/p/13934861.html