Reinforcement ColumnRebars: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
(44 intermediate revisions by 4 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{docnav
{{docnav|[[Arch_Rebar_Helical|Helical Rebar]]|[[Arch_Rebar|Rebar]]|[[Arch_Module|Arch]]|IconL=Arch_Rebar_Helical.png|IconC=Workbench_Arch.svg|IconR=Arch_Rebar.png}}
|[[Arch_Rebar_Circular_ColumnReinforcement|Circular Column Reinforcement]]
|[[Arch_Rebar_ColumnReinforcement_TwoTiesSixRebars|ColumnReinforcement TwoTiesSixRebars]]
|[[Arch_Module|Arch]]
|IconL=Arch_Rebar_ColumnReinforcement.svg
|IconC=Workbench_Arch.svg
|IconR=Arch_Rebar_ColumnReinforcement.svg
}}


<!--T:37-->
<!--T:37-->
Line 9: Line 16:
|MenuLocation=Arch → Rebar tools
|MenuLocation=Arch → Rebar tools
|Workbenches=[[Arch Workbench|Arch]], [[BIM Workbench|BIM]]
|Workbenches=[[Arch Workbench|Arch]], [[BIM Workbench|BIM]]
|SeeAlso=[[Arch_Rebar_Helical|Helical Rebar]], [[Arch Rebar]]
|SeeAlso=[[Arch_Rebar_Helical|Helical Rebar]], [[Arch_Rebar_ColumnReinforcement_TwoTiesSixRebars|ColumnReinforcement TwoTiesSixRebars]]
|Version=0.19
|Version=0.19
}}
}}


==Description== <!--T:2-->
==Description== <!--T:2-->

The [[Arch Rebar ColumnReinforcement|Column Reinforcement]] tool allows the user to create reinforcing bars inside a Column [[Arch Structure]] object.
<!--T:38-->
The [[Arch Rebar ColumnReinforcement|Column Reinforcement]] tool allows the user to create reinforcing bars inside a Column [[Arch Structure|Arch Structure]] object.


<!--T:22-->
<!--T:22-->
This command is part of the [[Reinforcement Addon]], that you can install with the [[Addon Manager]] via the menu {{MenuCommand|Tools → Addon manager → Reinforcement}}.
This command is part of the [[Reinforcement Addon|Reinforcement Addon]], that you can install with the [[Addon Manager|Addon Manager]] via the menu {{MenuCommand|Tools → Addon manager → Reinforcement}}.


</translate>
</translate>
Line 23: Line 32:
<translate>
<translate>
<!--T:3-->
<!--T:3-->
{{Caption|Column Reinforcement inside a Column [[Arch Structure]]}}
{{Caption|Column Reinforcement inside a Column [[Arch Structure|Arch Structure]]}}


==How to use== <!--T:4-->
==Usage== <!--T:4-->


<!--T:5-->
<!--T:5-->
1. Select any face of a previously created {{Button|[[Image:Arch_Structure.svg|16px]] [[Arch Structure]]}} object. <br>
1. Select any face of a previously created {{Button|[[Image:Arch_Structure.svg|16px]] [[Arch Structure|Arch Structure]]}} object. <br>
2. Then select {{Button|[[Image:Arch_Rebar_ColumnReinforcement.svg|16px]] [[Arch Rebar ColumnReinforcement|Column Reinforcement]]}} from the rebar tools. <br>
2. Then select {{Button|[[Image:Arch_Rebar_ColumnReinforcement.svg|16px]] [[Arch Rebar ColumnReinforcement|Column Reinforcement]]}} from the rebar tools. <br>
3. A dialog box will pop-out on screen as shown below. <br>
3. A dialog box will pop-out on screen as shown below. <br></translate>
[[Image:ColumnReinforcementDialog_Ties.png|700px]]
[[Image:ColumnReinforcementDialog_Ties.png|700px]]<translate>
<!--T:59-->
{{Caption|Dialog Box for the Arch Rebar ColumnReinforcement tool}}
{{Caption|Dialog Box for the Arch Rebar ColumnReinforcement tool}}

<!--T:60-->
4. Select the desired type of column reinforcement. <br>
4. Select the desired type of column reinforcement. <br>
5. Give inputs for data related to ties. <br>
5. Give inputs for data related to ties. <br>
6. Click next and dialog box will be updated as shown below. <br>
6. Click next and dialog box will be updated as shown below. <br></translate>
[[Image:ColumnReinforcementDialog_MainRebars.png|700px]]
[[Image:ColumnReinforcementDialog_MainRebars.png|700px]]<translate>
<!--T:61-->
{{Caption|Dialog Box for Main Rebars data}}
{{Caption|Dialog Box for Main Rebars data}}

<!--T:62-->
7. Select desired rebar type and fill data for main rebars. <br>
7. Select desired rebar type and fill data for main rebars. <br>
8. Click next and dialog box will be updated as shown below. <br>
8. Click next and dialog box will be updated as shown below. <br></translate>
[[Image:ColumnReinforcementDialog_XDirRebars.png|700px]]
[[Image:ColumnReinforcementDialog_XDirRebars.png|700px]]<translate>
<!--T:63-->
{{Caption|Dialog Box for XDirection Rebars data}}
{{Caption|Dialog Box for XDirection Rebars data}}

<!--T:64-->
9. Select desired rebar type and fill data for xdirection rebars. <br>
9. Select desired rebar type and fill data for xdirection rebars. <br>
10. Click next and dialog box will be updated as shown below. <br>
10. Click next and dialog box will be updated as shown below. <br></translate>
[[Image:ColumnReinforcementDialog_YDirRebars.png|700px]]
[[Image:ColumnReinforcementDialog_YDirRebars.png|700px]]<translate>
<!--T:65-->
{{Caption|Dialog Box for YDirection Rebars data}}
{{Caption|Dialog Box for YDirection Rebars data}}

<!--T:66-->
11. Select desired rebar type and fill data for ydirection rebars. <br>
11. Select desired rebar type and fill data for ydirection rebars. <br>
12. Click {{Button|OK}} or {{Button|Apply}} to generate column reinforcement. <br>
12. Click {{Button|OK}} or {{Button|Apply}} to generate column reinforcement. <br>
Line 54: Line 75:


