执行ModelSpace.AddRegion(ents)这一句,提示“输入无效”,是什么问题。
请看下面的函数:public void djh()
{
double[] P3 = new double;
P3 = 576699.307;
P3 = 3869815.312;
P3 = 66.103;
P3 = 576677.467;
P3 = 3869818.588;
P3 = 67.965;
P3 = 576705.136;
P3 = 3869820.052;
P3 = 68.193;
Common.Acad3DPolyline[] ents = new Common.Acad3DPolyline;
ents = acadApp.ActiveDocument.ModelSpace.Add3DPoly(P3);
ents.Closed = true;
object[] region = (object[])acadApp.ActiveDocument.ModelSpace.AddRegion(ents);//此句错误:提示“输入无效”
}
页:
[1]