Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Common.Objects.Data package

Submodules

duHast.Revit.Common.Objects.Data.colour_base module

A base class used to store colour values.

Stores colour values as rgb.

class duHast.Revit.Common.Objects.Data.colour_base.ColourBase(j=None, **kwargs)

Bases: Base

Class constructor.

data_type = 'colour'

duHast.Revit.Common.Objects.Data.line_cut module

A base class used to store line category overrides.

Stores overrides of cut lines.

class duHast.Revit.Common.Objects.Data.line_cut.LineCut(j=None)

Bases: LineGraphicBase

Class constructor.

Parameters:

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

data_type = 'line_cut'

duHast.Revit.Common.Objects.Data.line_graphic_base module

A base class used to store line graphic settings.

Stores line graphic settings:

  • colour

  • pattern_id

  • weight

class duHast.Revit.Common.Objects.Data.line_graphic_base.LineGraphicBase(data_type='unknown', j=None, **kwargs)

Bases: Base

Class constructor.

duHast.Revit.Common.Objects.Data.line_projection module

A base class used to store line category overrides.

Stores overrides of projection lines.

class duHast.Revit.Common.Objects.Data.line_projection.LineProjection(j=None)

Bases: LineGraphicBase

Class constructor.

Parameters:

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

data_type = 'line_projection'

duHast.Revit.Common.Objects.Data.pattern_background module

A base class used to store pattern category overrides.

Stores overrides of background patterns.

class duHast.Revit.Common.Objects.Data.pattern_background.PatternBackground(j=None)

Bases: PatternGraphicBase

Class constructor.

Parameters:

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

data_type = 'pattern_background'

duHast.Revit.Common.Objects.Data.pattern_foreground module

A base class used to store pattern category overrides.

Stores overrides of foreground patterns.

class duHast.Revit.Common.Objects.Data.pattern_foreground.PatternForeground(j=None)

Bases: PatternGraphicBase

Class constructor.

Parameters:

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

data_type = 'pattern_foreground'

duHast.Revit.Common.Objects.Data.pattern_graphic_base module

A base class used to store pattern graphic settings.

Stores pattern graphic settings:

  • colour

  • pattern_id

  • is_visible

class duHast.Revit.Common.Objects.Data.pattern_graphic_base.PatternGraphicBase(data_type='unknown', j=None, **kwargs)

Bases: Base

Class constructor.

duHast.Revit.Common.Objects.Data.pattern_settings_base module

A base class used to store pattern data.

Stores pattern base data for line and fill pattern.

class duHast.Revit.Common.Objects.Data.pattern_settings_base.PatternSettingBase(name='no pattern assigned', id=-1, data_type='unknown', j=None, **kwargs)

Bases: Base

Class constructor.

NO_PATTERN = 'no pattern assigned'
SOLID_PATTERN = 'SOLID'

Module contents