Converts a group of ModelCurves to equivalent DetailCurves.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public DetailCurveArray ConvertModelToDetailCurves( View view, ModelCurveArray modelCurves )
Parameters
- view View
- The view where the new lines will be created. The lines are projected on the view plane. If the lines are not parallel to the view plane, lines are foreshortened and arcs are converted to ellipses. Splines are modified.
- modelCurves ModelCurveArray
- The model curve array to be converted.
Return Value
DetailCurveArrayExceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when the input argument is nullptr. |
ArgumentException | Thrown when view is invalid to create DetailCurves on it. |
InvalidOperationException | Thrown when current document is a family. Thrown when one or more curves could not be successfully converted, perhaps because some of the input curves could not be projected onto the active workplane of the view. |