Reinforcement Bar Shape Cut List/pl

Description
The Rebar Shape Cut List tool allows the user to create the rebar shape cut list of reinforcing bars.

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



Usage
1. Select and Rebar2 objects you want to include in Rebar Shape Cut List. Or select objects to include  and Rebar2 objects hosted by that into Rebar Shape Cut List. If nothing is selected, then Rebar Shape Cut List will be generated for all and Rebar2 objects present in the model.

2. Then select from the rebar tools.

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



4. Modify data to suit your requirements.

5. Click or  to generate Rebar Shape Cut List for rebars.

6. Click to exit the dialog box.

Properties
General:
 * : The offset of extended end edges of the stirrup, so that end edges of the stirrup with a 90-degree bent angle do not overlap with stirrup edges.
 * : The stroke-width of rebars in the rebar shape cut list.
 * : The color style of rebars.
 * : The height of each row of rebar shape in the rebar shape cut list.
 * : The width of each column of rebar shape in the rebar shape cut list.
 * : The number of columns in the rebar shape cut list.
 * : The padding on each side of the rebar shape.
 * : If True, then the rebar shape will be made horizontal by rotating the max length edge of the rebar shape.
 * : If it is set to True, then rebar.Mark will be included for each rebar shape in the rebar shape cut list.
 * : The output file to write generated rebar shape cut list SVG.

Dimension Data:
 * : If True, then each rebar edge dimensions and bent angle dimensions will be included in the rebar shape cut list.
 * : If it is True, then rebar edge length units will be shown in dimension label.
 * : The units to be used for rebar edge length dimensions.
 * : The number of decimals that should be shown for rebar edge length as a dimension label.
 * : The font-family of dimension text.
 * : The font-size of dimension text.
 * : The list of bent angles to not include their dimensions.
 * : The format of the helical rebar dimension label. e.g. "%L,r=%R,pitch=%P" where %L -> Length of helical rebar, %R -> Helix radius of helical rebar, %P -> Helix pitch of helical rebar.

Scripting
Arch API, Reinforcement API and FreeCAD Scripting Basics.

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

Create Rebar Shape SVG
%L -> Length of helical rebar %R -> Helix radius of helical rebar %P -> Helix pitch of helical rebar
 * Generates and returns a rebar shape SVG element for the given object.
 * object can be of type  or , to generate its shape svg.
 * specifies the viewpoint direction for rebar shape. It can be of type or  though  is preferred.
 * specifies if rebar.Mark is to be included in rebar shape SVG or not.
 * is the offset of extended end edges of the stirrup, so that end edges of the stirrup with a 90-degree bent angle do not overlap with stirrup edges.
 * specifies the stroke-width of rebar in svg.
 * specifies the color style of rebar. It can be "shape color" or "color_name or hex_value_of_color". "shape color" means to select the color of the rebar shape.
 * specifies if each rebar edge dimensions and bent angle dimensions are to be included in rebar shape SVG.
 * specifies the units to be used for rebar length dimensions.
 * specifies the number of decimals that should be shown for rebar length as a dimension label. Set it to None to use user preferred unit precision from FreeCAD unit preferences.
 * specifies if rebar length units is to be shown in dimension label.
 * specifies the list of bent angles to not include their dimensions.
 * specifies the font-family of dimension text.
 * specifies the font-size of dimension text.
 * specifies the format of helical rebar dimension label. E.g. "%L,r=%R,pitch=%P" where:
 * specifies the scale value to scale rebar SVG. The scale parameter helps to scale down rebar_stroke_width and dimension_font_size to make them resolution-independent. If max_height or max_width is set to a non-zero value, then the scale parameter will be ignored.
 * specifies the maximum height of rebar shape SVG. Set it to 0 to have rebar shape SVG height based on the scale parameter.
 * specifies the maximum width of rebar shape SVG. Set it to 0 to have rebar shape SVG width based on the scale parameter.
 * specifies the padding on each side of the rebar shape.
 * specifies if the rebar shape is to be made horizontal by rotating the max length edge of the rebar shape.

Create Rebar Shape Cut List SVG
%L -> Length of helical rebar %R -> Helix radius of helical rebar %P -> Helix pitch of helical rebar
 * Generate and return rebar shape cut list SVG element for given.
 * is a list of  or  objects, to generate their RebarShape cut list. If not provided, then all ArchRebars and rebar2.BaseRebar objects with unique Mark from ActiveDocument will be selected and rebars with no Mark assigned will be ignored.
 * is a list of viewpoint directions for each rebar shape. It can be either of type or  OR their list. Keep it  to automatically choose view_directions.
 * specifies if rebar.Mark is to be included for each rebar shape in rebar shape cut list SVG or not.
 * specifies the offset of extended end edges of the stirrup, so that end edges of the stirrup with a 90-degree bent angle do not overlap with stirrup edges.
 * specifies the stroke-width of rebars in rebar shape cut list SVG.
 * specifies the color style of rebars. It can be "shape color" or "color_name or hex_value_of_color". "shape color" means to select the color of the rebar shape.
 * specifies if each rebar edge dimensions and bent angle dimensions are to be included in the rebar shape cut list.
 * specifies the units to be used for rebar edge length dimensions.
 * specifies the number of decimals that should be shown for rebar length as a dimension label. Set it to None to use user preferred unit precision from FreeCAD unit preferences.
 * specifies if rebars edge length units is to be shown in dimension label.
 * specifies the list of bent angles to not include their dimensions.
 * specifies the font-family of dimension text.
 * specifies the font-size of dimension text.
 * specifies the format of helical rebar dimension label. E.g. "%L,r=%R,pitch=%P" where:
 * specifies the height of each row of rebar shape in the rebar shape cut list.
 * specifies the width of each row of rebar shape in the rebar shape cut list.
 * specifies the number of columns in the rebar shape cut list. Set it to "row_count" to have column_count <= row_count
 * specifies the padding on each side of the rebar shape in the rebar shape cut list.
 * specifies if the rebar shape is to be made horizontal by rotating the max length edge of the rebar shape.
 * specifies the output file to write generated rebar shape cut list SVG.