class PythonPartUtil

class PythonPartUtil.PythonPartUtil

Implementation of the PythonPart utilities

__init__()

Initialize

add_architecture_elements(elements: Any)

add the architecture elements to the PythonPart

Parameters

elements – architecture elements

add_attribute_list(attribute_list: BuildingElementAttributeList)

add the attribute list to the PythonPart

Parameters

attribute_list – attribute list

add_fixture_elements(elements: Any)

add the fixture elements to the PythonPart

Parameters

elements – fixture elements

add_label_elements(elements: Any)

add the label elements to the PythonPart

Parameters

elements – label elements

add_library_elements(elements: Any)

add the library elements to the PythonPart

Parameters

elements – library elements

add_pythonpart_view_2d(elements: Any,
                       view_data
: PythonPartViewData = PythonPartViewData(visible_in_2d=True,
                       visible_in_3d=True,

                       start_scale=0,

                       end_scale=9999,

                       ref_pnt1_x=0,

                       ref_pnt1_y=0,

                       ref_pnt1_z=0,

                       ref_pnt2_x=0,

                       ref_pnt2_y=0,

                       ref_pnt2_z=0,

                       visibility_layer_a=True,

                       visibility_layer_b=True,

                       visibility_layer_c=True,

                       scale_x=1,

                       scale_y=2,

                       scale_z=3)
)

add the elements to a 2D view for the next PythonPart

Parameters
  • elements – elements

  • view_data – view data

add_pythonpart_view_2d3d(elements: Any,
                         view_data
: PythonPartViewData = PythonPartViewData(visible_in_2d=True,
                         visible_in_3d=True,

                         start_scale=0,

                         end_scale=9999,

                         ref_pnt1_x=0,

                         ref_pnt1_y=0,

                         ref_pnt1_z=0,

                         ref_pnt2_x=0,

                         ref_pnt2_y=0,

                         ref_pnt2_z=0,

                         visibility_layer_a=True,

                         visibility_layer_b=True,

                         visibility_layer_c=True,

                         scale_x=1,

                         scale_y=2,

                         scale_z=3)
)

add the elements to a 2D3D view for the next PythonPart

Parameters
  • elements – elements

  • view_data – view data

add_pythonpart_view_3d(elements: Any,
                       view_data
: PythonPartViewData = PythonPartViewData(visible_in_2d=True,
                       visible_in_3d=True,

                       start_scale=0,

                       end_scale=9999,

                       ref_pnt1_x=0,

                       ref_pnt1_y=0,

                       ref_pnt1_z=0,

                       ref_pnt2_x=0,

                       ref_pnt2_y=0,

                       ref_pnt2_z=0,

                       visibility_layer_a=True,

                       visibility_layer_b=True,

                       visibility_layer_c=True,

                       scale_x=1,

                       scale_y=2,

                       scale_z=3)
)

add the elements to a 3D view for the next PythonPart

Parameters
  • elements – elements

  • view_data – view data

add_reinforcement_elements(elements: Any)

add the reinforcement elements to the PythonPart

Parameters

elements – reinforcement elements

add_view(elements: Union[View, List[View]])

add a view for the next PythonPart

Parameters
  • elements – elements

  • view_data – view data

create_pythonpart(build_ele: ~typing.Union[~BuildingElement.BuildingElement, ~typing.List[~BuildingElement.BuildingElement]],
                  local_placement_matrix=Matrix3D(
    1 0 0 0    0 1 0 0    0 0 1 0    0 0 0 1),
                  placement_matrix=Matrix3D(
    1 0 0 0    0 1 0 0    0 0 1 0    0 0 0 1)
)

create a PythonPart with the current views

Parameters
  • build_ele – building element

  • placement_matrix – placement matrix of the PythonPart (model placement)

  • local_placement_matrix – local placement matrix of the PythonPart, used for the local geometry transformation

Returns

list with the created PythonPart elements

static set_view_data(view: View,
              view_data
: PythonPartViewData
)

set the view data

Parameters
  • view – view

  • view_data – view data

__module__ = 'PythonPartUtil'