Example Slab Spanning in Two Directions/en

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

This command is part of the Reinforcement Workbench, an external workbench that can be installed with the Addon Manager via the  menu.

In this example we will create Slab Reinforcement for Slab spanning in two directions as shown in below figure.







Usage
1. Select any face of a previously created Slab object. as shown in below image.



2. Then select from the rebar tools.

3. A dialog box will pop-out on screen as shown below.



4. Select the desired type of cover of reinforcement mesh (Top or Bottom) In example Bottom is selected.

5. Select the BentShapeRebar rebar type and other input data for rebars in parallel direction of selected face as show in below image.



6. Now click on button or select Cross Rebars in list view.

7. Now also select BentShapeRebar rebar type and other desired data for input data for rebars in cross direction of selected face as show in below image.



8. Click or  or  to generate Slab reinforcement.

9. Click to exit the dialog box.

Properties
Properties for Rebars in Parallel Direction to selected face:


 * : It represent alignment of rebar mesh along top or bottom face of structure. It can have two values "Top" and "Bottom".
 * : Type of rebar for parallel rebars for slab reinforcement. It can have four values 'StraightRebar', 'LShapeRebar', 'UShapeRebar', 'BentShapeRebar'.
 * : The distance between parallel rebar and selected face.
 * : The distance between the left end of the parallel rebar to the left face of the structure.
 * : The distance between the right end of the parallel rebar to right face of the structure.
 * : The distance between parallel rebars from the bottom face of the structure.
 * : The distance between parallel rebars from the top face of the structure.
 * : Rear cover for slab reinforcement of parallel rebars.
 * : It represents arm's length of bent shape parallel rebar when parallel rebar type is BentShapeRebar.
 * : It represents angle for bent shape parallel rebar when parallel rebar type is BentShapeRebar.
 * : A rounding value to be applied to the corners of the bars, expressed in times of diameter of parallel rebars.
 * : Diameter of parallel rebars
 * : It contains count of parallel rebars.
 * : It contains spacing between parallel rebars.

Properties of Distribution Rebars for bent shape rebars in parallel Direction to selected face:


 * : It contains count of Distribution Rebars for Bent shape rebars in parallel Direction.
 * : It contains spacing between Distribution Rebars for Bent shape rebars in parallel Direction.

Properties for Rebars in Cross Direction to selected face:


 * : Type of rebar for cross rebars for slab reinforcement. It can have four values 'StraightRebar', 'LShapeRebar', 'UShapeRebar', 'BentShapeRebar'.
 * : The distance between cross rebar and selected face.
 * : The distance between the left end of the cross rebar to the left face of the structure.
 * : The distance between the right end of the cross rebar to right face of the structure.
 * : The distance between cross rebars from the bottom face of the structure.
 * : The distance between cross rebars from the top face of the structure.
 * : Rear cover for slab reinforcement of cross rebars.
 * : It represents arm's length of bent shape cross rebar when cross rebar type is BentShapeRebar.
 * : It represents angle for bent shape cross rebar when cross rebar type is BentShapeRebar.
 * : A rounding value to be applied to the corners of the bars, expressed in times of diameter of cross rebars.
 * : Diameter of cross rebars
 * : It contains count of cross rebars.
 * : It contains spacing between cross rebars.

Properties of Distribution Rebars for bent shape rebars in cross Direction to selected face:


 * : It contains count of Distribution Rebars for Bent shape rebars in cross Direction.
 * : It contains spacing between Distribution Rebars for Bent shape rebars in cross Direction.

Scripting
Arch API, Reinforcement API and FreeCAD Scripting Basics.

The Slab Reinforcement tool can be used from the Python console by using the following function:

Create Slab Reinforcementof Slab Spanning in Two directions
To create Slab reinforcement spanning two direction as shown in above figures you can use makeSlabReinforcement function as follows:


 * Creates a object for slab spanning in two direction from the given, which is a Slab Arch Structure, and , which is a face of that structure.
 * If no nor  are given, it will take the user selected face as input.

 Properties used for slab spanning in two direction for scripting

Properties for Rebars in Parallel Direction to selected face:


 * : Type of rebar for parallel rebars for slab reinforcement. It can have four values 'StraightRebar', 'LShapeRebar', 'UShapeRebar', 'BentShapeRebar'.
 * : The distance between parallel rebar and selected face.
 * : Rear cover for slab reinforcement of parallel rebars.
 * : The distance between the left end of the parallel rebar to the left face of the structure.
 * : The distance between the right end of the parallel rebar to right face of the structure.
 * : The distance between parallel rebars from the top face of the structure.
 * : The distance between parallel rebars from the bottom face of the structure.
 * : Diameter of parallel rebars.
 * : If is set to True, then value of parallel_amount_spacing_value is used as rebars count else parallel_amount_spacing_value's value is used as spacing in parallel rebars.
 * : It contains count of rebars or spacing between parallel rebars based on value of amount_spacing_check.
 * : A rounding value to be applied to the corners of the bars, expressed in times the parallel_diameter.
 * : It represents arm's length of bent shape parallel rebar when parallel_rebar_type is BentShapeRebar
 * : It represents angle for bent shape parallel rebar when parallel_rebar_type is BentShapeRebar
 * : If True add distribution rebars for parallel bent shape rebars. Default is False.
 * : Diameter of distribution rebars for parallel bent shape rebars.
 * : If is set to True, then value of parallel_distribution_rebars_amount_spacing_value is used as rebars count else parallel_distribution_rebars_amount_spacing_value's value is used as spacing in parallel_distribution_rebars. Default is True.
 * : It contains count or spacing between distribution rebars for one side of parallel bent shape rebars based on value of parallel_distribution_rebars_check. Default is 2.

Properties for Rebars in Cross Direction to selected face:


 * : Type of rebar for cross rebars for slab reinforcement. It can have four values 'StraightRebar', 'LShapeRebar', 'UShapeRebar', 'BentShapeRebar'.
 * : The distance between cross rebar and cross_face (face perpendicular to selected face).
 * : Rear cover for slab reinforcement of cross rebars.
 * : The distance between the left end of the cross rebar to the left face of the structure.
 * : The distance between the right end of the rebar to right face of the structure relative to cross_face.
 * : The distance between cross rebar from the top face of the structure.
 * : The distance between cross rebar from the bottom face of the structure.
 * : Diameter of cross rebars.
 * : If is set to True, then value of cross_amount_spacing_value is used as rebars count else cross_amount_spacing_value's value is used as spacing in rebars.
 * : It contains count of rebars or spacing between rebars based on value of cross_amount_spacing_check.
 * : A rounding value to be applied to the corners of the bars, expressed in times the cross_diameter.
 * : It represents arm's length of bent shape cross rebar when cross_rebar_type is BentShapeRebar
 * : It represents angle for bent shape cross rebar when cross_rebar_type is BentShapeRebar
 * : If True add distribution rebars for cross bent shape rebars. Default is False.
 * : Diameter for distribution rebars for cross bent shape rebars.
 * : If is set to True, then value of cross_distribution_rebars_amount_spacing_value is used as rebars count else cross_distribution_rebars_amount_spacing_value's value is used as spacing in cross_distribution_rebars. Default is True.
 * : It contains count or spacing between distribution rebars for one side of cross bent shape rebars based on value of cross_distribution_rebars_check. Default is 2.

Common Properties for Parallel and Cross Rebars:


 * : It can have two values "Top" and "Bottom". It represent alignment of rebar mesh along top or bottom face of structure.
 * : Arch structure object. Default is None
 * : selected face of structure. Default is None

Edition of Slab Reinforcement of Slab Spanning in Two directions
You can change the properties of the Slab Reinforcement for slab spanning in two direction by using editSlabReinforcement function as follows


 * is a previously created group object.
 * The other parameters are the same as required by the function.

Here we are editing count of rebars in parallel and cross. But you can change any property to edit Slab Reinforcement.