Arch Rebar Drawing

Description
The Reinforcement Drawing tool allows the user to create drawing of reinforcing bars.

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



Usage
1. Open FreeCAD Model containing reinforcement bars created using Reinforcement Addon.

2. In FreeCAD Python console, copy below code snippet to generate reinforcement drawing from different views for each Arch Structure element.

ReinforcementDrawingView Object
A Rebars Drawing SVG View object.

Properties

 * : The structure object acting as Host for rebars to be included in drawing.
 * : The list of rebar objects to be included in drawing.
 * : The reinforcement drawing view to be generated. It can be "Front", "Rear", "Left", "Right", "Top" or "Bottom".
 * : The position type of Reinforcement Drawing on Template. It can be "Automatic" to calculate drawing placement using, , and  OR "Custom" to set placement using  and.
 * : The stroke width of rebars in Reinforcement Drawing svg.
 * : The color style of rebars in Reinforcement Drawing svg. Set it to "Automatic" to automatically select rebars color OR "Custom" to choose shape color value from.
 * : The color of rebars in Reinforcement Drawing svg.
 * : The stroke width of structure in Reinforcement Drawing svg.
 * : The color style of structure in Reinforcement Drawing svg. Set it to "Automatic" to automatically select rebars color, "Custom" to choose shape color value from OR "None" to not fill structure.
 * : The color of structure in Reinforcement Drawing svg.
 * : The template for Reinforcement Drawing view.
 * : The width of Reinforcement Drawing view svg.
 * : The height of Reinforcement Drawing view svg.
 * : The left offset of Reinforcement Drawing view on template.
 * : The top offset of Reinforcement Drawing view on template.
 * : The minimum right offset of Reinforcement Drawing view on template.
 * : The minimum bottom offset of Reinforcement Drawing view on template.
 * : The maximum width of Reinforcement Drawing view.
 * : The maximum height of Reinforcement Drawing view.
 * : The list of visible rebar objects in drawing view.
 * : The left offset for each new ReinforcementDimensioning object.
 * : The right offset for each new ReinforcementDimensioning object.
 * : The top offset for each new ReinforcementDimensioning object.
 * : The bottom offset for each new ReinforcementDimensioning object.

Scripting
Arch API, Reinforcement API and FreeCAD Scripting Basics.

The Reinforcement Drawing tool can be used in macros and from the Python console by using the following functions:

For one structure
Format: (r, g, b)   r, g, b value should be between 0 to 1, so you may need to divide value of r, g, b by 255 to get its value between 0 to 1 Make sure r, g, b must be float Example: (0.67, 0.0, 0.0)
 * Creates a object for given structure and rebar objects list.
 * It returns the of type.
 * specifies the view of drawing to be generated. It can be "Front", "Rear", "Left", "Right", "Top" or "Bottom".
 * specifies the stroke-width of rebars in drawing svg.
 * specifies the color style of rebars. Set it to "Automatic" to automatically select rebars color or "Custom" to choose shape color value from variable.
 * specifies the fill color for rebars in drawing svg.
 * specifies the stroke-width of structure in drawing svg.
 * specifies the fill style of structure. Set it to "Automatic" to automatically select structure color or "Custom" to choose structure color value from variable.
 * specifies the fill color for structure in drawing svg. Format: (r, g, b)
 * specifies the left offset of drawing view on.
 * specifies the top offset of drawing view on.
 * specifies the minimum right offset of drawing view on.
 * specifies the minimum bottom offset of drawing view on.
 * specifies the maximum width of drawing on.
 * specifies the maximum height of drawing on.
 * is the template file to be used for reinforcement drawing page.
 * specifies the left offset of dimension from drawing.
 * specifies the right offset of dimension from drawing.
 * specifies the top offset of dimension from drawing.
 * specifies the bottom offset of dimension from drawing.

For multiple structures

 * It returns, a dictionary with structure as key and corresponding reinforcement drawing page as value.
 * is the list of structural objects to generate their reinforcement drawing. If not provided, structures will be selected from active document acting as Host for rebar objects.
 * is the list of rebar objects to be included in drawing. If not provided, rebars objects having Host in structure_list will be selected from active document.