RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Document

Document.GetSpaceAtPoint(XYZ, Phase)

Method
Description:
Gets a space containing the point.
Remarks:
If phase is null, 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 null.
Syntax
public Space GetSpaceAtPoint(
	XYZ point,
	Phase phase
)
Parameters
Parameter Type Description
point XYZ Point to be checked.
phase Phase Phase in which the space exists.
Return Value
Type Description
Space The space containing the point.
Exceptions
Exception Condition
ArgumentNullException Thrown when the point is.
ArgumentException Thrown when the coordinates of the point are not number or are Double::MaxValue or Double::MinValue.