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

Document.GetRoomAtPoint(XYZ)

Method
Description:
Gets a room containing the point.
Remarks:
Surveys only the rooms from the final phase of the project. The first one found will be returned. If there is no room containing the point, it returns null.
Syntax
public Room GetRoomAtPoint(
	XYZ point
)
Parameters
Parameter Type Description
point XYZ Point to be checked.
Return Value
Type Description
Room The room 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.