This project aims to facilitate flexible implementation and usage of Rebaring in FreeCAD. In this project, a list of rebars will be provided in the user interface under the Rebar tools in the form of a dropdown list. This endeavor started as a Google Summer of Code (GSOC 2017) project.
Added new features of beam and column reinforcement as Google Summer of Code (GSOC 2019) project
This project currently covers six different rebar shapes as given below:
-
Straight Rebar: wiki
-
UShape Rebar: wiki
-
LShape Rebar: wiki
-
BentShpae Rebar: wiki
-
Stirrup Rebar: wiki
-
Helical Rebar: wiki
-
Column Reinforcement: wiki
TwoTiesSixRebars Column Reinforcement: wiki
Beam Reinforcement: wiki
- FreeCAD (version >= 0.17): Installation guide
- Open the FreeCAD Addon Manager (
Tool -> Addon manager
). - Within the Addon Manager select
Reinforcement
from a list of the workbenches shown. - After selecting, click on the
Install/Update
button. - Restart FreeCAD.
- Now you will see different rebars in a drop-down list of rebar tools (
Arch -> Rebar tools -> Different rebars
).
Each rebar tool has two files, one is the Python
file and the second is there respective name UI
file like StraightRebar.py
and StraightRebar.ui
file.
Let's take a straight rebar tool. In StraightRebar.py
file, there are two functions. One is the makeStraightRebar()
function.
This function creates straight rebar and adds new properties to the default Rebar
object. The second function is editStraightRebar
.
This function is used when we want to change a new properties (which is created by the makeStraightRebar
function) of the rebar object and it will take the
Rebar
object as input which is created by the makeStraightRebar
function. In StraightRebar.py
, _StraightRebarTaskPanel
class is present.
This class loads the UI (present in StraightRebar.ui
file) in the task panel of FreeCAD. The first time a user clicks on Apply
or the Ok
button the
makeStraightRebar
function is executed. After that when the user wants to change the properties of Straight rebar then the editStraightRebar
function is executed.