ReinforcementLabelService
Canonical path: NemAll_Python_Reinforcement.ReinforcementLabelService
Service functions for reinforcement label
Methods:
-
GetBarLabelDimensions–Calculates the bounding box of a bar label
-
GetBarLabelText–Get the text of a bar label
-
GetMeshLabelDimensions–Calculates the bounding box of a mesh label
-
GetMeshLabelText–Get the text of a mesh label
-
__init__–Overloaded function. See individual overloads.
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