BuildingPadSetBoundary Method |
Set a given curve loops as the boundary of the current BuildingPad element.
Namespace: Autodesk.Revit.DB.ArchitectureAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic void SetBoundary(
IList<CurveLoop> curveLoops
)
Public Sub SetBoundary (
curveLoops As IList(Of CurveLoop)
)
public:
void SetBoundary(
IList<CurveLoop^>^ curveLoops
)
member SetBoundary :
curveLoops : IList<CurveLoop> -> unit
Parameters
- curveLoops IListCurveLoop
-
A collection of curve loops to be added.
ExceptionsException | Condition |
---|
ArgumentException |
The input curve loops cannot compose a valid boundary, that means:
no curve loop is contained in the given collection;
these curve loops intersect with each other for some of them;
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 horizontal(XY) plane.
|
ArgumentNullException |
A non-optional argument was null
|
InvalidOperationException |
Failed to create the Sketch for the boundary of current BuildingPad.
-or-
Cannot find an appropriate hosting topography surface for this BuildingPad.
-or-
This topography surface cannot be the host of this BuildingPad.
-or-
The given curve loops intersect with curve loops of existing BuildingPads hosted on the same TopographySurface.
-or-
There is at least one existing SubRegion which is completely inside or overlap the boundary of current BuildingPad hosted on the same TopographySurface. This behavior is not allowed.
|
ModificationForbiddenException |
The document containing this BuildingPad is in failure mode: an operation has failed,
and Revit requires the user to either cancel the operation
or fix the problem (usually by deleting certain elements).
-or-
The document containing this BuildingPad is being loaded, or is in the midst of another
|
ModificationOutsideTransactionException |
The document containing this BuildingPad has no open transaction.
|
See Also