<!--T:7-->
<!--T:7-->
'''Ties:'''
* {{PropertyData|Orientation}}: It decides the orientation of the rebar (like a bottom, top, right and left).
* {{PropertyData|Front Cover}}: The distance between rebar and selected face.
* {{PropertyData|Left Cover}}: The distance between the left end of the tie to the left face of the structure.
* {{PropertyData|Right Cover}}: The distance between the right end of the rebar to right face of the structure.
* {{PropertyData|Right Cover}}: The distance between the right end of the tie to right face of the structure.
* {{PropertyData|Left Cover}}: The distance between the left end of the rebar to the left face of the structure.
* {{PropertyData|Top Cover}}: The distance between tie from the top face of the structure.
* {{PropertyData|Cover along}}: These property facilities the user to specify either top or bottom cover.
* {{PropertyData|Bottom Cover}}: The distance between tie from the bottom face of the structure.
* {{PropertyData|Bottom Cover}}: The distance between rebar from the bottom face of the structure.
* {{PropertyData|Offset}}: The distance between tie from the top/bottom face of the structure.
* {{PropertyData|Top Cover}}: The distance between rebar from the top face of the structure.
* {{PropertyData|Diameter}}: Diameter of the tie.
* {{PropertyData|Amount}}: The amount of rebars.
* {{PropertyData|Bent Angle}}: Bent angle defines the angle at the ends of a tie.
* {{PropertyData|Spacing}}: The distance between the axes of each bar.
* {{PropertyData|Extension Factor}}: Extension Factor defines length of end of tie, expressed in times the diameter.
* {{PropertyData|Number}}: The number of ties.
* {{PropertyData|Spacing}}: The distance between the axes of each tie.

<!--T:39-->
'''Main Rebars:''' Rebars present at corners of tie
* {{PropertyData|Rebar Type}}: Type of main rebars.
* {{PropertyData|Hook Orientation}}: Orientation of LShaped hooks.
* {{PropertyData|Hook Extend Along}}: Direction for hook extension.
* {{PropertyData|Hook Extension}}: Length of hook of LShape rebars.
* {{PropertyData|Rounding}}: A rounding value to be applied to the corners of the LShape rebars, expressed in times the diameter.
* {{PropertyData|Top Offset}}: The distance between rebar from the top face of the structure.
* {{PropertyData|Bottom Offset}}: The distance between rebar from the bottom face of the structure.
* {{PropertyData|Diameter}}: Diameter of the main rebars.

