Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.LinePattern.Data.Objects package

Submodules

duHast.Revit.LinePattern.Data.Objects.fill_pattern_settings module

A base class used to store pattern category overrides.

Stores line patterns.

class duHast.Revit.LinePattern.Data.Objects.fill_pattern_settings.FillPatternSettings(name='no pattern assigned', id=-1, j=None)

Bases: PatternSettingBase

Class constructor.

Parameters:

j (dict, optional) – A json formatted dictionary of this class, defaults to {}

data_type = 'fill_pattern_setting'

duHast.Revit.LinePattern.Data.Objects.line_pattern_data module

Family line pattern data class.

class duHast.Revit.LinePattern.Data.Objects.line_pattern_data.LinePatternData(root_path=None, root_category_path=None)

Bases: IFamilyData

Class constructor

Parameters:
  • 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.

process(doc)

Collects all line pattern data from the document and stores it in the class property .data

Parameters:

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

get_data()
add_data(storage_instance)

duHast.Revit.LinePattern.Data.Objects.line_pattern_data_processor module

Family line pattern data processor class.

class duHast.Revit.LinePattern.Data.Objects.line_pattern_data_processor.LinePatternProcessor(pre_actions=None, post_actions=None)

Bases: IFamilyProcessor

Class constructor.

data_type = 'LinePatternProcessor'
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 categroy path of the nested family in a tree: rootFamilyCategory::nestedFamilyOneCategory::nestedFamilyTwoCategory This includes the actual family category as the last node.

duHast.Revit.LinePattern.Data.Objects.line_pattern_data_processor_defaults module

line pattern data default names.

duHast.Revit.LinePattern.Data.Objects.line_pattern_data_storage module

Class for family line pattern data storage class.

class duHast.Revit.LinePattern.Data.Objects.line_pattern_data_storage.FamilyLinePatternDataStorage(root_name_path, root_category_path, family_name, family_file_path, use_counter, used_by, pattern_name, pattern_id, **kwargs)

Bases: IFamilyDataStorage

Class constructor

data_type = 'LinePattern'
number_of_properties = 9

duHast.Revit.LinePattern.Data.Objects.line_pattern_settings module

A base class used to store pattern category overrides.

Stores line patterns.

class duHast.Revit.LinePattern.Data.Objects.line_pattern_settings.LinePatternSettings(name='no pattern assigned', id=-1, j=None)

Bases: PatternSettingBase

Class constructor.

Parameters:

j (dict, optional) – A json formatted dictionary of this class, defaults to {}

data_type = 'line_pattern_settings'

duHast.Revit.LinePattern.Data.Objects.line_pattern_storage_used_by module

Class for line pattern data used by storage class.

class duHast.Revit.LinePattern.Data.Objects.line_pattern_storage_used_by.FamilyLinePatternDataStorageUsedBy(family_name='', element_id=-1, j=None, **kwargs)

Bases: IFamilyDataStorageUsedBy

Class constructor

data_type = 'FamilyLinePatternDataStorageUsedBy'

Module contents