ContainsPoint Method


Identifies whether the given point exists in the topography surface.

Namespace: Autodesk.Revit.DB.Architecture
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2014

Syntax

C#
public bool ContainsPoint(
	XYZ point
)
Visual Basic
Public Function ContainsPoint ( _
	point As XYZ _
) As Boolean
Visual C++
public:
bool ContainsPoint(
	XYZ^ point
)

Parameters

point
Type: Autodesk.Revit.DB XYZ
The point to be checked.

Return Value

True if the input point exists in the topography surface, otherwise false.

Remarks

The given point will be evaluated in XYZ. If a point matches the XY location, but not the elevation, this function still returns false. This applies to TopographySurface and SiteSubRegion elements.

Exceptions

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

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →