Arch Rebar Straight/de

Description
The Straight Rebar tool allows the user to create a set of straight reinforcing bars inside an Arch Structure object.

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



How to use

 * 1) Select any face of a previously created  object.
 * 2) Then select   from the rebar tools.
 * 3) A task panel will pop-out on the left side of the screen as shown below.
 * 4) Select the desired orientation.
 * 5) Give the inputs like front cover, right side cover, left side cover, bottom cover and diameter of the rebar.
 * 6) Select the mode of distribution either amount or spacing.
 * 7) If spacing is selected, a user can also opt for custom spacing.
 * 8) Pick selected face is used to verify or change the face for rebar distribution.
 * 9) Click  or  to generate the rebars.
 * 10) Click  to exit the task panel.



Properties

 * : It decides the orientation of the rebar (like a bottom, top, right and left).
 * : The distance between rebar and selected face.
 * : The distance between the right end of the rebar to right face of the structure.
 * : The distance between the left end of the rebar to the left face of the structure.
 * : These property facilities the user to specify either top or bottom cover.
 * : The distance between rebar from the bottom face of the structure.
 * : The distance between rebar from the top face of the structure.
 * : The amount of rebars.
 * : The distance between the axes of each bar.

Scripting
Arch API, Reinforcement API and FreeCAD Scripting Basics.

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


 * Creates a object from the given, which is an Arch Structure, and , which is a face of that structure.
 * If no nor  are given, it will take the user selected face as input.
 * ,, , and are inner offset distances for the rebar elements with respect to the faces of the structure.
 * is the frontal cover offset.
 * is a tuple that defines the offset value in one position (top, bottom, left, right) depending on the.
 * is either the right or the top cover offset, depending on the value of and.
 * is either the left or the bottom cover offset, depending on the value of and.
 * is the diameter of the reinforcement bars inside the structure.
 * if it is it will create as many reinforcement bars as given by ; if it is  it will create reinforcement bars separated by the numerical value of.
 * specifies the number of reinforcement bars, or the value of the separation between them, depending on.
 * specifies the orientation of the rebar; it can be or.

Depending on the orientation of the rebar, the function can be called in two general ways by setting appropriately.

The rebar is horizontal

 * is a tuple with either a or a  offset.
 * In this case refers to the  offset, and  refers to the  offset.

The rebar is vertical

 * is a tuple with either a or a  offset.
 * In this case refers to the  offset, and  refers to the  offset.

Edition of rebar
You can change the properties of the rebar with the following function


 * is a previously created object.
 * The other parameters are the same as required by the function.
 * and may be omitted so that the rebar stays in the original structure.

Example: