Skip to content

ReinforcementLabel

Canonical path: NemAll_Python_Reinforcement.ReinforcementLabel

Implementation of the reinforcement label

AdditionalText property writable

AdditionalText: str

Get the additional text

DimensionLineAtShapeStart property writable

DimensionLineAtShapeStart: bool

Get the placement state of the dimension line

DimensionLineOffset property writable

DimensionLineOffset: float

Get the dimension line offset

LabelOffset property writable

LabelOffset: Vector2D

Get the label offset for the text pointer

LabelPoint property writable

LabelPoint: Point2D

Get the label point

PointerStartPoint property writable

PointerStartPoint: Point2D

Get the start point of the text pointer

ShowTextPointer property writable

ShowTextPointer: bool

Get the state for showing the text pointer

ShowTextPointerEndSymbol property writable

ShowTextPointerEndSymbol: bool

Get the state for showing the text pointer end symbol

TextProperties property writable

TextProperties: TextProperties

Get the text properties

VisibleBars property writable

VisibleBars: list[int] | VecIntList

Get the vector with the visible bars

GetAdditionalText

GetAdditionalText() -> str

Get the additional text

Returns:

  • str

    Additional text

GetAngle

GetAngle() -> Angle

Get the angle

Returns:

GetDimensionLineOffset

GetDimensionLineOffset() -> float

Get the dimension line offset

Returns:

  • float

    Dimension line offset

GetLabelOffset

GetLabelOffset() -> Vector2D

Get the label offset for the text pointer

Returns:

  • Vector2D

    Label offset for the text pointer from the shape side

GetLabelPoint

GetLabelPoint() -> Point2D

Get the label point

Returns:

GetLabelProperties

GetLabelProperties() -> ReinforcementLabelProperties

Get the label properties

Returns:

GetPointerProperties

GetPointerProperties() -> ReinforcementLabelPointerProperties

Get the pointer properties

Returns:

GetPointerStartPoint

GetPointerStartPoint() -> Point2D

Get the start point of the text pointer

Returns:

  • Point2D

    Start point of the text pointer

GetPositionNumber

GetPositionNumber() -> int

Get the position number

Returns:

  • int

    Position number

GetReinforcementType

GetReinforcementType() -> ReinforcementType

Get the reinforcement type

Returns:

GetShapeSide

GetShapeSide() -> int

Get the shape side for the text pointer

Returns:

  • int

    Shape side for the text pointer

GetShapeSideFactor

GetShapeSideFactor() -> float

Get the factor for the text pointer at the shape side

Returns:

  • float

    Factor for the text pointer at the shape side

GetTextProperties

GetTextProperties() -> TextProperties

Get the text properties

Returns:

GetType

GetType() -> LabelType

Get the label type

Returns:

GetVisibleBars

GetVisibleBars() -> list[int] | VecIntList

Get the vector with the visible bars

Returns:

  • list[int] | VecIntList

    Vector with the visible bars

IsDimensionLineAtShapeStart

IsDimensionLineAtShapeStart() -> bool

Get the placement state of the dimension line

Returns:

  • bool

    Placement of the dimension line as placemen start state

IsLabelWithComb

IsLabelWithComb() -> bool

Check for a label with a comb

Returns:

  • bool

    Label with a comb: true/false

IsLabelWithFan

IsLabelWithFan() -> bool

Check for a label with a fan

Returns:

  • bool

    Label with a fan: true/false

IsPointerStartPoint

IsPointerStartPoint() -> bool

Get the state of the start point from the text pointer

Returns:

  • bool

    Defined start point exist: true/false

IsShowAllBars

IsShowAllBars() -> bool

Get the show all bars state

Returns:

  • bool

    Show all bars inside the dimension lines, ...

IsShowTextPointer

IsShowTextPointer() -> bool

Get the state for showing the text pointer

Returns:

  • bool

    Show the text pointer: true/false

IsShowTextPointerEndSymbol

IsShowTextPointerEndSymbol() -> bool

Get the state for showing the text pointer end symbol

Returns:

  • bool

    Show the text pointer end symbol: true/false

SetAdditionalText

SetAdditionalText(additionalText: str)

Set the additional text

Parameters:

  • additionalText (str) –

    Additional text

SetDimensionLineAtShapeStart

SetDimensionLineAtShapeStart(dimLineAtShapeStart: bool)

Set the placement state of the dimension line

Returns:

  • Placement of the dimension line as placemen start state

SetDimensionLineOffset

SetDimensionLineOffset(dimLineOffset: float)

Set the dimension line offset

Returns:

  • Dimension line offset

