Skip to content

View

Canonical path: PythonPart.View

Definition of a view class

elements property

elements: list[Any]

Get all elements

Returns:

  • list[Any]

    elements

end_scale property

end_scale: float

Get the reference end scale

Returns:

  • float

    end scale

start_scale property

start_scale: float

Get the reference start scale

Returns:

  • float

    start scale

viewtype property

viewtype: MacroSlideType

Get the type

Returns:

visibility2d property

visibility2d: bool

Get the 2D visibility flag

Returns:

  • bool

    2D visibility flag

visibility3d property

visibility3d: bool

Get the 3D visibility flag

Returns:

  • bool

    3D visibility flag

visibility_layer_a property writable

visibility_layer_a: bool

Get the Layer A visibility flag

Returns:

  • bool

    Layer A visibility flag

visibility_layer_b property writable

visibility_layer_b: bool

Get the Layer B visibility flag

Returns:

  • bool

    Layer B visibility flag

visibility_layer_c property writable

visibility_layer_c: bool

Get the Layer C visibility flag

Returns:

  • bool

    Layer C visibility flag

__init__

__init__(
    viewtype: MacroSlideType = AllplanBasisEle.MacroSlideType.eGeometry,
    visibility2d: bool = True,
    visibility3d: bool = True,
    start_scale: float = 0.0,
    end_scale: float = 9999.0,
    elements: list[Any] | None = None,
)

initialization of view class

Parameters:

  • viewtype (MacroSlideType, default: eGeometry ) –

    view type. Defaults to AllplanBasisElements.MacroSlideType.eGeometry.

  • visibility2d (bool, default: True ) –

    visible in 2D. Defaults to True.

  • visibility3d (bool, default: True ) –

    visible in 3D. Defaults to True.

  • start_scale (float, default: 0.0 ) –

    start scale. Defaults to 0.

  • end_scale (float, default: 9999.0 ) –

    end scale. Defaults to 9999.

  • elements (list[Any] | None, default: None ) –

    elements. Defaults to None.

__repr__

__repr__() -> str

create the element string

Returns:

  • str

    element string

add

add(element: Any)

add one element

Parameters:

  • element (Any) –

    element

create

create() -> MacroSlideElement

Create view

Returns:

reset

reset(elements: list[Any])

Reset elements

Parameters:

  • elements (list[Any]) –

    elements

Placeholder