Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Rooms.Objects package

Submodules

duHast.Revit.Rooms.Objects.RoomBaseObject module

Revit room utility class.

Allows simplified access to:

  • room name

  • room number

  • room level

  • room phase

class duHast.Revit.Rooms.Objects.RoomBaseObject.RoomBaseObj(rvt_doc, room, *args, **kwargs)

Bases: Base

Class constructor

duHast.Revit.Rooms.Objects.RoomSpatialForViews module

Revit API utility functions for the spatial properties of room elements.

class duHast.Revit.Rooms.Objects.RoomSpatialForViews.RoomSpatialForView(rvt_doc, room, boundary_location=Autodesk.Revit.DB.SpatialElementBoundaryLocation.Finish)

Bases: RoomBaseObj

Class constructor

is_room_rectalinear()

Check if the room is rectalinear. ( all room bounding segements are either parallel or perpendicular to each other )

Returns:

True if the room is rectalinear, False otherwise.

Return type:

bool

is_room_aligned_to_its_bounding_box()

Check if the room is aligned to the bounding box. ( all room bounding segements are either parallel or perpendicular to the bounding box )

Returns:

True if the room is aligned to the bounding box, False otherwise.

Return type:

bool

duHast.Revit.Rooms.Objects.RoomSpatialObject module

Revit API utility functions for the spatial properties of room elements.

class duHast.Revit.Rooms.Objects.RoomSpatialObject.RoomSpatialObj(rvt_doc, room, boundary_location=Autodesk.Revit.DB.SpatialElementBoundaryLocation.Finish)

Bases: RoomBaseObj

Class constructor

Module contents