Skip to content

ReinforcementLabelService

Canonical path: NemAll_Python_Reinforcement.ReinforcementLabelService

Service functions for reinforcement label

Methods:

GetBarLabelDimensions

GetBarLabelDimensions(
    values: BarLabelValues, textType: int, steelGrade: int, screenscale: float
) -> tuple[float, float]

Calculates the bounding box of a bar label

Parameters:

  • values (BarLabelValues) –

    Struct variable values for the label

  • textType (int) –

    Text type (2 - label for barshape, 3 - label for bar placement)

  • steelGrade (int) –

    Steel grade

  • screenscale (float) –

    Screen scale

Returns:

  • tuple[float, float]

    width and height of the label

GetBarLabelText

GetBarLabelText(values: BarLabelValues, textType: int, steelGrade: int) -> str

Get the text of a bar label

Parameters:

  • values (BarLabelValues) –

    Struct variable values for the label

  • textType (int) –

    Text type (2 - label for barshape, 3 - label for bar placement)

  • steelGrade (int) –

    Steel grade

Returns:

  • str

    text of the label

GetMeshLabelDimensions

GetMeshLabelDimensions(
    values: MeshLabelValues, screenscale: float
) -> tuple[float, float]

Calculates the bounding box of a mesh label

Parameters:

  • values (MeshLabelValues) –

    Struct variable values for the label

  • screenscale (float) –

    Screen scale

Returns:

  • tuple[float, float]

    width and height of the label

GetMeshLabelText

GetMeshLabelText(values: MeshLabelValues) -> str

Get the text of a mesh label

Parameters:

  • values (MeshLabelValues) –

    Struct variable values for the label Screen scale:

Returns:

  • str

    text of the label

__init__ overloaded

__init__(barLabel: BarLabel)

Constructor

Parameters:

__init__(meshlabel: MeshLabel)

Constructor

Parameters:

Placeholder