public void CreateRevolvedSolid() { // 在内存中创建旋转截面对象. Circle ent = new Circle(new Point3d(200, 0, 0), Vector3d.ZAxis, 100); // 截面对象添加到对象集合. DBObjectCollection ents = new DBObjectCollection(); ents.Add(ent); // 在内存中创建面域对象集合. DBObjectCollection regions = Region.CreateFromCurves(ents); // 实施旋转,并将旋转体添加到图形数据库. ObjectId revolvedSolidId = ModelSpace.AddRevolvedSolid((Region)regions[0], new Point3d(300, 200, 100), new Point3d(600, 400, 200), 2 * Math.PI); }