我用VS2010做了一个对话框,保存为EXE格式。然后新建一个类库文件,引用添加对话框文件,并添加相应的命名空间。然后新建对话框类对象,用以下代码时,出现问题:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using 电码化工具;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.Windows;
using Autodesk.AutoCAD.DatabaseServices;
namespace NetSelection
{
public class from
{
[CommandMethod("dmhd")]
public void dmhd()
{
FormDMH forms = new FormDMH();