- private void DrawLine(double X1,double Y1,double Z1,double X2,double Y2,double Z2)
- {
- Double[] Line = new Double[6];
- Line[0] = X1;
- Line[1] = Y1;
- Line[2] = Z1;
- Line[3] = X2;
- Line[4] = Y2;
- Line[5] = Z2;
- Acad3DPolyline[] Polyline = new Acad3DPolyline[1];
- Polyline[0] = AcadDoc.ModelSpace.Add3DPoly(Line);
- Polyline[0].Layer = "YS";
- int id = Polyline[0].ObjectID;
-
- AcadDictionary ObjDict= Polyline[0].GetExtensionDictionary();
- AcadXRecord ObjXRecord = ObjDict.AddXRecord("name");
- int[] aa = new int[2];
- string[] bb = new string[2];
- aa[0] = 1;
- aa[1] = 2;
- bb[0] = "abc";
- bb[1] = "cc";
-
- ObjXRecord.SetXRecordData(aa, bb); //**********type 参数错误
- }
SetXRecordData(object XRecordDataType, object XRecordDataValue) 这个方法 怎么用啊?
我想在线里 添加扩展属性 1:abc , 2 :cc
|