Skip to content

View

Class full path: PythonPart.View

Definition of a view class

Attributes

elements: list[Any] property

Get all elements

Returns:

Type Description
list[Any]

elements

end_scale: float property

Get the reference end scale

Returns:

Type Description
float

end scale

start_scale: float property

Get the reference start scale

Returns:

Type Description
float

start scale

viewtype: AllplanBasisEle.MacroSlideType property

Get the type

Returns:

Type Description
MacroSlideType

macros slide type

visibility2d: bool property

Get the 2D visibility flag

Returns:

Type Description
bool

2D visibility flag

visibility3d: bool property

Get the 3D visibility flag

Returns:

Type Description
bool

3D visibility flag

visibility_layer_a: bool property writable

Get the Layer A visibility flag

Returns:

Type Description
bool

Layer A visibility flag

visibility_layer_b: bool property writable

Get the Layer B visibility flag

Returns:

Type Description
bool

Layer B visibility flag

visibility_layer_c: bool property writable

Get the Layer C visibility flag

Returns:

Type Description
bool

Layer C visibility flag

Functions

__init__(viewtype=eGeometry, visibility2d=True, visibility3d=True, start_scale=0.0, end_scale=9999.0, elements=None)

initialization of view class

Parameters:

Name Type Description Default
viewtype MacroSlideType

view type. Defaults to AllplanBasisElements.MacroSlideType.eGeometry.

eGeometry
visibility2d bool

visible in 2D. Defaults to True.

True
visibility3d bool

visible in 3D. Defaults to True.

True
start_scale float

start scale. Defaults to 0.

0.0
end_scale float

end scale. Defaults to 9999.

9999.0
elements list[Any] | None

elements. Defaults to None.

None

__repr__()

create the element string

Returns:

Type Description
str

element string

add(element)

add one element

Parameters:

Name Type Description Default
element Any

element

required

create()

Create view

Returns:

Type Description
MacroSlideElement

macro slide element

reset(elements)

Reset elements

Parameters:

Name Type Description Default
elements list[Any]

elements

required