Reinforcement BillOfMaterial: Difference between revisions
Suraj Dadral (talk | contribs) No edit summary |
Suraj Dadral (talk | contribs) No edit summary |
||
Line 37: | Line 37: | ||
2. Then select {{Button|[[Image:Arch_Rebar_BOM.svg|16px]] [[Arch Rebar BOM|Bill Of Material]]}} from the rebar tools. |
2. Then select {{Button|[[Image:Arch_Rebar_BOM.svg|16px]] [[Arch Rebar BOM|Bill Of Material]]}} from the rebar tools. |
||
3. A dialog box will pop-out on screen as shown below. |
3. A dialog box will pop-out on screen as shown below. |
Revision as of 10:43, 9 June 2020
Arch Rebar BOM |
Menu location |
---|
Arch → Rebar |
Workbenches |
Arch, BIM |
Default shortcut |
None |
Introduced in version |
0.19 |
See also |
Arch Rebar, Reinforcement Addon |
Description
The Bill Of Material tool allows the user to create bill of material of reinforcing bars.
This command is part of the Reinforcement Addon, that you can install with the Addon Manager via the menu Tools → Addon manager → Reinforcement.
Bill Of Material of reinforcing bars
Usage
1. Select Arch Rebar objects you want to include in Bill Of Material. Or select Arch Structure objects to include Arch Rebar objects hosted by that into Bill Of Material. If nothing is selected, then Bill Of Material will be generated for all Arch Rebar and Rebar2 objects present in model.
2. Then select Bill Of Material from the rebar tools.
3. A dialog box will pop-out on screen as shown below.
Dialog Box for the Arch Rebar BOM tool
4. Modify data to suit your requirements.
5. To edit Bill Of Material SVG configurations, click on Edit SVG Configurations. A dialog box will pop-out as shown below.
Dialog Box for the Arch Rebar BOM SVG configuration editing
6. Modify Bill Of Material SVG configurations and then click on OK to apply changes.
7. Click OK or Apply to generate Bill Of Material for rebars.
8. Click Cancel to exit the dialog box.
Properties
General:
- DataColumn Headers: A dictionary with column_data as key and tuple (column_display_header, column_sequence) as value.
- DataColumn Units: A dictionary with keys: "Diameter", "RebarLength", "RebarsTotalLength" and their corresponding units as value.
- DataDiameter Weight Map: A dictionary with diameter as key and corresponding weight as value.
- DataRebar Length Type: Rebar Length Type specifies the type of rebar length used for BOM calculations i.e. "RealLength" or "LengthWithSharpEdges".
- DataRebar Objects: A list of ArchRebar and/or rebar2 and/or structures (to select ArchRebar in that structure) objects.
SVG:
- DataFont Family: Font Family of text in BOM SVG.
- DataFont Filename: Font filename corresponding to font family required in console mode.
- DataFont Size: Font size in mm.
- DataColumn Width: Width of each column in BOM SVG table.
- DataRow Height: Height of each row in BOM SVG table.
- DataLeft Offset: Left offset of BOM SVG table.
- DataTop Offset: Top offset of BOM SVG table.
- DataMinimum Right Offset: Minimum right offset of BOM SVG table.
- DataMinimum Bottom Offset: Minimum bottom offset of BOM SVG table.
- DataMaximum Width: Maximum width of BOM SVG table.
- DataMaximum Height: Maximum height of BOM SVG table.
- DataTemplate File: Template svg file for BOM SVG.
- DataOutput File: BOM SVG Output file.
Scripting
See also: Arch API, Reinforcement API and FreeCAD Scripting Basics.
The Bill Of Material tool can be used in macros and from the Python console by using the following function:
Create Bill Of Material Spreadsheet
bom_spreadhseet = makeBillOfMaterial(
column_headers=None,
column_units=None,
dia_weight_map=None,
rebar_length_type=None,
rebar_objects=None,
obj_name="RebarBillOfMaterial",
)
- Creates a
RebarBillOfMaterial
spreadsheet object for givenrebar_objects
.- If
rebar_objects
list is empty, thenRebarBillOfMaterial
spreadsheet will be created all rebars in a model.
- If
column_headers
is a dictionary with keys: "Mark", "RebarsCount", "Diameter", "RebarLength", "RebarsTotalLength" and values are tuple of column_header and their sequence number.
Example: { "Mark": ("Mark", 1), "RebarsCount": ("No. of Rebars", 2), "Diameter": ("Diameter in mm", 3), "RebarLength": ("Length in m/piece", 4), "RebarsTotalLength": ("Total Length in m", 5), } set column sequence number to 0 to hide column.
column_units
is a dictionary with keys: "Diameter", "RebarLength", "RebarsTotalLength" and their corresponding units as value.
Example: { "Diameter": "mm", "RebarLength": "m", "RebarsTotalLength": "m", }
dia_weight_map
is a dictionary with diameter as key and corresponding weight as value.
Syntax: { 6: FreeCAD.Units.Quantity("0.222 kg/m"), 8: FreeCAD.Units.Quantity("0.395 kg/m"), 10: FreeCAD.Units.Quantity("0.617 kg/m"), 12: FreeCAD.Units.Quantity("0.888 kg/m"), ..., }
rebar_length_type
specifies the type of rebar length used for BOM calculations; it can be "RealLength" or "LengthWithSharpEdges".rebar_objects
is a list of ArchRebar and/or rebar2 and/or structures (to select ArchRebar in that structure) objects.