Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Annotation.Reporting package

Submodules

duHast.Revit.Annotation.Reporting.annotations_report_header module

This module contains the header row for any (future) annotation reports.

duHast.Revit.Annotation.Reporting.annotations_report_header.REPORT_DIMENSIONS_HEADER = ['HOSTFILE', 'ID', 'NAME']

header used in dimensions reports

duHast.Revit.Annotation.Reporting.annotations_report_header.REPORT_TEXT_HEADER = ['HOSTFILE', 'ID', 'NAME']

header used in text reports

duHast.Revit.Annotation.Reporting.gen_annotations_instance_report_header module

This module contains the header row for any (future) generic annotation reports.

duHast.Revit.Annotation.Reporting.gen_annotations_instance_report_header.TAG_PRESENTATION_MODE = 'TAG_PRESENTATION_MODE'

properties used in reports from to revit 2023 onwards

duHast.Revit.Annotation.Reporting.gen_annotations_report_header module

This module contains the header row for any (future) generic annotation reports.

duHast.Revit.Annotation.Reporting.gen_annotations_report_header.REPORT_GENERIC_ANNOTATIONS_HEADER = ['HOSTFILE', 'GENERICANNOTATIONTYPEID', 'GENERICANNOTATIONTYPENAME']

header used in reports

duHast.Revit.Annotation.Reporting.tags_independent_report module

This module contains a Revit tag instances report function.

duHast.Revit.Annotation.Reporting.tags_independent_report.get_tag_instances_report_data(doc, revit_file_path, custom_element_filter)

Gets tag instances data to be written to report file.

Parameters:
  • doc (Autodesk.Revit.DB.Document) – Current Revit model document.

  • revit_file_path (str) – The file hostname, which is added to data returned.

  • custom_element_filter (class:.RevitCustomElementFilter) – allows to filter tags by specific tag properties

Returns:

list of list of sheet properties.

Return type:

list of list of str

duHast.Revit.Annotation.Reporting.tags_independent_report.read_tag_independent_data_from_file(revit_file_path)

Reads an independent tags report file into a list of dictionaries

Parameters:

revit_file_path (str) – Fully qualified file path of report file.

Returns:

List of dictionaries where each dictionary contains tag data

Return type:

[{}]

Module contents