Adds The CurveElements to one or more FaceRegions.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static void AddCurvesToFaceRegion( Document document, IList<ElementId> curveElemIds )
Parameters
- document Document
- The Document.
- curveElemIds IList<ElementId>
- The ElementIds of CurveElements which are to define the FaceRegion.
Exceptions
Exception | Condition |
---|---|
ArgumentException | All the input CurveElements must be CurveByPoints, with the sketchOnSurface attribute set to True, and for each CurveElement, the defining ReferencePoints must be hosted on References related to a common Face or Edge. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | Failed to add curves to FaceRegion. |