Creates a masking region on a sketch plane in a 3d model family.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:
2024
Syntax
Parameters
- document
- Type: Autodesk.Revit.DB..::..Document
The family document in which to create the masking region.
- sketchPlane
- Type: Autodesk.Revit.DB..::..SketchPlane
The sketch plane for use with the masking region.
- boundaries
- Type: System.Collections.Generic..::..IList<(Of <(<'CurveLoop>)>)>
The masking region boundaries, which will be projected onto the sketch plane.
Return Value
The new masking region.
Remarks
Exceptions
| Exception | Condition |
|---|
| Autodesk.Revit.Exceptions..::..ArgumentException |
The document is not a 3d model family.
-or-
Filled regions can't be created in this document or view.
-or-
The sketch plane is not suitable for model elements.
-or-
The sketch plane normal is not parallel to the model's X, Y or Z axis.
-or-
The input curve loops cannot compose a valid boundary, that means:
the "curveLoops" collection is empty;
or some curve loops intersect with each other;
or each curve loop is not closed individually;
or each curve loop is not planar;
or each curve loop is not in a plane parallel to the sketch plane;
or input curves contain at least one helical curve.
|
| Autodesk.Revit.Exceptions..::..ArgumentNullException |
A non-optional argument was null
|
See Also