View
Canonical path: PythonPart.View
Definition of a view class
Methods:
-
__init__–initialization of view class
-
__repr__–create the element string
-
add–add one element
-
create–Create view
-
reset–Reset elements
Attributes:
-
elements(list[Any]) –Get all elements
-
end_scale(float) –Get the reference end scale
-
start_scale(float) –Get the reference start scale
-
viewtype(MacroSlideType) –Get the type
-
visibility2d(bool) –Get the 2D visibility flag
-
visibility3d(bool) –Get the 3D visibility flag
-
visibility_layer_a(bool) –Get the Layer A visibility flag
-
visibility_layer_b(bool) –Get the Layer B visibility flag
-
visibility_layer_c(bool) –Get the Layer C visibility flag
visibility2d
property
Get the 2D visibility flag
Returns:
-
bool–2D visibility flag
visibility3d
property
Get the 3D visibility flag
Returns:
-
bool–3D visibility flag
visibility_layer_a
property
writable
Get the Layer A visibility flag
Returns:
-
bool–Layer A visibility flag
visibility_layer_b
property
writable
Get the Layer B visibility flag
Returns:
-
bool–Layer B visibility flag
visibility_layer_c
property
writable
Get the Layer C visibility flag
Returns:
-
bool–Layer C visibility flag
__init__
__init__(
viewtype: 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.