Gets a room containing the point.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public Room GetRoomAtPoint(
XYZ point,
Phase phase
)
Parameters
- point XYZ
- Point to be checked.
- phase Phase
- Phase in which the room exists.
Return Value
RoomThe room containing the point.
Exceptions
Remarks
If phase is
null, it will get the room of the last phase.The first one found will be returned. If there is no room containing the point, it returns
null.
See Also
Reference