大家对Revit的空间曲线那么理解,如何用代码创建空间的椭圆弧,,上看是圆弧,正面看是椭圆?
直接放代码:
Document doc = commandData.Application.ActiveUIDocument.Document;
Autodesk.Revit.DB.XYZ center = new Autodesk.Revit.DB.XYZ(0, 0, 0);
Autodesk.Revit.DB.XYZ xVec = new Autodesk.Revit.DB.XYZ(1, 0, 0);
Autodesk.Revit.DB.XYZ yVec = new Autodesk.Revit.DB.XYZ(0, 1, 0);
Curve arc = Arc.Create(center, 10, 0, Math.PI / 2, xVec, yVec);
Plane plane = Plane.CreateByOriginAndBasis(center, xVec, yVec);
SketchPlane sketchPlane = SketchPlane.Create(doc, plane); ;