Sample Code Revit Batch Processor 1.1.16 documentation

Contents:

This Page

duHast.Revit.Revisions.Utility package

Submodules

duHast.Revit.Revisions.Utility.revision_storage_factory module

This module contains a number of factory functions relating to Revit revision on sheets storage classes.

duHast.Revit.Revisions.Utility.revision_storage_factory.get_revision_storage_sequence_numeric(revision, revision_sequence, revision_index_on_sheet, revision_are_by_sheet)

Initializes the revision by sheet storage for numeric sequence type.

Parameters:
  • revision (Autodesk.Revit.DB.Revision) – The Revit revision element.

  • revision_sequence (Autodesk.Revit.DB.RevisionSequence) – The Revit revision sequence element.

  • revision_index_on_sheet (int) – The index of the revision on the sheet.

  • revision_are_by_sheet (bool) – Flag indicating if revisions are by sheet.

Returns:

The revision by sheet storage numeric instance.

Return type:

RevisionBySheetStorageNumeric

duHast.Revit.Revisions.Utility.revision_storage_factory.get_revision_storage_sequence_alphanumeric(revision, revision_sequence, revision_index_on_sheet, revision_are_by_sheet)

Initializes the revision by sheet storage for alphanumeric sequence type.

Parameters:
  • revision (Autodesk.Revit.DB.Revision) – The Revit revision element.

  • revision_sequence (Autodesk.Revit.DB.RevisionSequence) – The Revit revision sequence element.

  • revision_index_on_sheet (int) – The index of the revision on the sheet.

  • revision_are_by_sheet (bool) – Flag indicating if revisions are by sheet.

Returns:

The revision by sheet storage alphanumeric instance.

Return type:

RevisionBySheetStorageAlphaNumeric

duHast.Revit.Revisions.Utility.revision_storage_factory.get_revision_storage_sequence_none(revision, revision_index_on_sheet, revisions_are_by_sheet)

Initializes the revision by sheet storage for ‘None’ sequence type.

Parameters:
  • revision (Autodesk.Revit.DB.Revision) – The Revit revision element.

  • revision_index_on_sheet (int) – The index of the revision on the sheet.

  • revision_are_by_sheet (bool) – Flag indicating if revisions are by sheet.

Returns:

The revision by sheet storage none instance.

Return type:

RevisionBySheetStorageNone

Module contents