CommonProperties
Canonical path: NemAll_Python_BaseElements.CommonProperties
Representation of format properties, common for all kind of Allplan elements, such as General elements, architectural components or reinforcement. This class contains information about e.g. pen thickness, stroke type and color, with which an Allplan element is drawn in the viewport.
Methods:
-
GetColorPenStrokeByLayerFromLayerNumber
–Layer number
-
GetGlobalProperties
–Get the global properties
-
__eq__
–Compare operator
-
__init__
–Overloaded function. See individual overloads.
-
__repr__
–Convert to string
Attributes:
-
Activated
(bool
) –Get the activated state
-
Color
(int
) –Get the color
-
ColorByLayer
(bool
) –Get the color by layer state
-
ConstructionLine
(bool
) –Get the construction line state
-
DrawOrder
(int
) –Get the drawOrder
-
ForceColor
(bool
) –Get flag if force color is set
-
HelpConstruction
(bool
) –Get flag if pen and stroke is help construction
-
InSpecialWindow
(bool
) –Get the special window visibility
-
Layer
(int
) –Get the layer
-
Marked
(bool
) –Get the marked state
-
PageNumber
(int
) –Get the page number
-
Pen
(int
) –Get the pen
-
PenByLayer
(bool
) –Get the pen by layer state
-
Printable
(bool
) –Get the printable state
-
Stroke
(int
) –Get the stroke
-
StrokeByLayer
(bool
) –Get the stroke by layer state
-
Visible
(bool
) –Get the visible flag state
-
VisibleInsideZoomwindows
(bool
) –Get the visible inside zoom window state
-
VisibleOutsideZoomwindows
(bool
) –Get the visible outside zoom window state
HelpConstruction
property
writable
Get flag if pen and stroke is help construction
VisibleInsideZoomwindows
property
writable
Get the visible inside zoom window state
VisibleOutsideZoomwindows
property
writable
Get the visible outside zoom window state
GetColorPenStrokeByLayerFromLayerNumber
staticmethod
GetColorPenStrokeByLayerFromLayerNumber(
layernumber: int,
) -> list[int] | VecIntList
__eq__
__eq__(props: CommonProperties) -> object
Compare operator
Parameters:
-
props
(CommonProperties
) –Properties to compare
Returns:
-
object
–Properties a equal: true/false