anderson 发表于 2013-5-11 19:19:00

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,不知哪位前辈给予指点。

ARer 发表于 2013-5-11 23:35:00

你的CAD版本是多少?

anderson 发表于 2013-5-12 08:09:00


中文简体-2013

sieben 发表于 2013-5-12 15:14:00

怎样叫做 “无法识别CommandMethod”?

ARer 发表于 2013-5-12 23:32:00


2013版本API由之前的 AcMgd.dll 转到了AcCoreMgd.dll,所以2013版本需要引用程序目录下面的AcCoreMgd.dll文件。具体可以查看Kean的博客文章Migrating .NET applications to work with AutoCAD 2013

ARer 发表于 2013-5-12 23:33:00

hxxp://through-the-interface.typepad.com/through_the_interface/2012/03/migrating-net-applications-to-work-with-autocad-2013.html

anderson 发表于 2013-5-13 20:09:00


嗯嗯,问题已解决,thank u

anderson 发表于 2013-5-13 20:15:00


错误      6      未能找到类型或命名空间名称“CommandMethod”(是否缺少 using 指令或程序集引用?)
页: [1]
查看完整版本: CommandMethod无法识别