SetLabelOffset

SetLabelOffset(labelOffset: Vector2D)

Set the label offset

Parameters:

  • labelOffset (Vector2D) –

    Label offset

SetLabelPoint

SetLabelPoint(labelPoint: Point2D)

Set the label point

Parameters:

  • labelPoint (Point2D) –

    Label point

SetPointerStartPoint

SetPointerStartPoint(pointerStartPoint: Point2D)

Set the start pointer of the text pointer

Parameters:

  • pointerStartPoint (Point2D) –

    Start point of the text pointer

SetShowTextPointer

SetShowTextPointer(showTextPointer: bool)

Set the state for showing the text pointer

Parameters:

  • showTextPointer (bool) –

    Show the text pointer: true/false

SetShowTextPointerEndSymbol

SetShowTextPointerEndSymbol(showTextPointerEndSymbol: bool)

Set the state for showing the text pointer end symbol

Parameters:

  • showTextPointerEndSymbol (bool) –

    Show the text pointer end symbol: true/false

SetTextProperties

SetTextProperties(textProperties: TextProperties)

Set the text properties

Parameters:

SetVisibleBars

SetVisibleBars(visibleBars: list[int] | VecIntList)

Set the vector with the visible bars

Parameters:

  • visibleBars (list[int] | VecIntList) –

    Vector with the visible bars: 1, 2, 3, .. index from left; -1, -2, -3, ... index from right, 0 = center

ShowAllBars

ShowAllBars(bShowAllBars: bool)

Set the all bars inside the dimension line, ... state

Parameters:

  • bShowAllBars (bool) –

    Show all bars in the dimension lines, ...: true/false

ToString

ToString() -> str

Convert the label data to a string

Returns:

  • str

    String from the label data

__eq__

__eq__(label: ReinforcementLabel) -> bool

Compare operator

Parameters:

Returns:

  • bool

    Labels are equal: true/false

__init__ overloaded

__init__()

Initialize

__init__(
    reinforcementType: ReinforcementType,
    type: LabelType,
    positionNumber: int,
    labelProp: ReinforcementLabelProperties,
    labelPoint: Point2D,
    angle: Angle,
)

Constructor

Parameters:

__init__(
    reinforcementType: ReinforcementType,
    type: LabelType,
    positionNumber: int,
    labelProp: ReinforcementLabelProperties,
    shapeSide: int,
    shapeSideFactor: float,
    labelOffset: Vector2D,
    angle: Angle,
)

Constructor

Parameters:

  • reinforcementType (ReinforcementType) –

    Reinforcement type

  • type (LabelType) –

    Label type

  • positionNumber (int) –

    Position number

  • labelProp (ReinforcementLabelProperties) –

    Label properties

  • shapeSide (int) –

    Shape side for the text pointer

  • shapeSideFactor (float) –

    Factor for the text pointer at the shape side

  • labelOffset (Vector2D) –

    Label offset for the text pointer from the shape side

  • angle (Angle) –

    Angle

__init__(
    reinforcementType: ReinforcementType,
    type: LabelType,
    positionNumber: int,
    labelProp: ReinforcementLabelProperties,
    bDimLineAtShapeStart: bool,
    dimLineOffset: float,
)

Constructor

Parameters:

  • reinforcementType (ReinforcementType) –

    Reinforcement type

  • type (LabelType) –

    Label type

  • positionNumber (int) –

    Position number

  • labelProp (ReinforcementLabelProperties) –

    Label properties

  • bDimLineAtShapeStart (bool) –

    Placement of the dimension line: at shape start = true / at shape end = false

  • dimLineOffset (float) –

    Offset of the dimension line from the placement

__init__(
    reinforcementType: ReinforcementType,
    type: LabelType,
    positionNumber: int,
    labelProp: ReinforcementLabelProperties,
    pointerProp: ReinforcementLabelPointerProperties,
    bDimLineAtShapeStart: bool,
    dimLineOffset: float,
)

Constructor

Parameters:

  • reinforcementType (ReinforcementType) –

    Reinforcement type

  • type (LabelType) –

    Label type

  • positionNumber (int) –

    Position number

  • labelProp (ReinforcementLabelProperties) –

    Label properties

  • pointerProp (ReinforcementLabelPointerProperties) –

    Pointer properties

  • bDimLineAtShapeStart (bool) –

    Placement of the dimension line: at shape start = true / at shape end = false

  • dimLineOffset (float) –

    Offset of the dimension line from the placement

__init__(element: ReinforcementLabel)

Copy constructor

Parameters:

__repr__

__repr__() -> str

Convert to string

Placeholder