IsValidBoundaryOnView Method


Indicates if the given curve loops compose a valid boundary on the view's detail sketch plane.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2023

Syntax

C#
public static bool IsValidBoundaryOnView(
	Document document,
	ElementId viewId,
	IList<CurveLoop> curveLoops
)
Visual Basic
Public Shared Function IsValidBoundaryOnView ( _
	document As Document, _
	viewId As ElementId, _
	curveLoops As IList(Of CurveLoop) _
) As Boolean
Visual C++
public:
static bool IsValidBoundaryOnView(
	Document^ document, 
	ElementId^ viewId, 
	IList<CurveLoop^>^ curveLoops
)

Parameters

document
Type: Autodesk.Revit.DB Document
The document.
viewId
Type: Autodesk.Revit.DB ElementId
The view Id.
curveLoops
Type: System.Collections.Generic IList CurveLoop
The curve loops to be checked.

Return Value

True if the given curve loops are valid as described above, false otherwise.

Remarks

The curve loops are valid if projections of the loops onto the views's detail sketch plane do not intersect each other; each curve loop is closed; input curves do not contain any helical curve; and each loop is planar and lies on a plane parallel to the views's detail sketch plane, but not necessarily the same plane.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null

See Also