Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Warnings.Data.Objects package

Submodules

duHast.Revit.Warnings.Data.Objects.warnings_data module

Family warnings data class.

class duHast.Revit.Warnings.Data.Objects.warnings_data.WarningsData(root_path=None, root_category_path=None)

Bases: IFamilyData

Constructor for warnings data class.

Parameters:
  • root_path (str) – root path for data

  • root_category_path (str) – root category path for data

process(doc)
get_data()
add_data(storage_instance)

duHast.Revit.Warnings.Data.Objects.warnings_data_processor module

Family warnings data processor class.

class duHast.Revit.Warnings.Data.Objects.warnings_data_processor.WarningsProcessor(pre_actions=None, post_actions=None)

Bases: IFamilyProcessor

Class constructor.

data_type = 'WarningsProcessor'
process(doc, root_path, root_category_path)

Calls processor instance with the document and root path provided and adds processor instance to class property .data

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

  • rootPath (str) – The path of the nested family in a tree: rootFamilyName::nestedFamilyNameOne::nestedFamilyTwo This includes the actual family name as the last node.

  • rootCategoryPath (str) – The category path of the nested family in a tree: rootFamilyCategory::nestedFamilyOneCategory::nestedFamilyTwoCategory This includes the actual family category as the last node.

duHast.Revit.Warnings.Data.Objects.warnings_data_processor_defaults module

Warnings data default names.

duHast.Revit.Warnings.Data.Objects.warnings_data_storage module

Class for family shared parameter data storage class.

class duHast.Revit.Warnings.Data.Objects.warnings_data_storage.FamilyWarningsDataStorage(root_name_path, root_category_path, family_name, family_file_path, warning_text, warning_guid, warning_related_ids, warning_other_ids, **kwargs)

Bases: IFamilyDataStorage

Class constructor

data_type = 'Warnings'
number_of_properties = 9

duHast.Revit.Warnings.Data.Objects.warnings_data_storage_used_by module

Class for family warnings data used by storage class.

Notes:

This is just for completeness, the class is not used in the current version of the software.

class duHast.Revit.Warnings.Data.Objects.warnings_data_storage_used_by.FamilyWarningsDataStorageUsedBy(data_type, family_name, element_id, **kwargs)

Bases: IFamilyDataStorageUsedBy

Class constructor

data_type = 'FamilyWarningsDataStorageUsedBy'

Module contents