就是在工程的引用里添加了AutoCAD2000 object library后
我可以做如下定义
private AcadApplication a = new AcadApplicationClass();
                  a.ActiveDocument.ModelSpace.AddPolyline();
a.Application.Update();
就是后面的那个addpolyline这个函数不会用,里面的参数应该是什么啊?
我看了是个object类型的,如果我用这个函数画个矩形,参数应该怎样设??
大家帮帮忙,在网上搜不到相关的资料,现在急着用啊

解决方案 »

  1.   

    // double[] startPoint1 = new double[12]; 
    // startPoint1[0] = 0f;
    // startPoint1[1] = 10f;
    // startPoint1[2] = 0f;
    // startPoint1[3] = 110f;
    // startPoint1[4] = 240f;
    // startPoint1[5] = 0f;
    // startPoint1[6] = 320f;
    // startPoint1[7] = 300f;
    // startPoint1[8] = 0f;
    // startPoint1[9] = 600f;
    // startPoint1[10] = 840f;
    // startPoint1[11] = 0f;
    //
    // AcadPolyline pl;
    // pl = aCadDocument.ModelSpace.AddPolyline(startPoint1);
    // pl.Color = ACAD_COLOR.acMagenta;
    ^_^,拿分来