Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Views.Export package

Submodules

duHast.Revit.Views.Export.sheets_to_data module

This module contains a number of helper functions relating to Revit sheet to data sheet conversion.

duHast.Revit.Views.Export.sheets_to_data.get_title_block_size(doc, sheet)
duHast.Revit.Views.Export.sheets_to_data.convert_revit_sheet(doc, sheet)

Convertes a revit sheet to a data instance sheet.

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

  • sheet (Autodesk.Revit.DB.view) – A revit sheet

Returns:

A data sheet instance

Return type:

DataSheet

duHast.Revit.Views.Export.sheets_to_data.get_all_sheet_data(doc)

Gets a list of sheet data objects for each sheet element in the model.

Parameters:

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

Returns:

A list of data sheet instances.

Return type:

list of DataSheet

duHast.Revit.Views.Export.view_ports_to_data module

This module contains a number of helper functions relating to Revit view port to data view port conversion.

duHast.Revit.Views.Export.view_ports_to_data.convert_revit_viewport_to_data_instance(doc, revit_view_port)

Converts a Revit ViewPort into a data viewport

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

  • view_port (Autodesk.Revit.DB.ViewPort) – A Revit ViewPort

Returns:

A populated data viewport instance

Return type:

DataSheetViewPort

duHast.Revit.Views.Export.view_ports_to_data.convert_revit_schedule_sheet_instances_to_data_instance(doc, sheet, revit_schedule_sheet_instances)

Converts a list of schedule sheet instances to view port data instances

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

  • sheet (Autodesk.Revit.DB.ViewSheet) – The sheet of which to get the schedule instance from.

  • revit_schedule_sheet_instances ([Autodesk.Revit.DB.ScheduleSheetInstance]) – A list of schedule sheet instances

Returns:

A list of populated data viewport instances

Return type:

[DataSheetViewPort]

Module contents