Sample Code Revit Batch Processor 1.1.15 documentation

Contents:

This Page

duHast.Revit.Views.Utility package

Submodules

duHast.Revit.Views.Utility.convert_data_to_override_storage module

duHast.Revit.Views.Utility.convert_data_to_revit_override module

duHast.Revit.Views.Utility.convert_revit_override_to_data module

duHast.Revit.Views.Utility.sheet_parameters module

This module contains a number of helper functions relating to Sheets

duHast.Revit.Views.Utility.sheet_parameters.get_sheet_number(sht)

Get the sheet number of a sheet :param sht: The sheet to get the number of :type sht: ViewSheet :return: The sheet number :rtype: str

duHast.Revit.Views.Utility.sheet_parameters.get_sheet_name(sht)

Get the sheet name of a sheet :param sht: The sheet to get the name of :type sht: ViewSheet :return: The sheet name :rtype: str

duHast.Revit.Views.Utility.sheet_parameters.get_sheet_num_name_comb(sht, num_first=True, separator=' - ')

Get the sheet number and name of a sheet and returns the the combination of the two. Typically helpful for logging/printing.

Parameters:
  • num_first (bool) – Whether the sheet number should be first in the string. Defaults to True

  • splitter (str) – The string to split the sheet number and name with. Defaults to ‘ - ‘

Returns:

The sheet number and name

Return type:

str

duHast.Revit.Views.Utility.view_parameters module

This module contains a number of helper functions relating to Revit views.

duHast.Revit.Views.Utility.view_parameters.get_sheet_from_view(view, sht_num_elem_dict)

Get the sheet of a view. Sheet number to element dictionary can be produced with get_sheet_num_to_elem_dict function from duHast.Revit.Views.Utility.sheets :param view: The view to get the sheet of :type view: View :param sht_num_elem_dict: A dictionary of sheet numbers and sheets :type sht_num_elem_dict: dict :return: The sheet of the view :rtype: ViewSheet

duHast.Revit.Views.Utility.view_types module

This module contains a base helper functions relating to Revit view types.

duHast.Revit.Views.Utility.view_types.get_view_type_enum_to_name_dict()

Get a dictionary of the ViewType enum to verbose name e.g. FloorPlan to Floor Plan :return: A dictionary in format of Autodesk.Revit.DB.ViewType.FloorPlan: “Floor Plan” :rtype: dict

Module contents