FamilyItemFactory.NewRevolution
Description:
Add a new Revolution instance into the Autodesk Revit family document.
Add a new Revolution instance into the Autodesk Revit family document.
Remarks:
This method creates an Revolution in a family document. The Revolution will be rotated the plane of the Revolution profile about the Axis.
This method creates an Revolution in a family document. The Revolution will be rotated the plane of the Revolution profile about the Axis.
public Revolution NewRevolution(
bool isSolid,
CurveArrArray profile,
SketchPlane sketchPlane,
Line axis,
double startAngle,
double endAngle
)
-
BooleanisSolidIndicates if the Revolution is Solid or Void.
-
profileThe profile of the newly created revolution. This may contain more than one curve loop. Each loop must be a fully closed curve loop and the loops must not intersect. All loops must lie in the same plane. The loop can be a unbound circle or ellipse, but its geometry will be split in two in order to satisfy requirements for sketches used in extrusions.
-
sketchPlaneThe sketch plane for the revolution. The direction of revolution is determined by the normal for the sketch plane.
-
axisThe axis of revolution. This axis must lie in the same plane as the curve loops.
-
DoublestartAngleThe start angle of Revolution in radians.
-
DoubleendAngleThe end angle of Revolution in radians.
Return Value
Revolution
If creation was successful the new revolution is returned,
otherwise an exception with failure information will be thrown.
-
Thrown when the input argument-profile-isor empty array.
-
Thrown when the input argument-sketchPlane-is.
-
Thrown when the input argument-sketchPlane-is an invalid sketch plane.
-
Thrown when the input argument-axis-is.
-
Thrown when creation is attempted in Conceptual Mass, 2D, or other family where revolutions cannot be created.
-
Thrown when the creation failed.