Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Data.Objects.Collectors.Properties package

Subpackages

Submodules

duHast.Data.Objects.Collectors.Properties.data_design_set_option module

Data storage class for Revit design option properties.

class duHast.Data.Objects.Collectors.Properties.data_design_set_option.DataDesignSetOption(j=None)

Bases: DataBase

Class constructor.

Parameters:

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

data_type = 'design_set_and_option'

duHast.Data.Objects.Collectors.Properties.data_element_geometry_base module

Data storage base class used for geometry aspects of Revit elements.

  • contains

    • polygon

class duHast.Data.Objects.Collectors.Properties.data_element_geometry_base.DataElementGeometryBase(j, **kwargs)

Bases: Base

Class constructor

Parameters:

j (str or dic) – Json formatted string or dictionary

Raises:

ValueError – ‘Argument supplied must be of type string or type dictionary’

data_type = 'element geometry base'

duHast.Data.Objects.Collectors.Properties.data_instance_properties module

Data storage class for Revit element instance properties.

class duHast.Data.Objects.Collectors.Properties.data_instance_properties.DataInstanceProperties(j=None)

Bases: DataBase

Class constructor

Parameters:

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

data_type = 'instance_properties'

duHast.Data.Objects.Collectors.Properties.data_level module

Data storage class for Revit element level properties.

class duHast.Data.Objects.Collectors.Properties.data_level.DataLevel(j=None)

Bases: DataLevelBase

Class constructor

Parameters:

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

data_type = 'level'

duHast.Data.Objects.Collectors.Properties.data_level_base module

Data storage class for Revit element level properties.

class duHast.Data.Objects.Collectors.Properties.data_level_base.DataLevelBase(j=None)

Bases: DataBase

Class constructor

Parameters:

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

data_type = 'level'

duHast.Data.Objects.Collectors.Properties.data_phasing module

Data storage class for Revit element phasing properties.

class duHast.Data.Objects.Collectors.Properties.data_phasing.DataPhasing(j=None)

Bases: DataBase

Class constructor

Parameters:

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

data_type = 'phasing'

duHast.Data.Objects.Collectors.Properties.data_property module

Data storage class for Revit properties.

class duHast.Data.Objects.Collectors.Properties.data_property.DataProperty(j=None)

Bases: DataBase

Class constructor

Parameters:

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

data_type = 'property'

duHast.Data.Objects.Collectors.Properties.data_property_names module

Data property names enum class.

class duHast.Data.Objects.Collectors.Properties.data_property_names.DataPropertyNames

Bases: object

Contains property names used in data storage classes

ASSOCIATED_ELEMENTS = 'associated_elements'
BOUNDING_BOX = 'bounding_box'
CENTRE_POINT = 'centre_point'
CREATED = 'created'
DATA_TYPE = 'data_type'
DEMOLISHED = 'demolished'
ELEVATION = 'elevation'
HEIGHT = 'height'
ID = 'id'
INDEX = 'index'
INNER_LOOPS = 'inner_loops'
IS_PRIMARY = 'is_primary'
MIN = 'min'
MAX = 'max'
NAME = 'name'
POINT = 'point'
POINT1 = 'point1'
POINT2 = 'point2'
POLYGON = 'polygon'
OPTION_NAME = 'option_name'
OFFSET_FROM_LEVEL = 'offset_from_level'
OUTER_LOOP = 'outer_loop'
PROPERTIES = 'properties'
SEGMENTS = 'segments'
SET_NAME = 'set_name'
SHEET_SIZE = 'sheet_size'
ROTATION_COORDINATES = 'rotation_coord'
TAGS = 'tags'
TAG_ELBOW_LOCATION = 'elbow_location'
TAG_LEADER_END = 'leader_end'
TAG_LEADER_REFERENCE = 'leader_reference'
TAG_LEADER_ELEMENT_REFERENCE_ID = 'leader_element_reference_id'
TOTAL_NUMBER_OF_ROWS = 'total_number_of_rows'
TRANSLATION_COORDINATES = 'translation_coord'
VALUE_FIELD = 'value'
VIEW = 'view'
VIEW_PORT_TYPE = 'vp_type'
VIEW_PORTS = 'view_ports'
VIEW_ID = 'view_id'
WIDTH = 'width'

duHast.Data.Objects.Collectors.Properties.data_revit_model module

Data storage class for Revit elements model properties.

class duHast.Data.Objects.Collectors.Properties.data_revit_model.DataRevitModel(j=None)

Bases: DataBase

Class constructor

Parameters:

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

data_type = 'revit_model'

duHast.Data.Objects.Collectors.Properties.data_schedule_segement module

Data storage class for Revit schedule segement properties.

class duHast.Data.Objects.Collectors.Properties.data_schedule_segement.DataScheduleSegment(j=None)

Bases: DataBase

Class constructor

Parameters:

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

data_type = 'schedule segment'

duHast.Data.Objects.Collectors.Properties.data_sheet_size module

Data sheet size class.

class duHast.Data.Objects.Collectors.Properties.data_sheet_size.DataSheetSize(name=None, width=0.0, height=0.0, j=None, **kwargs)

Bases: Base

Class constructor

Parameters:

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

data_type = 'sheet_size'
is_matching_size(width, height)

Check if supplied values are within a 20mm band of the actual paper size

Args:

width (_type_): _description_ height (_type_): _description_

Returns:

_type_: _description_

duHast.Data.Objects.Collectors.Properties.data_sheet_size_names module

Data sheet size names enum class.

class duHast.Data.Objects.Collectors.Properties.data_sheet_size_names.DataSheetSizeNames

Bases: object

Contains viewport type names

A3 = DataSheetSize(name='A3', width=420.0, height=297.0)
A2 = DataSheetSize(name='A2', width=594.0, height=420.0)
A1 = DataSheetSize(name='A1', width=841.0, height=594.0)
A0 = DataSheetSize(name='A0', width=1189.0, height=841.0)
get_all_supported_sizes()

Returns all supported sheet sizes as a list

Returns:

[:class: DataSheetSize]: A list of all supported sheet sizes.

duHast.Data.Objects.Collectors.Properties.data_type_properties module

Data storage class for Revit element type properties.

class duHast.Data.Objects.Collectors.Properties.data_type_properties.DataTypeProperties(j=None)

Bases: DataBase

Class constructor

Parameters:

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

data_type = 'type_properties'

duHast.Data.Objects.Collectors.Properties.data_view_port_type_names module

Data view port type names enum class.

class duHast.Data.Objects.Collectors.Properties.data_view_port_type_names.DataViewPortTypeNames

Bases: object

Contains viewport type names

FLOOR_PLAN = 'floor plan'
ELEVATION = 'elevation'
THREE_D = 'three d'
SCHEDULE = 'schedule'

Module contents