Skip to content

PythonPartViewModelEleList

implementation of the PythonPartViewModelEleList class

PythonPartViewModelEleList

Canonical path: TypeCollections.PythonPartViewModelEleList.PythonPartViewModelEleList

PythonPartViewModelEleList class

__init__

__init__(trans_stack: TransformationStack = TransformationStack())

initialize

Parameters:

add_view

add_view(
    name: str,
    visible_in_2d: bool = True,
    visible_in_3d: bool = True,
    start_scale: float = 0,
    end_scale: float = 9999,
    ref_pnt1_x: float = 0,
    ref_pnt1_y: float = 0,
    ref_pnt1_z: float = 0,
    ref_pnt2_x: float = 0,
    ref_pnt2_y: float = 0,
    ref_pnt2_z: float = 0,
    visibility_layer_a: bool = True,
    visibility_layer_b: bool = True,
    visibility_layer_c: bool = True,
    scale_x: int = 1,
    scale_y: int = 2,
    scale_z: int = 3,
    all_drawing_types: bool = True,
    drawing_types: list[int | DefaultDrawingTypes] | None = None,
)

add a view to the view model element list

Parameters:

  • name (str) –

    name of the modified property

  • visible_in_2d (bool, default: True ) –

    2D visible state

  • visible_in_3d (bool, default: True ) –

    3D visible state

  • start_scale (float, default: 0 ) –

    start scale

  • end_scale (float, default: 9999 ) –

    end scale

  • ref_pnt1_x (float, default: 0 ) –

    x coordinate of the first reference point

  • ref_pnt1_y (float, default: 0 ) –

    y coordinate of the first reference point

  • ref_pnt1_z (float, default: 0 ) –

    z coordinate of the first reference point

  • ref_pnt2_x (float, default: 0 ) –

    x coordinate of the second reference point

  • ref_pnt2_y (float, default: 0 ) –

    y coordinate of the second reference point

  • ref_pnt2_z (float, default: 0 ) –

    z coordinate of the second reference point

  • visibility_layer_a (bool, default: True ) –

    visible state for layer a

  • visibility_layer_b (bool, default: True ) –

    visible state for layer b

  • visibility_layer_c (bool, default: True ) –

    visible state for layer cS

  • scale_x (int, default: 1 ) –

    x scaling factor

  • scale_y (int, default: 2 ) –

    y scaling factor

  • scale_z (int, default: 3 ) –

    z scaling factor

  • all_drawing_types (bool, default: True ) –

    description

  • drawing_types (list[int | DefaultDrawingTypes] | None, default: None ) –

    description

create_pythonpart

create_pythonpart(
    build_ele: BuildingElement,
    build_ele_attr_list: BuildingElementAttributeList,
    local_placement_matrix: Matrix3D = Matrix3D(),
) -> ModelEleList

create the PythonPart

Parameters:

Returns:

get_default_3d_view_model_ele_list

get_default_3d_view_model_ele_list() -> ModelEleList

get the model element list of the 3D default view

Returns:

  • ModelEleList

    model element list of the 3D default view

get_view_model_ele_list

get_view_model_ele_list(name: str) -> ModelEleList

get the model element list for the view defined by name

Parameters:

  • name (str) –

    name of the view

Returns:

  • ModelEleList

    get the model element list for the current view

Placeholder