Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Views.Objects.Data package

Submodules

duHast.Revit.Views.Objects.Data.override_by_base module

A base class used to store category overrides.

Stores common overrides between categories and filters

class duHast.Revit.Views.Objects.Data.override_by_base.OverrideByBase(data_type='unknown', j=None, **kwargs)

Bases: Base

Class constructor.

compare_overrides(other)

Ignores visibility property when comparing! (ignores is_visible and are_overrides_present)

Parameters:

other (OverrideByBase) – An instance of OverrideByBase

Returns:

True if all graphical properties of compared class instances are equal, otherwise False.

Return type:

Bool

get_all_used_line_patterns()

Extract dictionary of line pattern names to line pattern objects

Returns:

Dictionary of line pattern names to line pattern objects

Return type:

{str: LinePatternSettings}

get_all_used_fill_patterns()

Extract dictionary of fill pattern names to fill pattern objects

Returns:

Dictionary of fill pattern names to fill pattern objects

Return type:

{str: FillPatternSettings}

duHast.Revit.Views.Objects.Data.override_by_category module

A base class used to store category overrides.

Stores common overrides between categories and filters

class duHast.Revit.Views.Objects.Data.override_by_category.OverrideByCategory(main_category_name='', sub_category_name='', category_id=-1, j=None)

Bases: OverrideByBase

Class constructor.

data_type = 'override_by_category'
compare_overrides(other)

Ignores visibility property when comparing!

Parameters:

other (_type_) – _description_

Returns:

_description_

Return type:

_type_

duHast.Revit.Views.Objects.Data.override_by_filter module

A base class used to store category overrides.

Stores common overrides between categories and filters

class duHast.Revit.Views.Objects.Data.override_by_filter.OverrideByFilter(filter_name='', filter_id=-1, j=None)

Bases: OverrideByBase

Class constructor.

data_type = 'override_by_filter'

duHast.Revit.Views.Objects.Data.override_cut module

A base class used to store category overrides.

Stores common overrides between categories and filters

class duHast.Revit.Views.Objects.Data.override_cut.OverrideCut(j=None, **kwargs)

Bases: Base

Class constructor.

data_type = 'override_cut'

duHast.Revit.Views.Objects.Data.override_projection module

A base class used to store category overrides.

Stores common overrides between categories and filters

class duHast.Revit.Views.Objects.Data.override_projection.OverrideProjection(j=None, **kwargs)

Bases: Base

Class constructor.

data_type = 'override_projection'

Module contents