Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Views.Objects package

Subpackages

Submodules

duHast.Revit.Views.Objects.category_override_storage module

A class used to store view category overrides settings from Revit.

class duHast.Revit.Views.Objects.category_override_storage.RevitCategoryOverride(main_category_name='', sub_category_name='', category=None, category_id=-1, revit_override=None, is_category_hidden=False, **kwargs)

Bases: Base

Class constructor.

duHast.Revit.Views.Objects.filter_override_storage module

A class used to store view filter overrides settings from Revit.

class duHast.Revit.Views.Objects.filter_override_storage.RevitFilterOverride(filter_name='', filter_id=-1, filter=None, revit_override=None, is_filter_visible=True, is_filter_enabled=True, **kwargs)

Bases: Base

Class constructor.

duHast.Revit.Views.Objects.view_graphics_settings module

A base class used to store view (template) graphic settings .

Stores:

  • model overrides

  • filter overrides

class duHast.Revit.Views.Objects.view_graphics_settings.ViewGraphicsSettings(view_name='', view_id=-1, j=None, **kwargs)

Bases: Base

Class constructor.

get_differing_category_overrides(other_view_graphic_settings)

Returns all category overrides of this category of categories which exist in both set of settings but have different overrides applied.

Parameters:

other_view_graphic_settings (_type_) – _description_

Raises:

TypeError – _description_

get_differing_filter_overrides(other_view_graphic_settings)

Returns all filter overrides which exist exist in both set of settings but have different overrides applied.

Parameters:

other_view_graphic_settings (_type_) – _description_

Raises:

TypeError – _description_

get_all_used_line_patterns()

Get all line patterns used in overrides

Returns:

Dictionary of line pattern names to line pattern objects

Return type:

{str: LinePatternSettings}

get_all_used_fill_patterns()

Get all fill pattern used in overrides.

Returns:

Dictionary of line pattern names to line pattern objects

Return type:

{str: FillPatternSettings}

Returns:

_description_

Return type:

_type_

Module contents