Share

Document.GetSpaceAtPoint(XYZ, Phase) Method

Gets a space containing the point.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public Space GetSpaceAtPoint(
	XYZ point,
	Phase phase
)

Parameters

point  XYZ
Point to be checked.
phase  Phase
Phase in which the space exists.

Return Value

Space
The space containing the point.

Exceptions

ExceptionCondition
ArgumentNullException Thrown when the point is nullptr.
ArgumentException Thrown when the coordinates of the point are not number or are Double::MaxValue or Double::MinValue.

Remarks

If phase is nullptr, it will get the space of the last phase.The first one found will be returned. If there is no space containing the point, it returns nullptr.

See Also

Reference

Was this information helpful?