<!--T:40-->
'''XDir Secondary Rebars:''' Rebars along x-direction except main rebars
* {{PropertyData|Rebar Type}}: Type of x-direction rebars.
* {{PropertyData|Hook Orientation}}: Orientation of LShaped hooks.
* {{PropertyData|Hook Extension}}: Length of hook of LShape rebars.
* {{PropertyData|Rounding}}: A rounding value to be applied to the corners of the LShape rebars, expressed in times the diameter.
* {{PropertyData|Top Offset}}: The distance between rebar from the top face of the structure.
* {{PropertyData|Bottom Offset}}: The distance between rebar from the bottom face of the structure.
* {{PropertyData|Number#Diameter}}: Number#Diameter set of the x-direction rebars.

<!--T:41-->
'''YDir Secondary Rebars:''' Rebars along y-direction except main rebars
* {{PropertyData|Rebar Type}}: Type of y-direction rebars.
* {{PropertyData|Hook Orientation}}: Orientation of LShaped hooks.
* {{PropertyData|Hook Extension}}: Length of hook of LShape rebars.
* {{PropertyData|Rounding}}: A rounding value to be applied to the corners of the LShape rebars, expressed in times the diameter.
* {{PropertyData|Top Offset}}: The distance between rebar from the top face of the structure.
* {{PropertyData|Bottom Offset}}: The distance between rebar from the bottom face of the structure.
* {{PropertyData|Number#Diameter}}: Number#Diameter set of the y-direction rebars.



==Scripting== <!--T:8-->
==Scripting== <!--T:8-->

{{Emphasis|See also:}} [[Arch API]], [[Reinforcement API]] and [[FreeCAD Scripting Basics]].
<!--T:42-->
{{Emphasis|See also:}} [[Arch API|Arch API]], [[Reinforcement API|Reinforcement API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].


<!--T:9-->
<!--T:9-->
The Straight Rebar tool can be used in [[macros]] and from the [[Python]] console by using the following function:
The ColumnReinforcement tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following function:

=== Create Single Tie Four Rebars === <!--T:43-->

</translate>
</translate>
{{Code|code=
{{Code|code=
RebarGroup = makeSingleTieFourRebars(
Rebar = makeStraightRebar(f_cover, coverAlong, rt_cover, lb_cover,
l_cover_of_tie,
diameter, amount_spacing_check, amount_spacing_value, orientation="Horizontal",
r_cover_of_tie,
structure=None, facename=None)
t_cover_of_tie,
b_cover_of_tie,
offset_of_tie,
bent_angle,
extension_factor,
dia_of_tie,
number_spacing_check,
number_spacing_value,
dia_of_rebars,
t_offset_of_rebars,
b_offset_of_rebars,
rebar_type="StraightRebar",
hook_orientation="Top Inside",
hook_extend_along="x-axis",
l_rebar_rounding=None,
hook_extension=None,
structure=None,
facename=None,
).rebar_group

}}
}}
<translate>
<translate>


<!--T:24-->
<!--T:24-->
* Creates a {{incode|Rebar}} object from the given {{incode|structure}}, which is an [[Arch Structure]], and {{incode|facename}}, which is a face of that structure.
* Creates a {{incode|RebarGroup}} object from the given {{incode|structure}}, which is an [[Arch Structure|Arch Structure]], and {{incode|facename}}, which is a face of that structure.
** If no {{incode|structure}} nor {{incode|facename}} are given, it will take the user selected face as input.
** If no {{incode|structure}} nor {{incode|facename}} are given, it will take the user selected face as input.
* {{incode|f_cover}}, {{incode|coverAlong}}, {{incode|rt_cover}}, and {{incode|lb_cover}} are inner offset distances for the rebar elements with respect to the faces of the structure.
* {{incode|l_cover_of_tie}}, {{incode|r_cover_of_tie}}, {{incode|t_cover_of_tie}}, {{incode|b_cover_of_tie}} and {{incode|offset_of_tie}} are inner offset distances for the tie elements with respect to the faces of the structure. They are respectively the left, right, top, bottom and front/rear offsets.
** {{incode|f_cover}} is the frontal cover offset.
* {{incode|bent_angle}} define the angle of the tip of the reinforcement loop.
* {{incode|extension_factor}} define the length of the tip of the reinforcement loop, expressed in times the diameter.
** {{incode|coverAlong}} is a tuple {{incode|(position, value)}} that defines the offset value in one position (top, bottom, left, right) depending on the {{incode|orientation}}.
** {{incode|rt_cover}} is either the right or the top cover offset, depending on the value of {{incode|coverAlong}} and {{incode|orientation}}.
* {{incode|dia_of_tie}} is the diameter of the ties.
** {{incode|lb_cover}} is either the left or the bottom cover offset, depending on the value of {{incode|coverAlong}} and {{incode|orientation}}.
* {{incode|number_spacing_check}} if it is {{incode|True}} it will create as many ties as given by {{incode|number_spacing_value}}; if it is {{incode|False}} it will create ties separated by the numerical value of {{incode|number_spacing_value}}.
* {{incode|number_spacing_value}} specifies the number of ties, or the value of the separation between them, depending on {{incode|number_spacing_check}}.
* {{incode|diameter}} is the diameter of the reinforcement bars inside the structure.
* {{incode|dia_of_rebars}} is the diameter of the main rebars.
* {{incode|amount_spacing_check}} if it is {{incode|True}} it will create as many reinforcement bars as given by {{incode|amount_spacing_value}}; if it is {{incode|False}} it will create reinforcement bars separated by the numerical value of {{incode|amount_spacing_value}}.
* {{incode|t_offset_of_rebars}} and {{incode|b_offset_of_rebars}} are inner offset distances for the main rebars with respect to the top and bottom faces of the structure, respectively.
* {{incode|amount_spacing_value}} specifies the number of reinforcement bars, or the value of the separation between them, depending on {{incode|amount_spacing_check}}.
* {{incode|orientation}} specifies the orientation of the rebar; it can be {{incode|"Horizontal"}} or {{incode|"Vertical"}}.
* {{incode|rebar_type}} is the type of the main rebars; it can be {{incode|"StraightRebar"}} or {{incode|"LShapeRebar"}}.
* {{incode|hook_orientation}} specifies the orientation of LShaped hook; it can be: {{incode|"Top Inside"}}, {{incode|"Top Outside"}}, {{incode|"Bottom Inside"}}, {{incode|"Bottom Outside"}}, {{incode|"Top Right"}}, {{incode|"Top Left"}}, {{incode|"Bottom Right"}} or {{incode|"Bottom Left"}}.

* {{incode|hook_extend_along}} specifies direction for hook extension; it can be {{incode|"x-axis"}} or {{incode|"y-axis"}}.
<!--T:25-->
* {{incode|l_rebar_rounding}} is the parameter that determines the bending radius of the LShaped main rebars, expressed as times the diameter.
Depending on the orientation of the rebar, the function can be called in two general ways by setting {{incode|coverAlong}} appropriately.
* {{incode|hook_extension}} is the length of hook of LShaped rebars.


=== The rebar is horizontal === <!--T:26-->
==== Example ==== <!--T:44-->
</translate>
</translate>
{{Code|code=
{{Code|code=
import FreeCAD, Draft, Arch
Rebar = makeStraightRebar(f_cover, ("Top Side", value), right_cover, left_cover, ...)
from ColumnReinforcement import SingleTie
Rebar = makeStraightRebar(f_cover, ("Bottom Side", value), right_cover, left_cover, ...)

<translate>
<!--T:45-->
# It doesn't work if the structure is not based on a face
</translate>
# Structure = Arch.makeStructure(length=1000, width=400, height=400)

Rect = Draft.makeRectangle(400, 400)
Structure = Arch.makeStructure(Rect, height=1600)
Structure.ViewObject.Transparency = 80
FreeCAD.ActiveDocument.recompute()
<translate>

<!--T:46-->
# For Straight Rebars

</translate>
RebarGroup = SingleTie.makeSingleTieFourRebars(
l_cover_of_tie=40,
r_cover_of_tie=40,
t_cover_of_tie=40,
b_cover_of_tie=40,
offset_of_tie=100,
bent_angle=135,
extension_factor=2,
dia_of_tie=8,
number_spacing_check=True,
number_spacing_value=10,
dia_of_rebars=16,
t_offset_of_rebars=40,
b_offset_of_rebars=40,
rebar_type="StraightRebar",
hook_orientation="Top Inside",
hook_extend_along="x-axis",
l_rebar_rounding=None,
hook_extension=None,
structure=Structure,
facename="Face6",
).rebar_group
<translate>

<!--T:47-->
# For LShaped Rebars with hook along x-axis

</translate>
RebarGroup = SingleTie.makeSingleTieFourRebars(
l_cover_of_tie=40,
r_cover_of_tie=40,
t_cover_of_tie=40,
b_cover_of_tie=40,
offset_of_tie=100,
bent_angle=135,
extension_factor=2,
dia_of_tie=8,
number_spacing_check=True,
number_spacing_value=10,
dia_of_rebars=16,
t_offset_of_rebars=-40,
b_offset_of_rebars=-40,
rebar_type="LShapeRebar",
hook_orientation="Top Outside",
hook_extend_along="x-axis",
l_rebar_rounding=2,
hook_extension=40,
structure=Structure,
facename="Face6",
).rebar_group
<translate>

<!--T:48-->
# For LShaped Rebars with hook along y-axis

</translate>
RebarGroup = SingleTie.makeSingleTieFourRebars(
l_cover_of_tie=40,
r_cover_of_tie=40,
t_cover_of_tie=40,
b_cover_of_tie=40,
offset_of_tie=100,
bent_angle=135,
extension_factor=2,
dia_of_tie=8,
number_spacing_check=True,
number_spacing_value=10,
dia_of_rebars=16,
t_offset_of_rebars=-40,
b_offset_of_rebars=-40,
rebar_type="LShapeRebar",
hook_orientation="Top Outside",
hook_extend_along="y-axis",
l_rebar_rounding=2,
hook_extension=40,
structure=Structure,
facename="Face6",
).rebar_group

}}
}}
<translate>
<translate>
<!--T:27-->
* {{incode|coverAlong}} is a tuple with either a {{incode|"Top Side"}} or a {{incode|"Bottom Side"}} offset {{incode|value}}.
* In this case {{incode|rt_cover}} refers to the {{incode|right_cover}} offset, and {{incode|lb_cover}} refers to the {{incode|left_cover}} offset.



=== The rebar is vertical === <!--T:28-->
=== Create Single Tie Multiple Rebars === <!--T:49-->
</translate>
</translate>
{{Code|code=
{{Code|code=
RebarGroup = makeSingleTieMultipleRebars(
Rebar = makeStraightRebar(f_cover, ("Left Side", value), top_cover, bottom_cover, ...)
l_cover_of_tie,
Rebar = makeStraightRebar(f_cover, ("Right Side", value), top_cover, bottom_cover, ...)
r_cover_of_tie,
t_cover_of_tie,
b_cover_of_tie,
offset_of_tie,
bent_angle,
extension_factor,
dia_of_tie,
number_spacing_check,
number_spacing_value,
dia_of_main_rebars,
main_rebars_t_offset,
main_rebars_b_offset,
main_rebars_type="StraightRebar",
main_hook_orientation="Top Inside",
main_hook_extend_along="x-axis",
l_main_rebar_rounding=None,
main_hook_extension=None,
sec_rebars_t_offset=None,
sec_rebars_b_offset=None,
sec_rebars_number_diameter=None,
sec_rebars_type=("StraightRebar", "StraightRebar"),
sec_hook_orientation=("Top Inside", "Top Inside"),
l_sec_rebar_rounding=None,
sec_hook_extension=None,
structure=None,
facename=None,
)

}}
}}
<translate>
<translate>


<!--T:29-->
<!--T:50-->
* {{incode|coverAlong}} is a tuple with either a {{incode|"Left Side"}} or a {{incode|"Right Side"}} offset {{incode|value}}.
* Creates a {{incode|RebarGroup}} object from the given {{incode|structure}}, which is an [[Arch Structure|Arch Structure]], and {{incode|facename}}, which is a face of that structure.
* In this case {{incode|rt_cover}} refers to the {{incode|top_cover}} offset, and {{incode|lb_cover}} refers to the {{incode|bottom_cover}} offset.
** If no {{incode|structure}} nor {{incode|facename}} are given, it will take the user selected face as input.
* {{incode|l_cover_of_tie}}, {{incode|r_cover_of_tie}}, {{incode|t_cover_of_tie}}, {{incode|b_cover_of_tie}} and {{incode|offset_of_tie}} are inner offset distances for the tie elements with respect to the faces of the structure. They are respectively the left, right, top, bottom and front/rear offsets.
* {{incode|bent_angle}} define the angle of the tip of the reinforcement loop.
* {{incode|extension_factor}} define the length of the tip of the reinforcement loop, expressed in times the diameter.
* {{incode|dia_of_tie}} is the diameter of the ties.
* {{incode|number_spacing_check}} if it is {{incode|True}} it will create as many ties as given by {{incode|number_spacing_value}}; if it is {{incode|False}} it will create ties separated by the numerical value of {{incode|number_spacing_value}}.
* {{incode|number_spacing_value}} specifies the number of ties, or the value of the separation between them, depending on {{incode|number_spacing_check}}.
* {{incode|dia_of_main_rebars}} is the diameter of the main rebars.
* {{incode|main_rebars_t_offset}} and {{incode|main_rebars_b_offset}} are inner offset distances for the main rebars with respect to the top and bottom faces of the structure, respectively.
* {{incode|main_rebars_type}} is the type of the main rebars; it can be {{incode|"StraightRebar"}} or {{incode|"LShapeRebar"}}.
* {{incode|main_hook_orientation}} specifies the orientation of main LShaped hook; it can be: {{incode|"Top Inside"}}, {{incode|"Top Outside"}}, {{incode|"Bottom Inside"}}, {{incode|"Bottom Outside"}}, {{incode|"Top Right"}}, {{incode|"Top Left"}}, {{incode|"Bottom Right"}} or {{incode|"Bottom Left"}}.
* {{incode|main_hook_extend_along}} specifies direction for main hook extension; it can be {{incode|"x-axis"}} or {{incode|"y-axis"}}.
* {{incode|l_main_rebar_rounding}} is the parameter that determines the bending radius of the LShaped main rebars, expressed as times the diameter.
* {{incode|main_hook_extension}} is the length of hook of main LShaped rebars.
* {{incode|sec_rebars_t_offset}} and {{incode|sec_rebars_b_offset}} are tuples (xdir_rebars_t_offset, ydir_rebars_t_offset) and (xdir_rebars_b_offset, ydir_rebars_b_offset) respectively, that defines inner offset distances for the secondary x-direction and y-direction rebars with respect to the top and bottom faces of the structure, respectively.
* {{incode|sec_rebars_number_diameter}} is a tuple (xdir_rebars_number_diameter, ydir_rebars_number_diameter) that defines number#diameter set of the secondary x-direction and y-direction rebars, respectively.
* {{incode|sec_rebars_type}} is a tuple (xdir_rebars_type, ydir_rebars_type) that defines the type of secondary x-direction and y-direction rebars ,respectively; it can have {{incode|"StraightRebar"}} or {{incode|"LShapeRebar"}} as rebar type.
* {{incode|sec_hook_orientation}} is a tuple (xdir_hook_orientation, ydir_hook_orientation) that defines the orientation of secondary x-direction and y-direction LShaped hook; it can have {{incode|"Top Inside"}}, {{incode|"Top Outside"}}, {{incode|"Bottom Inside"}}, {{incode|"Bottom Outside"}}, {{incode|"Top Right"}}, {{incode|"Top Left"}}, {{incode|"Bottom Right"}} or {{incode|"Bottom Left"}} as hook_orientation.
* {{incode|l_sec_rebar_rounding}} is a tuple (l_xdir_rebar_rounding, l_ydir_rebar_rounding) that determines the bending radius of the LShaped secondary x-direction and y-direction LShaped rebars, expressed as times the diameter of x-direction and y-direction LShaped rebars, respectively.
* {{incode|sec_hook_extension}} is a tuple (xdir_hook_extension, ydir_hook_extension) that defines the length of hook of secondary x-direction and y-direction LShaped rebars.

==== Example ==== <!--T:51-->


=== Example horizontal === <!--T:30-->
</translate>
</translate>
{{Code|code=
{{Code|code=
import Arch, Draft, StraightRebar
import FreeCAD, Draft, Arch
from ColumnReinforcement import SingleTieMultipleRebars


<translate>
Structure = Arch.makeStructure(length=1000, width=1000, height=400)
<!--T:52-->
# It doesn't work if the structure is not based on a face
</translate>
# Structure = Arch.makeStructure(length=1000, width=400, height=400)

Rect = Draft.makeRectangle(400, 400)
Structure = Arch.makeStructure(Rect, height=1600)
Structure.ViewObject.Transparency = 80
Structure.ViewObject.Transparency = 80
FreeCAD.ActiveDocument.recompute()
FreeCAD.ActiveDocument.recompute()


RebarGroup = SingleTieMultipleRebars.makeSingleTieMultipleRebars(
Rebar = StraightRebar.makeStraightRebar(50, ("Bottom Side", 20), 100, 100,
l_cover_of_tie=40,
12, True, 5, "Horizontal", Structure, "Face4")
r_cover_of_tie=40,
Rebar.ViewObject.ShapeColor = (0.9, 0.0, 0.0)
t_cover_of_tie=40,
b_cover_of_tie=40,
offset_of_tie=100,
bent_angle=135,
extension_factor=2,
dia_of_tie=8,
number_spacing_check=True,
number_spacing_value=10,
dia_of_main_rebars=16,
main_rebars_t_offset=-40,
main_rebars_b_offset=-40,
main_rebars_type="LShapeRebar",
main_hook_orientation="Top Outside",
main_hook_extend_along="x-axis",
l_main_rebar_rounding=2,
main_hook_extension=40,
sec_rebars_t_offset=(-40, -40),
sec_rebars_b_offset=(-40, -40),
sec_rebars_number_diameter=("2#20mm+1#16mm+2#20mm", "1#20mm+1#16mm+1#20mm"),
sec_rebars_type=("LShapeRebar", "LShapeRebar"),
sec_hook_orientation=("Top Outside", "Top Outside"),
l_sec_rebar_rounding=(2, 2),
sec_hook_extension=(40, 40),
structure=Structure,
facename="Face6",
)


Rebar2 = StraightRebar.makeStraightRebar(50, ("Bottom Side", 50), 100, 100,
12, True, 5, "Horizontal", Structure, "Face6")
Rebar2.ViewObject.ShapeColor = (0.0, 0.0, 0.9)
}}
}}
<translate>
<translate>


===Example vertical === <!--T:31-->
=== Edition of Single Tie Four Rebars === <!--T:53-->
You can change the properties of the ties and rebars with the following function

</translate>
</translate>
{{Code|code=
{{Code|code=
rebar_group = editSingleTieFourRebars(
import Arch, Draft, StraightRebar
rebar_group,
l_cover_of_tie,
r_cover_of_tie,
t_cover_of_tie,
b_cover_of_tie,
offset_of_tie,
bent_angle,
extension_factor,
dia_of_tie,
number_spacing_check,
number_spacing_value,
dia_of_rebars,
t_offset_of_rebars,
b_offset_of_rebars,
rebar_type="StraightRebar",
hook_orientation="Top Inside",
hook_extend_along="x-axis",
l_rebar_rounding=None,
hook_extension=None,
structure=None,
facename=None,
)


Structure2 = Arch.makeStructure(length=1000, width=1000, height=400)
Structure2.ViewObject.Transparency = 80
Draft.move(Structure2, FreeCAD.Vector(1500, 0, 0))
FreeCAD.ActiveDocument.recompute()

Rebar3 = StraightRebar.makeStraightRebar(50, ("Left Side", 20), 100, 100,
12, True, 5, "Vertical", Structure2, "Face4")
Rebar3.ViewObject.ShapeColor = (0.9, 0.5, 0.0)

Rebar4 = StraightRebar.makeStraightRebar(50, ("Left Side", 50), 100, 100,
12, True, 5, "Vertical", Structure2, "Face6")
Rebar4.ViewObject.ShapeColor = (0.0, 0.5, 0.5)
}}
}}
<translate>
<translate>


=== Edition of rebar === <!--T:20-->
<!--T:54-->
* {{incode|rebar_group}} is a previously created {{incode|ColumnReinforcement}} group object.
You can change the properties of the rebar with the following function
* The other parameters are the same as required by the {{incode|makeSingleTieFourRebars()}} function.
* {{incode|structure}} and {{incode|facename}} may be omitted so that the rebar stays in the original structure.

==== Example ==== <!--T:55-->

</translate>
</translate>
{{Code|code=
{{Code|code=
from ColumnReinforcement import SingleTie
editStraightRebar(Rebar, f_cover, coverAlong, rt_cover, lb_cover,

diameter, amount_spacing_check, amount_spacing_value, orientation,
rebar_group = SingleTie.editSingleTieFourRebars(
structure=None, facename=None)
rebar_group,
l_cover_of_tie=40,
r_cover_of_tie=40,
t_cover_of_tie=40,
b_cover_of_tie=40,
offset_of_tie=100,
bent_angle=135,
extension_factor=2,
dia_of_tie=8,
number_spacing_check=True,
number_spacing_value=10,
dia_of_rebars=16,
t_offset_of_rebars=-40,
b_offset_of_rebars=-40,
rebar_type="LShapeRebar",
hook_orientation="Top Outside",
hook_extend_along="x-axis",
l_rebar_rounding=2,
hook_extension=40,
structure=None,
facename=None,
)

}}
}}
<translate>
<translate>


=== Edition of Single Tie Multiple Rebars === <!--T:56-->
<!--T:32-->
You can change the properties of the ties and rebars with the following function
* {{incode|Rebar}} is a previously created {{incode|StraightRebar}} object.
* The other parameters are the same as required by the {{incode|makeStraightRebar()}} function.
* {{incode|structure}} and {{incode|facename}} may be omitted so that the rebar stays in the original structure.


<!--T:33-->
Example:
</translate>
</translate>
{{Code|code=
{{Code|code=
rebar_group = editSingleTieMultipleRebars(
import StraightRebar
rebar_group,
l_cover_of_tie,
r_cover_of_tie,
t_cover_of_tie,
b_cover_of_tie,
offset_of_tie,
bent_angle,
extension_factor,
dia_of_tie,
number_spacing_check,
number_spacing_value,
dia_of_main_rebars,
main_rebars_t_offset,
main_rebars_b_offset,
main_rebars_type="StraightRebar",
main_hook_orientation="Top Inside",
main_hook_extend_along="x-axis",
l_main_rebar_rounding=None,
main_hook_extension=None,
sec_rebars_t_offset=None,
sec_rebars_b_offset=None,
sec_rebars_number_diameter=None,
sec_rebars_type=("StraightRebar", "StraightRebar"),
sec_hook_orientation=("Top Inside", "Top Inside"),
l_sec_rebar_rounding=None,
sec_hook_extension=None,
structure=None,
facename=None,
)


}}
StraightRebar.editStraightRebar(Rebar, 50, ("Top Side", 20), 100, 100,
<translate>
24, True, 7, "Horizontal")


<!--T:57-->
StraightRebar.editStraightRebar(Rebar2, 50, ("Top Side", 50), 100, 100,
* {{incode|rebar_group}} is a previously created {{incode|ColumnReinforcement}} group object.
24, True, 7, "Horizontal")
* The other parameters are the same as required by the {{incode|makeSingleTieMultipleRebars()}} function.
* {{incode|structure}} and {{incode|facename}} may be omitted so that the reinforcement stays in the original structure.


==== Example ==== <!--T:58-->
StraightRebar.editStraightRebar(Rebar3, 50, ("Right Side", 20), 100, 100,

24, True, 7, "Vertical")
</translate>
{{Code|code=
from ColumnReinforcement import SingleTieMultipleRebars

rebar_group = SingleTieMultipleRebars.editSingleTieMultipleRebars(
rebar_group,
l_cover_of_tie=40,
r_cover_of_tie=40,
t_cover_of_tie=40,
b_cover_of_tie=40,
offset_of_tie=100,
bent_angle=135,
extension_factor=2,
dia_of_tie=8,
number_spacing_check=True,
number_spacing_value=10,
dia_of_main_rebars=16,
main_rebars_t_offset=-40,
main_rebars_b_offset=-40,
main_rebars_type="LShapeRebar",
main_hook_orientation="Top Outside",
main_hook_extend_along="x-axis",
l_main_rebar_rounding=2,
main_hook_extension=40,
sec_rebars_t_offset=(-40, -40),
sec_rebars_b_offset=(-40, -40),
sec_rebars_number_diameter=("2#20mm+1#16mm+2#20mm", "1#20mm+1#16mm+1#20mm"),
sec_rebars_type=("StraightRebar", "StraightRebar"),
sec_hook_orientation=None,
l_sec_rebar_rounding=None,
sec_hook_extension=None,
structure=None,
facename=None,
)


StraightRebar.editStraightRebar(Rebar4, 50, ("Right Side", 50), 100, 100,
24, True, 7, "Vertical")
}}
}}
<translate>
<translate>

<!--T:21-->
<!--T:21-->
{{docnav
{{docnav|[[Arch_CompRebarStraight|Arch CompRebarStraight]]|[[Arch_Rebar_UShape|UShape Rebar]]|[[Arch_Module|Arch]]|IconL=Arch_CompRebarStraight.png|IconC=Workbench_Arch.svg|IconR=Arch_Rebar_UShape.png}}
|[[Arch_Rebar_Circular_ColumnReinforcement|Circular Column Reinforcement]]
|[[Arch_Rebar_ColumnReinforcement_TwoTiesSixRebars|ColumnReinforcement TwoTiesSixRebars]]
|[[Arch_Module|Arch]]
|IconL=Arch_Rebar_ColumnReinforcement.svg
|IconC=Workbench_Arch.svg
|IconR=Arch_Rebar_ColumnReinforcement.svg
}}


</translate>
<!--T:34-->
{{Arch Tools navi}}
{{Arch Tools navi{{#translation:}}}}


{{Userdocnavi{{#translation:}}}}
<!--T:35-->
{{Userdocnavi}}


[[Category:Reinforcement{{#translation:}}]]
<!--T:36-->
[[Category:Reinforcement]]
</translate>

Revision as of 22:07, 19 February 2020

Arch Rebar ColumnReinforcement

Menu location
Arch → Rebar tools
Workbenches
Arch, BIM
Default shortcut
None
Introduced in version
0.19
See also
Helical Rebar, ColumnReinforcement TwoTiesSixRebars

Description

The Column Reinforcement tool allows the user to create reinforcing bars inside a Column Arch Structure object.

This command is part of the Reinforcement Addon, that you can install with the Addon Manager via the menu Tools → Addon manager → Reinforcement.

Column Reinforcement inside a Column Arch Structure

Usage

1. Select any face of a previously created Arch Structure object.
2. Then select Column Reinforcement from the rebar tools.
3. A dialog box will pop-out on screen as shown below.

Dialog Box for the Arch Rebar ColumnReinforcement tool

4. Select the desired type of column reinforcement.
5. Give inputs for data related to ties.
6. Click next and dialog box will be updated as shown below.

Dialog Box for Main Rebars data

7. Select desired rebar type and fill data for main rebars.
8. Click next and dialog box will be updated as shown below.

Dialog Box for XDirection Rebars data

9. Select desired rebar type and fill data for xdirection rebars.
10. Click next and dialog box will be updated as shown below.

Dialog Box for YDirection Rebars data

11. Select desired rebar type and fill data for ydirection rebars.
12. Click OK or Apply to generate column reinforcement.
13. Click Cancel to exit the dialog box.


Properties

Ties:

  • DataLeft Cover: The distance between the left end of the tie to the left face of the structure.
  • DataRight Cover: The distance between the right end of the tie to right face of the structure.
  • DataTop Cover: The distance between tie from the top face of the structure.
  • DataBottom Cover: The distance between tie from the bottom face of the structure.
  • DataOffset: The distance between tie from the top/bottom face of the structure.
  • DataDiameter: Diameter of the tie.
  • DataBent Angle: Bent angle defines the angle at the ends of a tie.
  • DataExtension Factor: Extension Factor defines length of end of tie, expressed in times the diameter.
  • DataNumber: The number of ties.
  • DataSpacing: The distance between the axes of each tie.

Main Rebars: Rebars present at corners of tie

  • DataRebar Type: Type of main rebars.
  • DataHook Orientation: Orientation of LShaped hooks.
  • DataHook Extend Along: Direction for hook extension.
  • DataHook Extension: Length of hook of LShape rebars.
  • DataRounding: A rounding value to be applied to the corners of the LShape rebars, expressed in times the diameter.
  • DataTop Offset: The distance between rebar from the top face of the structure.
  • DataBottom Offset: The distance between rebar from the bottom face of the structure.
  • DataDiameter: Diameter of the main rebars.

XDir Secondary Rebars: Rebars along x-direction except main rebars

  • DataRebar Type: Type of x-direction rebars.
  • DataHook Orientation: Orientation of LShaped hooks.
  • DataHook Extension: Length of hook of LShape rebars.
  • DataRounding: A rounding value to be applied to the corners of the LShape rebars, expressed in times the diameter.
  • DataTop Offset: The distance between rebar from the top face of the structure.
  • DataBottom Offset: The distance between rebar from the bottom face of the structure.
  • DataNumber#Diameter: Number#Diameter set of the x-direction rebars.

YDir Secondary Rebars: Rebars along y-direction except main rebars

  • DataRebar Type: Type of y-direction rebars.
  • DataHook Orientation: Orientation of LShaped hooks.
  • DataHook Extension: Length of hook of LShape rebars.
  • DataRounding: A rounding value to be applied to the corners of the LShape rebars, expressed in times the diameter.
  • DataTop Offset: The distance between rebar from the top face of the structure.
  • DataBottom Offset: The distance between rebar from the bottom face of the structure.
  • DataNumber#Diameter: Number#Diameter set of the y-direction rebars.


Scripting

See also: Arch API, Reinforcement API and FreeCAD Scripting Basics.

The ColumnReinforcement tool can be used in macros and from the Python console by using the following function:

Create Single Tie Four Rebars

RebarGroup = makeSingleTieFourRebars(
    l_cover_of_tie,
    r_cover_of_tie,
    t_cover_of_tie,
    b_cover_of_tie,
    offset_of_tie,
    bent_angle,
    extension_factor,
    dia_of_tie,
    number_spacing_check,
    number_spacing_value,
    dia_of_rebars,
    t_offset_of_rebars,
    b_offset_of_rebars,
    rebar_type="StraightRebar",
    hook_orientation="Top Inside",
    hook_extend_along="x-axis",
    l_rebar_rounding=None,
    hook_extension=None,
    structure=None,
    facename=None,
).rebar_group
  • Creates a RebarGroup object from the given structure, which is an Arch Structure, and facename, which is a face of that structure.
    • If no structure nor facename are given, it will take the user selected face as input.
  • l_cover_of_tie, r_cover_of_tie, t_cover_of_tie, b_cover_of_tie and offset_of_tie are inner offset distances for the tie elements with respect to the faces of the structure. They are respectively the left, right, top, bottom and front/rear offsets.
  • bent_angle define the angle of the tip of the reinforcement loop.
  • extension_factor define the length of the tip of the reinforcement loop, expressed in times the diameter.
  • dia_of_tie is the diameter of the ties.
  • number_spacing_check if it is True it will create as many ties as given by number_spacing_value; if it is False it will create ties separated by the numerical value of number_spacing_value.
  • number_spacing_value specifies the number of ties, or the value of the separation between them, depending on number_spacing_check.
  • dia_of_rebars is the diameter of the main rebars.
  • t_offset_of_rebars and b_offset_of_rebars are inner offset distances for the main rebars with respect to the top and bottom faces of the structure, respectively.
  • rebar_type is the type of the main rebars; it can be "StraightRebar" or "LShapeRebar".
  • hook_orientation specifies the orientation of LShaped hook; it can be: "Top Inside", "Top Outside", "Bottom Inside", "Bottom Outside", "Top Right", "Top Left", "Bottom Right" or "Bottom Left".
  • hook_extend_along specifies direction for hook extension; it can be "x-axis" or "y-axis".
  • l_rebar_rounding is the parameter that determines the bending radius of the LShaped main rebars, expressed as times the diameter.
  • hook_extension is the length of hook of LShaped rebars.

Example

import FreeCAD, Draft, Arch
from ColumnReinforcement import SingleTie

# It doesn't work if the structure is not based on a face
# Structure = Arch.makeStructure(length=1000, width=400, height=400)

Rect = Draft.makeRectangle(400, 400)
Structure = Arch.makeStructure(Rect, height=1600)
Structure.ViewObject.Transparency = 80
FreeCAD.ActiveDocument.recompute()

# For Straight Rebars

RebarGroup = SingleTie.makeSingleTieFourRebars(
    l_cover_of_tie=40,        
    r_cover_of_tie=40,
    t_cover_of_tie=40,
    b_cover_of_tie=40,
    offset_of_tie=100,
    bent_angle=135,
    extension_factor=2,
    dia_of_tie=8,
    number_spacing_check=True,
    number_spacing_value=10,
    dia_of_rebars=16,
    t_offset_of_rebars=40,
    b_offset_of_rebars=40,
    rebar_type="StraightRebar",
    hook_orientation="Top Inside",
    hook_extend_along="x-axis",
    l_rebar_rounding=None,
    hook_extension=None,
    structure=Structure,
    facename="Face6",
).rebar_group

# For LShaped Rebars with hook along x-axis

RebarGroup = SingleTie.makeSingleTieFourRebars(
    l_cover_of_tie=40,        
    r_cover_of_tie=40,
    t_cover_of_tie=40,
    b_cover_of_tie=40,
    offset_of_tie=100,
    bent_angle=135,
    extension_factor=2,
    dia_of_tie=8,
    number_spacing_check=True,
    number_spacing_value=10,
    dia_of_rebars=16,
    t_offset_of_rebars=-40,
    b_offset_of_rebars=-40,
    rebar_type="LShapeRebar",
    hook_orientation="Top Outside",
    hook_extend_along="x-axis",
    l_rebar_rounding=2,
    hook_extension=40,
    structure=Structure,
    facename="Face6",
).rebar_group

# For LShaped Rebars with hook along y-axis

RebarGroup = SingleTie.makeSingleTieFourRebars(
    l_cover_of_tie=40,        
    r_cover_of_tie=40,
    t_cover_of_tie=40,
    b_cover_of_tie=40,
    offset_of_tie=100,
    bent_angle=135,
    extension_factor=2,
    dia_of_tie=8,
    number_spacing_check=True,
    number_spacing_value=10,
    dia_of_rebars=16,
    t_offset_of_rebars=-40,
    b_offset_of_rebars=-40,
    rebar_type="LShapeRebar",
    hook_orientation="Top Outside",
    hook_extend_along="y-axis",
    l_rebar_rounding=2,
    hook_extension=40,
    structure=Structure,
    facename="Face6",
).rebar_group


Create Single Tie Multiple Rebars

RebarGroup = makeSingleTieMultipleRebars(
    l_cover_of_tie,
    r_cover_of_tie,
    t_cover_of_tie,           
    b_cover_of_tie,                      
    offset_of_tie,                       
    bent_angle,                          
    extension_factor,
    dia_of_tie,     
    number_spacing_check,
    number_spacing_value,
    dia_of_main_rebars,
    main_rebars_t_offset,
    main_rebars_b_offset,
    main_rebars_type="StraightRebar",
    main_hook_orientation="Top Inside",
    main_hook_extend_along="x-axis",
    l_main_rebar_rounding=None,
    main_hook_extension=None,
    sec_rebars_t_offset=None,
    sec_rebars_b_offset=None,
    sec_rebars_number_diameter=None,
    sec_rebars_type=("StraightRebar", "StraightRebar"),
    sec_hook_orientation=("Top Inside", "Top Inside"),
    l_sec_rebar_rounding=None,
    sec_hook_extension=None,
    structure=None,
    facename=None,
)
  • Creates a RebarGroup object from the given structure, which is an Arch Structure, and facename, which is a face of that structure.
    • If no structure nor facename are given, it will take the user selected face as input.
  • l_cover_of_tie, r_cover_of_tie, t_cover_of_tie, b_cover_of_tie and offset_of_tie are inner offset distances for the tie elements with respect to the faces of the structure. They are respectively the left, right, top, bottom and front/rear offsets.
  • bent_angle define the angle of the tip of the reinforcement loop.
  • extension_factor define the length of the tip of the reinforcement loop, expressed in times the diameter.
  • dia_of_tie is the diameter of the ties.
  • number_spacing_check if it is True it will create as many ties as given by number_spacing_value; if it is False it will create ties separated by the numerical value of number_spacing_value.
  • number_spacing_value specifies the number of ties, or the value of the separation between them, depending on number_spacing_check.
  • dia_of_main_rebars is the diameter of the main rebars.
  • main_rebars_t_offset and main_rebars_b_offset are inner offset distances for the main rebars with respect to the top and bottom faces of the structure, respectively.
  • main_rebars_type is the type of the main rebars; it can be "StraightRebar" or "LShapeRebar".
  • main_hook_orientation specifies the orientation of main LShaped hook; it can be: "Top Inside", "Top Outside", "Bottom Inside", "Bottom Outside", "Top Right", "Top Left", "Bottom Right" or "Bottom Left".
  • main_hook_extend_along specifies direction for main hook extension; it can be "x-axis" or "y-axis".
  • l_main_rebar_rounding is the parameter that determines the bending radius of the LShaped main rebars, expressed as times the diameter.
  • main_hook_extension is the length of hook of main LShaped rebars.
  • sec_rebars_t_offset and sec_rebars_b_offset are tuples (xdir_rebars_t_offset, ydir_rebars_t_offset) and (xdir_rebars_b_offset, ydir_rebars_b_offset) respectively, that defines inner offset distances for the secondary x-direction and y-direction rebars with respect to the top and bottom faces of the structure, respectively.
  • sec_rebars_number_diameter is a tuple (xdir_rebars_number_diameter, ydir_rebars_number_diameter) that defines number#diameter set of the secondary x-direction and y-direction rebars, respectively.
  • sec_rebars_type is a tuple (xdir_rebars_type, ydir_rebars_type) that defines the type of secondary x-direction and y-direction rebars ,respectively; it can have "StraightRebar" or "LShapeRebar" as rebar type.
  • sec_hook_orientation is a tuple (xdir_hook_orientation, ydir_hook_orientation) that defines the orientation of secondary x-direction and y-direction LShaped hook; it can have "Top Inside", "Top Outside", "Bottom Inside", "Bottom Outside", "Top Right", "Top Left", "Bottom Right" or "Bottom Left" as hook_orientation.
  • l_sec_rebar_rounding is a tuple (l_xdir_rebar_rounding, l_ydir_rebar_rounding) that determines the bending radius of the LShaped secondary x-direction and y-direction LShaped rebars, expressed as times the diameter of x-direction and y-direction LShaped rebars, respectively.
  • sec_hook_extension is a tuple (xdir_hook_extension, ydir_hook_extension) that defines the length of hook of secondary x-direction and y-direction LShaped rebars.

Example

import FreeCAD, Draft, Arch
from ColumnReinforcement import SingleTieMultipleRebars

# It doesn't work if the structure is not based on a face
# Structure = Arch.makeStructure(length=1000, width=400, height=400)

Rect = Draft.makeRectangle(400, 400)
Structure = Arch.makeStructure(Rect, height=1600)
Structure.ViewObject.Transparency = 80
FreeCAD.ActiveDocument.recompute()

RebarGroup = SingleTieMultipleRebars.makeSingleTieMultipleRebars(
    l_cover_of_tie=40,        
    r_cover_of_tie=40,
    t_cover_of_tie=40,
    b_cover_of_tie=40,
    offset_of_tie=100,
    bent_angle=135,
    extension_factor=2,
    dia_of_tie=8,
    number_spacing_check=True,
    number_spacing_value=10,
    dia_of_main_rebars=16,
    main_rebars_t_offset=-40,
    main_rebars_b_offset=-40,
    main_rebars_type="LShapeRebar",
    main_hook_orientation="Top Outside",
    main_hook_extend_along="x-axis",
    l_main_rebar_rounding=2,
    main_hook_extension=40,
    sec_rebars_t_offset=(-40, -40),
    sec_rebars_b_offset=(-40, -40),
    sec_rebars_number_diameter=("2#20mm+1#16mm+2#20mm", "1#20mm+1#16mm+1#20mm"),
    sec_rebars_type=("LShapeRebar", "LShapeRebar"),
    sec_hook_orientation=("Top Outside", "Top Outside"),
    l_sec_rebar_rounding=(2, 2),
    sec_hook_extension=(40, 40),
    structure=Structure,
    facename="Face6",
)

Edition of Single Tie Four Rebars

You can change the properties of the ties and rebars with the following function

rebar_group = editSingleTieFourRebars(
    rebar_group,
    l_cover_of_tie,
    r_cover_of_tie,    
    t_cover_of_tie,           
    b_cover_of_tie,
    offset_of_tie,
    bent_angle,
    extension_factor,
    dia_of_tie,
    number_spacing_check,
    number_spacing_value,
    dia_of_rebars,
    t_offset_of_rebars,
    b_offset_of_rebars,
    rebar_type="StraightRebar",
    hook_orientation="Top Inside",
    hook_extend_along="x-axis",
    l_rebar_rounding=None,
    hook_extension=None,
    structure=None,
    facename=None,
)
  • rebar_group is a previously created ColumnReinforcement group object.
  • The other parameters are the same as required by the makeSingleTieFourRebars() function.
  • structure and facename may be omitted so that the rebar stays in the original structure.

Example

from ColumnReinforcement import SingleTie

rebar_group = SingleTie.editSingleTieFourRebars(
    rebar_group,                                
    l_cover_of_tie=40,        
    r_cover_of_tie=40,
    t_cover_of_tie=40,
    b_cover_of_tie=40,
    offset_of_tie=100,
    bent_angle=135,
    extension_factor=2,
    dia_of_tie=8,
    number_spacing_check=True,
    number_spacing_value=10,
    dia_of_rebars=16,
    t_offset_of_rebars=-40,
    b_offset_of_rebars=-40,
    rebar_type="LShapeRebar",
    hook_orientation="Top Outside",
    hook_extend_along="x-axis",
    l_rebar_rounding=2,
    hook_extension=40,
    structure=None,
    facename=None,
)

Edition of Single Tie Multiple Rebars

You can change the properties of the ties and rebars with the following function

rebar_group = editSingleTieMultipleRebars(
    rebar_group,
    l_cover_of_tie,      
    r_cover_of_tie,       
    t_cover_of_tie,                       
    b_cover_of_tie,                       
    offset_of_tie,                        
    bent_angle,
    extension_factor,
    dia_of_tie,
    number_spacing_check,
    number_spacing_value,
    dia_of_main_rebars,
    main_rebars_t_offset,
    main_rebars_b_offset,
    main_rebars_type="StraightRebar",
    main_hook_orientation="Top Inside",
    main_hook_extend_along="x-axis",
    l_main_rebar_rounding=None,
    main_hook_extension=None,
    sec_rebars_t_offset=None,
    sec_rebars_b_offset=None,
    sec_rebars_number_diameter=None,
    sec_rebars_type=("StraightRebar", "StraightRebar"),
    sec_hook_orientation=("Top Inside", "Top Inside"),
    l_sec_rebar_rounding=None,
    sec_hook_extension=None,
    structure=None,
    facename=None,
)
  • rebar_group is a previously created ColumnReinforcement group object.
  • The other parameters are the same as required by the makeSingleTieMultipleRebars() function.
  • structure and facename may be omitted so that the reinforcement stays in the original structure.

Example

from ColumnReinforcement import SingleTieMultipleRebars

rebar_group = SingleTieMultipleRebars.editSingleTieMultipleRebars(
    rebar_group,                                
    l_cover_of_tie=40,        
    r_cover_of_tie=40,
    t_cover_of_tie=40,
    b_cover_of_tie=40,
    offset_of_tie=100,
    bent_angle=135,
    extension_factor=2,
    dia_of_tie=8,
    number_spacing_check=True,
    number_spacing_value=10,
    dia_of_main_rebars=16,
    main_rebars_t_offset=-40,
    main_rebars_b_offset=-40,
    main_rebars_type="LShapeRebar",
    main_hook_orientation="Top Outside",
    main_hook_extend_along="x-axis",
    l_main_rebar_rounding=2,
    main_hook_extension=40,
    sec_rebars_t_offset=(-40, -40),
    sec_rebars_b_offset=(-40, -40),
    sec_rebars_number_diameter=("2#20mm+1#16mm+2#20mm", "1#20mm+1#16mm+1#20mm"),
    sec_rebars_type=("StraightRebar", "StraightRebar"),
    sec_hook_orientation=None,
    l_sec_rebar_rounding=None,
    sec_hook_extension=None,
    structure=None,
    facename=None,
)