Suraj Dadral wrote: ↑Wed Aug 21, 2019 5:57 pm
But, when we tried to create reinforcement in a beam having length along y-axis, then it gives the same error as reported by @amrit3701.
Then @amrit3701 suggested a way to create shear rebars in beam having length along y-axis.
Now, I am implementing suggestion of @amrit3701. I will complete it by tomorrow.
Hello everyone,
The error has been removed as per commit:
https://github.com/SurajDadral/FreeCAD- ... 44760b12d5
Now, user can create beam reinforcement
- for beam having length along x-axis, by selecting right face of beam.
- for beam having length along y-axis, by selecting front face of beam.
I will modify the documentation accordingly.
Example:
Code: Select all
import FreeCAD, Arch
from BeamReinforcement import TwoLeggedBeam
Structure = Arch.makeStructure(length=200.0,width=3000.0,height=400.0)
Structure.ViewObject.Transparency = 80
FreeCAD.ActiveDocument.recompute()
RebarGroup = TwoLeggedBeam.makeReinforcement(
l_cover_of_stirrup=20,
r_cover_of_stirrup=20,
t_cover_of_stirrup=20,
b_cover_of_stirrup=20,
offset_of_stirrup=100,
bent_angle=135,
extension_factor=4,
dia_of_stirrup=8,
number_spacing_check=False,
number_spacing_value=200,
top_reinforcement_number_diameter_offset=("1#20@-60+2#16@-60+1#20@-60", "3#16@-100"),
top_reinforcement_rebar_type="LShapeRebar",
top_reinforcement_layer_spacing=30,
bottom_reinforcement_number_diameter_offset=("1#20@-60+2#16@-60+1#20@-60", "3#16@-100"),
bottom_reinforcement_rebar_type="LShapeRebar",
bottom_reinforcement_layer_spacing=30,
left_rebars_number_diameter_offset="1#16@-100+1#16@-100+1#16@-100",
left_rebars_type="LShapeRebar",
left_rebars_spacing=30,
right_rebars_number_diameter_offset="1#16@-100+1#16@-100+1#16@-100",
right_rebars_type="LShapeRebar",
right_rebars_spacing=30,
top_reinforcement_l_rebar_rounding=2,
top_reinforcement_hook_extension=100,
top_reinforcement_hook_orientation="Rear Outside",
bottom_reinforcement_l_rebar_rounding=2,
bottom_reinforcement_hook_extension=100,
bottom_reinforcement_hook_orientation="Rear Outside",
left_l_rebar_rounding=2,
left_rebars_hook_extension=80,
left_rebars_hook_orientation=("Rear Inside", "Front Inside", "Rear Inside"),
right_l_rebar_rounding=2,
right_rebars_hook_extension=80,
right_rebars_hook_orientation=("Front Inside", "Rear Inside", "Front Inside"),
structure=Structure,
facename="Face1",
)
Please review and give your suggestions.
Thanks,