CommandMethod无法识别
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autodesk..Runtime;
using Autodesk.Windows;
using Autodesk.AutoCAD.ApplicationServices;复制代码添加了,acdbmgd,acmgd,Autocad,axdblib引用,采用上述引用后,无法识别CommandMethod,不知哪位前辈给予指点。
你的CAD版本是多少?
中文简体-2013 怎样叫做 “无法识别CommandMethod”?
2013版本API由之前的 AcMgd.dll 转到了AcCoreMgd.dll,所以2013版本需要引用程序目录下面的AcCoreMgd.dll文件。具体可以查看Kean的博客文章Migrating .NET applications to work with AutoCAD 2013 hxxp://through-the-interface.typepad.com/through_the_interface/2012/03/migrating-net-applications-to-work-with-autocad-2013.html
嗯嗯,问题已解决,thank u
错误 6 未能找到类型或命名空间名称“CommandMethod”(是否缺少 using 指令或程序集引用?)
页:
[1]