CommandMethod无法识别
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autodesk.AutoCAD.Runtime;
using Autodesk.Windows;
using Autodesk.AutoCAD.ApplicationServices;
public void addRibbon()
{
}添加了,acdbmgd,acmgd,Autocad,axdblib引用,采用上述引用后,无法识别CommandMethod,不知哪位前辈给予指点。
你的CAD版本是多少? ARer 发表于 2013-5-11 23:35 static/image/common/back.gif
你的CAD版本是多少?
中文简体-2013 怎样叫做 “无法识别CommandMethod”? anderson 发表于 2013-5-12 08:09 static/image/common/back.gif
中文简体-2013
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 ARer 发表于 2013-5-12 23:33 static/image/common/back.gif
hxxp://through-the-interface.typepad.com/through_the_interface/2012/03/migrating-net-applications-to ...
嗯嗯,问题已解决,thank u sieben 发表于 2013-5-12 15:14 static/image/common/back.gif
怎样叫做 “无法识别CommandMethod”?
错误 6 未能找到类型或命名空间名称“CommandMethod”(是否缺少 using 指令或程序集引用?)
页:
[1]