circle[i, j] = new Circle(center, Vector3d.ZAxis, Double.Parse(txtVerD.Text)); entities.Add(circle[i, j]); regions = Autodesk.AutoCAD.DatabaseServices.Region.CreateFromCurves(entities); foreach (Autodesk.AutoCAD.DatabaseServices.Region region in regions) { solid3d = new Solid3d(); solid3d.ExtrudeAlongPath(region, path, 0);//这句有时会出错,提示如下。 btr.AppendEntity(solid3d); tr.AddNewlyCreatedDBObject(solid3d, true); } 试图在不先将托管代码转换出的情况下调入它们。不要试图在底层本机扩展性点(如向量异常处理程序)内运行托管代码,因为这样会导致损坏或数据丢失。 不知道为什么,运行时有时会出错,有时正常,到底是怎么回事?请各位高手们帮忙解答一下。非常感谢! |