2014-11-06 166 views
2

我想继续在Visual Studio 2013的AutoCAD插件上工作。我打开了我的项目文件,并且缺少所有对Autodesk库的引用。为了解决这个问题,我添加了对附加的dll映像中显示的ObjectARX 2015的以下dll文件的引用。我现在用的是以下Autodesk命名空间:设置Visual Studio 2013来开发AutoCAD 2015插件

using Autodesk.AutoCAD.ApplicationServices; 
using Autodesk.AutoCAD.DatabaseServices; 
using Autodesk.AutoCAD.EditorInput; 
using Autodesk.AutoCAD.Geometry; 
using Autodesk.AutoCAD.Runtime; 

添加缺少的引用,使错误消失,直到我尝试测试我的程序在这一点上,我得到新的错误,强调在灰色的,而不是红色的Autodesk引用如图所示附加的图像。我不知道为什么添加的引用不起作用。这也可能是值得知道我从Visual Studio 2012迁移到Visual Studio 2013和AutoCAD 2014的AutoCAD 2015年enter image description here

enter image description here

+0

我不确定他们为什么会在它们下面有灰线。这些引用是否将您的复制本地设置设置为false?还是你有多个不同autocad版本的自动CAD库在你的参考文献中?顺便说一句,我没有看到任何理由你应该拥有所有这些参考。你应该只需要运行时就可以获得课堂上的内容。 – 2014-11-07 02:29:11

回答