新手求助
最近看了这段代码,找不解决问题的办法,我刚刚学习C#开发,所以基础不行,希望得到大家的帮助,谢谢啦CJEKusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace CAD二次开发
{
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
}
Autodesk.AutoCAD.Interop.AcadApplication AcadApp;
Autodesk.AutoCAD.Interop.AcadDocument AcadDoc;
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog pOpenDG = new OpenFileDialog();
pOpenDG.ShowDialog();
string filePath = pOpenDG.FileName;
AcadApp = new AcadApplication();
AcadApp.Application.Visible = true;
AcadDoc = AcadApp.Documents.Open(filePath, null, null);
}
}
}
错误 1 未能找到类型或命名空间名称“AcadApplication”(是否缺少 using 指令或程序集引用?)
知道什么叫引用吗?需要引用通知蓝色这类的东西
页:
[1]