Reinforcement BillOfMaterial/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "{{Docnav/pl |Zbrojenie stopy |Zestawienie kształtów i cięć prętów |środowisko pracy Zbrojenie |IconL=Reinforcement_FootingRebars.svg |IconR=Reinforcement_BarShapeCutList.svg |IconC=Reinforcement_Workbench.svg }}")
No edit summary
 
(32 intermediate revisions by 2 users not shown)
Line 10: Line 10:
}}
}}


{{GuiCommand
{{GuiCommand/pl
|Name=Reinforcement BillOfMaterial
|Name=Reinforcement BillOfMaterial
|Name/pl=Zbrojenie: Zestawienie zbrojenia
|MenuLocation=
|MenuLocation=
|Workbenches=[[Reinforcement_Workbench|Reinforcement]]
|Workbenches=[[Reinforcement_Workbench/pl|Zbrojenie]]
|Version=0.19
|Version=0.19
|SeeAlso=
|SeeAlso=
}}
}}


==Description==
<span id="Description"></span>
==Opis==


Narzędzie '''Zestawienie zbrojenia''' umożliwia użytkownikowi utworzenie zestawienia prętów zbrojeniowych.
The [[Reinforcement BillOfMaterial|Reinforcement BillOfMaterial]] tool allows the user to create a bill of material of reinforcing bars.


This tool is part of the [[Reinforcement_Workbench|Reinforcement Workbench]], an [[External_workbenches|external workbench]] that can be installed with the [[Image:Std_AddonMgr.svg|24px]] [[Std_AddonMgr|Addon Manager]].
To polecenie jest częścią [[External_workbenches/pl|zewnętrznego środowiska pracy]] [[Reinforcement_Workbench/pl|Zbrojenie]], które można zainstalować za pomocą [[Image:Std_AddonMgr.svg|24px]] [[Std_AddonMgr/pl|Menadżera dodatków]] poprzez menu {{MenuCommand|Przybory → Menadżera dodatków → Zbrojenie}}.


[[Image:Arch_Rebar_BOM_example.png|1000px]]
[[Image:Arch_Rebar_BOM_example.png|600px]]
{{Caption|Bill Of Material of reinforcing bars}}
{{Caption|Zestawienie materiałowe prętów zbrojeniowych.}}


==Usage==
<span id="Usage"></span>
==Użycie==


1. Select {{Button|[[Image:Arch_Rebar.svg|16px]] [[Arch_Rebar|Arch Rebar]]}} and Rebar2 objects you want to include in the Bill Of Material. Or select {{Button|[[Image:Arch_Structure.svg|16px]] [[Arch_Structure|Arch Structure]]}} objects to include {{Button|[[Image:Arch_Rebar.svg|16px]] [[Arch_Rebar|Arch Rebar]]}} objects hosted by those into Bill Of Material. If nothing is selected, then Bill Of Material will be generated for all {{Button|[[Image:Arch_Rebar.svg|16px]] [[Arch_Rebar|Arch Rebar]]}} and Rebar2 objects present in the model.
1. Wybierz obiekty {{Button|[[Image:Arch_Rebar.svg|16px]] [[Arch_Rebar/pl|Prętów]]}} i Prętów2, które chcesz uwzględnić w zestawieniu zbrojenia. Lub wybierz obiekty {{Button|[[Image:Arch_Structure.svg|16px]] [[Arch_Structure/pl|konstrukcji]]}} do uwzględnienia obiektów {{Button|[[Image:Arch_Rebar.svg|16px]] [[Arch_Rebar/pl|Prętów]]}} w zestawieniu zbrojenia. Jeśli nic nie zostanie zaznaczone, wygenerowane zostanie zestawienie zbrojenia dla wszystkich obiektów {{Button|[[Image:Arch_Rebar.svg|16px]] [[Arch_Rebar/pl|Prętów]]}} i Prętów2 obecnych w modelu.


2. Then select {{Button|[[Image:Reinforcement_BillOfMaterial.svg|16px]] [[Reinforcement_BillOfMaterial|Rebar Bill Of Material]]}} from the rebar tools.
2. Następnie wybierz {{Button|[[Image:Reinforcement_BillOfMaterial.svg|16px]]
'''Zestawienie zbrojenia'''}} z menu narzędzi prętów zbrojeniowych.


3. Na ekranie pojawi się okno dialogowe, jak pokazano poniżej.
3. A dialog box will pop-out on the screen as shown below.


: [[Image:BOMDialog_General.png|500px]]
: [[Image:BOMDialog_General.png|500px]]
: {{Caption|Dialog Box for the Arch Rebar BOM tool}}
: {{Caption|Okienko dialogowe narzędzia Zestawienie zbrojenia.}}


4. Zmodyfikuj dane, aby dostosować je do swoich wymagań.
4. Modify data to suit your requirements.


5. To edit {{Button|[[Image:Reinforcement_BillOfMaterial.svg|16px]] [[Reinforcement_BillOfMaterial|Rebar Bill Of Material]]}} SVG configurations, click on {{Button|Edit SVG Configurations}}. A dialog box will pop-out as shown below.
5. Aby edytować konfiguracje SVG {{Button|[[Image:Reinforcement_BillOfMaterial.svg|16px]] '''Zestawienia zbrojenia'''}}, kliknij przycisk {{Button|Edytuj konfiguracje SVG}}. Pojawi się okno dialogowe, jak pokazano poniżej.


: [[Image:BOMDialog_SVG.png|500px]]
: [[Image:BOMDialog_SVG.png|500px]]
: {{Caption|Dialog Box for the Arch Rebar BOM SVG configuration editing}}
: {{Caption|Okno dialogowe edycji konfiguracji SVG zestawienia zbrojenia.}}


6. Modify {{Button|[[Image:Reinforcement_BillOfMaterial.svg|16px]] [[Reinforcement_BillOfMaterial|Rebar Bill Of Material]]}} SVG configurations and then click on {{Button|OK}} to apply changes.
6. Modyfikuj konfiguracje SVG {{Button|[[Image:Reinforcement_BillOfMaterial.svg|16px]] '''Zestawienia zbrojenia'''}}, a następnie kliknij {{Button|OK}}, aby zastosować zmiany.


7. Click {{Button|OK}} or {{Button|Apply}} to generate Bill Of Material for rebars.
5. Kliknij {{Button|OK}} lub {{Button|Zastosuj}}, aby wygenerować Zestawienie zbrojenia.


8. Click {{Button|Cancel}} to exit the dialog box.
8. Kliknij {{Button|Anuluj}}, aby zamknąć okno dialogowe.


==Properties==
<span id="Properties"></span>
==Właściwości==


'''General:'''
'''Ogólne:'''


* {{PropertyData|Column Headers}}: A dictionary with column_data as key and tuple (column_display_header, column_sequence) as value.
* {{PropertyData|Nagłówki kolumn}}: Słownik z column_data jako kluczem i krotką ''(column_display_header, column_sequence)'' jako wartością.
* {{PropertyData|Column Units}}: A dictionary with keys: "Diameter", "RebarLength", "RebarsTotalLength" and their corresponding units as value.
* {{PropertyData|Jednostki kolumn}}: Słownik z kluczami: "Diameter", "RebarsLength", "RebarsTotalLength" i odpowiadającymi im jednostkami jako wartością.
* {{PropertyData|Diameter Weight Map}}: A dictionary with the diameter as key and corresponding weight as value.
* {{PropertyData|Mapa wagi średnicy}}: Słownik ze średnicą jako kluczem i odpowiadającą jej wagą jako wartością.
* {{PropertyData|Rebar Length Type}}: Rebar Length Type specifies the type of rebar length used for BOM calculations i.e. "RealLength" or "LengthWithSharpEdges".
* {{PropertyData|Typ długości pręta zbrojeniowego}}: Typ długości pręta zbrojeniowego określa typ długości pręta zbrojeniowego używany do obliczeń BOM, tj. "RealLength" lub "LengthWithSharpEdges".
* {{PropertyData|Rebar Objects}}: A list of ArchRebar and/or rebar2 and/or structures (to select ArchRebar in that structure) objects.
* {{PropertyData|Obiekty prętów zbrojeniowych}}: Lista obiektów ArchRebar i / lub rebar2 i / lub struktur ''(aby wybrać ArchRebar w tej konstrukcji)''.


'''SVG:'''
'''SVG:'''


* {{PropertyData|Font Family}}: Font Family of text in BOM SVG.
* {{PropertyData|Rodzina czcionki}}: Rodzina czcionki tekstu w BOM SVG.
* {{PropertyData|Font Filename}}: Font filename corresponding to font-family required in console mode.
* {{PropertyData|Nazwa czcionki}}: Nazwa pliku czcionki odpowiadająca rodzinie czcionki wymaganej w trybie konsoli.
* {{PropertyData|Font Size}}: Font size in mm.
* {{PropertyData|Rozmiar czcionki}}: Rozmiar czcionki w mm.
* {{PropertyData|Column Width}}: Width of each column in the BOM SVG table.
* {{PropertyData|Szerokość kolumny}}: Szerokość każdej kolumny w tabeli BOM SVG.
* {{PropertyData|Row Height}}: Height of each row in the BOM SVG table.
* {{PropertyData|Wysokość wiersza}}: Wysokość każdego wiersza w tabeli BOM SVG.
* {{PropertyData|Left Offset}}: Left offset of BOM SVG table.
* {{PropertyData|Lewy odsunięcie}}: Lewe przesunięcie tabeli BOM SVG.
* {{PropertyData|Top Offset}}: Top offset of BOM SVG table.
* {{PropertyData|Górne odsunięcie}}: Górne przesunięcie tabeli BOM SVG.
* {{PropertyData|Minimum Right Offset}}: Minimum right offset of BOM SVG table.
* {{PropertyData|Minimalne przesunięcie w prawo}}: Minimalne przesunięcie w prawo tabeli BOM SVG.
* {{PropertyData|Minimum Bottom Offset}}: Minimum bottom offset of the BOM SVG table.
* {{PropertyData|minimalne odsunięcie dolne}}: Minimalne dolne przesunięcie tabeli BOM SVG.
* {{PropertyData|Maximum Width}}: Maximum width of the BOM SVG table.
* {{PropertyData|Szerokość maksymalna}}: Maksymalna szerokość tabeli BOM SVG.
* {{PropertyData|Maximum Height}}: Maximum height of the BOM SVG table.
* {{PropertyData|Wysokość maksymalna}}: Maksymalna wysokość tabeli BOM SVG.
* {{PropertyData|Template File}}: Template SVG file for BOM SVG.
* {{PropertyData|Plik szablonu}}: Plik szablonu SVG dla BOM SVG.
* {{PropertyData|Output File}}: BOM SVG Output file.
* {{PropertyData|Plik wyjściowy}}: Plik wyjściowy BOM SVG.


==Scripting==
<span id="Scripting"></span>
==Tworzenie skryptów==


{{Emphasis|See also:}} [[Arch API|Arch API]], [[Reinforcement API|Reinforcement API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
{{Emphasis|Zobacz również:}} [[Arch_API/pl|Skrypty Architektury]], [[Reinforcement_API/pl|Skrypty Zbrojenia]] oraz [[FreeCAD_Scripting_Basics/pl|Podstawy tworzenia skryptów FreeCAD]].


The Reinforcement BillOfMaterial tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following function:
Narzędzie '''Zestawienie zbrojenia''' może być używane w [[Macros/pl|makrodefinicjach]] i z konsoli [[Python/pl|Python]] za pomocą następującej funkcji:


<span id="Create_Bill_Of_Material_Spreadsheet"></span>
=== Create Bill Of Material Spreadsheet ===
===Tworzenie arkusza kalkulacyjnego zestawienia===


{{Code|code=
{{Code|code=
Line 96: Line 103:
}}
}}


* Creates a {{incode|RebarBillOfMaterial}} spreadsheet object for given {{incode|rebar_objects}}.
* Tworzy obiekt arkusza kalkulacyjnego {{incode|RebarBillOfMaterial}} dla danego obiektu {{incode|rebar_objects}}.
** If {{incode|rebar_objects}} list is empty, then {{incode|RebarBillOfMaterial}} spreadsheet will be created for all rebars in a model.
** Jeśli lista {{incode|rebar_objects}} jest pusta, arkusz {{incode|RebarBillOfMaterial}} zostanie utworzony dla wszystkich prętów zbrojeniowych w modelu.
* {{incode|column_headers}} is a dictionary with keys: "Host", "Mark", "RebarsCount", "Diameter", "RebarLength", "RebarsTotalLength" and values are tuple of column_header and their sequence number.
* {{incode|column_headers}} jest słownikiem z kluczami: "Host", "Mark", "RebarsCount", "Diameter", "RebarsLength", "RebarsTotalLength", a wartościami krotki column_header i ich numery porządkowe.
Example: {
Przykład: {
"Host": ("Member", 1),
"Host": ("Member", 1),
"Mark": ("Mark", 2),
"Mark": ("Mark", 2),
Line 107: Line 114:
"RebarsTotalLength": ("Total Length in m", 6),
"RebarsTotalLength": ("Total Length in m", 6),
}
}
set column sequence number to 0 to hide column.
ustaw numer sekwencji kolumny na 0, aby ukryć kolumnę.
* {{incode|column_units}} is a dictionary with keys: "Diameter", "RebarLength", "RebarsTotalLength" and their corresponding units as value.
* {{incode|column_units}} jest słownikiem z kluczami: "Diameter", "RebarsLength", "RebarsTotalLength" i odpowiadającymi im jednostkami jako wartością.
Example: {
Przykład: {
"Diameter": "mm",
"Diameter": "mm",
"RebarLength": "m",
"RebarLength": "m",
"RebarsTotalLength": "m",
"RebarsTotalLength": "m",
}
}
* {{incode|dia_weight_map}} is a dictionary with diameter as key and corresponding weight as value.
* {{incode|dia_weight_map}} jest słownikiem ze średnicą jako kluczem i odpowiadającą jej wagą jako wartością.
Syntax: {
Składnia: {
6: FreeCAD.Units.Quantity("0.222 kg/m"),
6: FreeCAD.Units.Quantity("0.222 kg/m"),
8: FreeCAD.Units.Quantity("0.395 kg/m"),
8: FreeCAD.Units.Quantity("0.395 kg/m"),
Line 122: Line 129:
...,
...,
}
}
* {{incode|rebar_length_type}} specifies the type of rebar length used for BOM calculations; it can be "RealLength" or "LengthWithSharpEdges".
* {{incode|rebar_length_type}} określa typ długości pręta zbrojeniowego używany do obliczeń BOM. Może przyjmować wartości "RealLength" lub "LengthWithSharpEdges".
* {{incode|rebar_objects}} is a list of ArchRebar and/or rebar2 and/or structures (to select ArchRebar in that structure) objects.
* {{incode|rebar_objects}} jest listą obiektów ArchRebar i / lub rebar2 i / lub structures ''(aby wybrać ArchRebar w tej strukturze)''.


==== Example ====
<span id="Example"></span>
====Przykład====


{{Code|code=
{{Code|code=
Line 245: Line 253:
}}
}}


<span id="Create_Bill_Of_Material_SVG"></span>
=== Create Bill Of Material SVG ===
===Tworzenie listy materiałów SVG===


{{Code|code=
{{Code|code=
Line 274: Line 283:
}}
}}


* Creates and return a RebarBillOfMaterial_SVG {{incode|BOMContent}} object for given {{incode|rebar_objects}}.
* Tworzy i zwraca obiekt RebarBillOfMaterial_SVG {{incode|BOMContent}} dla danego {{incode|rebar_objects}}.
** If {{incode|rebar_objects}} list is empty, then {{incode|BOMContent}} object will be created for all rebars in a model.
** Jeśli lista {{incode|rebar_objects}} jest pusta, obiekt {{incode|BOMContent}} zostanie utworzony dla wszystkich prętów zbrojeniowych w modelu.
* {{incode|column_headers}} is a dictionary with keys: "Host", "Mark", "RebarsCount", "Diameter", "RebarLength", "RebarsTotalLength" and values are tuple of column_header and their sequence number.
* {{incode|column_headers}} jest słownikiem z kluczami: "Host", "Mark", "RebarsCount", "Diameter", "RebarsLength", "RebarsTotalLength", a wartościami krotki nagłówków kolumn i ich numerów sekwencyjnych.
Example: {
Przykład: {
"Host": ("Member", 1),
"Host": ("Member", 1),
"Mark": ("Mark", 2),
"Mark": ("Mark", 2),
Line 285: Line 294:
"RebarsTotalLength": ("Total Length in m", 6),
"RebarsTotalLength": ("Total Length in m", 6),
}
}
set column sequence number to 0 to hide column.
ustaw numer sekwencji kolumny na 0, aby ukryć kolumnę.
* {{incode|column_units}} is a dictionary with keys: "Diameter", "RebarLength", "RebarsTotalLength" and their corresponding units as value.
* {{incode|column_units}} jest słownikiem z kluczami: "Diameter", "RebarsLength", "RebarsTotalLength" i odpowiadającymi im jednostkami jako wartością.
Example: {
Przykład: {
"Diameter": "mm",
"Diameter": "mm",
"RebarLength": "m",
"RebarLength": "m",
"RebarsTotalLength": "m",
"RebarsTotalLength": "m",
}
}
* {{incode|dia_weight_map}} is a dictionary with diameter as key and corresponding weight as value.
* {{incode|dia_weight_map}} jest słownikiem ze średnicą jako kluczem i odpowiadającą jej wagą jako wartością.
Syntax: {
Składnia: {
6: FreeCAD.Units.Quantity("0.222 kg/m"),
6: FreeCAD.Units.Quantity("0.222 kg/m"),
8: FreeCAD.Units.Quantity("0.395 kg/m"),
8: FreeCAD.Units.Quantity("0.395 kg/m"),
Line 300: Line 309:
...,
...,
}
}
* {{incode|rebar_length_type}} specifies the type of rebar length used for the bill of material calculations; it can be "RealLength" or "LengthWithSharpEdges".
* {{incode|rebar_length_type}} określa typ długości prętów zbrojeniowych używany do obliczeń zestawienia materiałów. Może przyjmować wartości "RealLength" lub "LengthWithSharpEdges".
* {{incode|font_family}} specifies the font family of data text.
* {{incode|font_family}} określa rodzinę czcionki tekstu danych.
* {{incode|font_filename}} specifies font filename or full path of the font file corresponding to font_family. This is required if you are working in pure console mode, without any GUI.
* {{incode|font_filename}} określa nazwę pliku czcionki lub pełną ścieżkę do pliku czcionki odpowiadającego font_family. Jest to wymagane, jeśli pracujesz w trybie konsoli, bez GUI.
* {{incode|font_size}} specifies the font size of the data text.
* {{incode|font_size}} określa rozmiar czcionki tekstu danych.
* {{incode|column_width}} specifies the width of each column in the bill of material table SVG.
* {{incode|column_width}} określa szerokość każdej kolumny w tabeli zestawienia materiałów SVG.
* {{incode|row_height}} specifies the height of each row in the bill of material table SVG.
* {{incode|row_height}} określa wysokość każdego wiersza w tabeli zestawienia materiałów SVG.
* {{incode|bom_left_offset}} specifies the left offset of the bill of material SVG on {{incode|template_file}}.
* {{incode|bom_left_offset}} określa lewe przesunięcie tabeli materiałów SVG w {{incode|template_file}}.
* {{incode|bom_top_offset}} specifies the top offset of the bill of material SVG on {{incode|template_file}}.
* {{incode|bom_top_offset}} określa górne przesunięcie tabeli materiałów SVG w {{incode|template_file}}.
* {{incode|bom_min_right_offset}} specifies the minimum right offset of the bill of material SVG on {{incode|template_file}}.
* {{incode|bom_min_right_offset}} określa minimalne przesunięcie w prawo pliku SVG listy materiałów w {{incode|template_file}}.
* {{incode|bom_min_bottom_offset}} specifies the minimum bottom offset of the bill of material SVG on {{incode|template_file}}
* {{incode|bom_min_bottom_offset}} określa minimalne dolne przesunięcie pliku SVG listy materiałów w {{incode|template_file}}.
* {{incode|bom_table_svg_max_width}} specifies the maximum width of the bill of material table in SVG.
* {{incode|bom_table_svg_max_width}} określa maksymalną szerokość tabeli zestawienia materiałów w SVG.
* {{incode|bom_table_svg_max_height}} specifies the maximum height of the bill of material table in SVG.
* {{incode|bom_table_svg_max_height}} określa maksymalną wysokość tabeli zestawienia materiałów w SVG.
* {{incode|template_file}} specifies the template file used to place the generated bill of material table on it. It must be a valid TechDraw template file as [[Svg_Namespace|here]].
* {{incode|template_file}} określa plik szablonu używany do umieszczenia na nim wygenerowanej tabeli zestawienia materiałów. Musi to być prawidłowy plik szablonu Rysunku Technicznego z polami przedstawionymi na stronie [[Svg_Namespace/pl|Przestrzeń nazw SVG]].
* {{incode|output_file}} specifies the output file to write generated bill of material SVG.
* {{incode|output_file}} określa plik wyjściowy do zapisu wygenerowanego zestawienia materiałów SVG.
* {{incode|rebar_objects}} is a list of ArchRebar and/or rebar2 and/or structures (to select ArchRebar in that structure) objects.
* {{incode|rebar_objects}} jest listą obiektów ArchRebar i / lub rebar2 i / lub struktur ''(aby wybrać ArchRebar w tej strukturze)''.
* {{incode|reinforcement_group_by}} specifies how reinforcement objects should be grouped; it can be "Mark" or "Host".
* {{incode|reinforcement_group_by}} określa sposób grupowania obiektów zbrojenia. Może to być "Mark" lub "Host".
* {{incode|return_svg_only}} specifies if the {{incode|BOMContent}} object is to be created or not. If {{incode|return_svg_only}} is True, then neither {{incode|BOMContent}} object is created nor SVG is written to {{incode|output_file}}. And it returns the SVG element.
* {{incode|return_svg_only}} określa, czy obiekt {{incode|BOMContent}} ma zostać utworzony, czy nie. Jeśli {{incode|return_svg_only}} ma wartość True, to ani obiekt {{incode|BOMContent}} nie zostanie utworzony, ani plik SVG nie zostanie zapisany w pliku {{incode|output_file}}. Zwracany jest natomiast element SVG.


==== Example ====
<span id="Example"></span>
====Przykład====


{{Code|code=
{{Code|code=
Line 467: Line 477:




{{Docnav
{{Docnav/pl
|[[Reinforcement_FootingRebars|FootingRebars]]
|[[Reinforcement_FootingRebars/pl|Zbrojenie stopy]]
|[[Reinforcement_BarShapeCutList|BarShapeCutList]]
|[[Reinforcement_BarShapeCutList/pl|Zestawienie kształtów i cięć prętów]]
|[[Reinforcement_Workbench|Reinforcement]]
|[[Reinforcement_Workbench/pl|środowisko pracy Zbrojenie]]
|IconL=Reinforcement_FootingRebars.svg
|IconL=Reinforcement_FootingRebars.svg
|IconR=Reinforcement_BarShapeCutList.svg
|IconR=Reinforcement_BarShapeCutList.svg

Latest revision as of 14:03, 21 June 2024

Zbrojenie: Zestawienie zbrojenia

Lokalizacja w menu
brak
Środowisko pracy
Zbrojenie
Domyślny skrót
brak
Wprowadzono w wersji
0.19
Zobacz także
brak

Opis

Narzędzie Zestawienie zbrojenia umożliwia użytkownikowi utworzenie zestawienia prętów zbrojeniowych.

To polecenie jest częścią zewnętrznego środowiska pracy Zbrojenie, które można zainstalować za pomocą Menadżera dodatków poprzez menu Przybory → Menadżera dodatków → Zbrojenie.

Zestawienie materiałowe prętów zbrojeniowych.

Użycie

1. Wybierz obiekty Prętów i Prętów2, które chcesz uwzględnić w zestawieniu zbrojenia. Lub wybierz obiekty konstrukcji do uwzględnienia obiektów Prętów w zestawieniu zbrojenia. Jeśli nic nie zostanie zaznaczone, wygenerowane zostanie zestawienie zbrojenia dla wszystkich obiektów Prętów i Prętów2 obecnych w modelu.

2. Następnie wybierz Zestawienie zbrojenia z menu narzędzi prętów zbrojeniowych.

3. Na ekranie pojawi się okno dialogowe, jak pokazano poniżej.

Okienko dialogowe narzędzia Zestawienie zbrojenia.

4. Zmodyfikuj dane, aby dostosować je do swoich wymagań.

5. Aby edytować konfiguracje SVG Zestawienia zbrojenia, kliknij przycisk Edytuj konfiguracje SVG. Pojawi się okno dialogowe, jak pokazano poniżej.

Okno dialogowe edycji konfiguracji SVG zestawienia zbrojenia.

6. Modyfikuj konfiguracje SVG Zestawienia zbrojenia, a następnie kliknij OK, aby zastosować zmiany.

5. Kliknij OK lub Zastosuj, aby wygenerować Zestawienie zbrojenia.

8. Kliknij Anuluj, aby zamknąć okno dialogowe.

Właściwości

Ogólne:

  • DANENagłówki kolumn: Słownik z column_data jako kluczem i krotką (column_display_header, column_sequence) jako wartością.
  • DANEJednostki kolumn: Słownik z kluczami: "Diameter", "RebarsLength", "RebarsTotalLength" i odpowiadającymi im jednostkami jako wartością.
  • DANEMapa wagi średnicy: Słownik ze średnicą jako kluczem i odpowiadającą jej wagą jako wartością.
  • DANETyp długości pręta zbrojeniowego: Typ długości pręta zbrojeniowego określa typ długości pręta zbrojeniowego używany do obliczeń BOM, tj. "RealLength" lub "LengthWithSharpEdges".
  • DANEObiekty prętów zbrojeniowych: Lista obiektów ArchRebar i / lub rebar2 i / lub struktur (aby wybrać ArchRebar w tej konstrukcji).

SVG:

  • DANERodzina czcionki: Rodzina czcionki tekstu w BOM SVG.
  • DANENazwa czcionki: Nazwa pliku czcionki odpowiadająca rodzinie czcionki wymaganej w trybie konsoli.
  • DANERozmiar czcionki: Rozmiar czcionki w mm.
  • DANESzerokość kolumny: Szerokość każdej kolumny w tabeli BOM SVG.
  • DANEWysokość wiersza: Wysokość każdego wiersza w tabeli BOM SVG.
  • DANELewy odsunięcie: Lewe przesunięcie tabeli BOM SVG.
  • DANEGórne odsunięcie: Górne przesunięcie tabeli BOM SVG.
  • DANEMinimalne przesunięcie w prawo: Minimalne przesunięcie w prawo tabeli BOM SVG.
  • DANEminimalne odsunięcie dolne: Minimalne dolne przesunięcie tabeli BOM SVG.
  • DANESzerokość maksymalna: Maksymalna szerokość tabeli BOM SVG.
  • DANEWysokość maksymalna: Maksymalna wysokość tabeli BOM SVG.
  • DANEPlik szablonu: Plik szablonu SVG dla BOM SVG.
  • DANEPlik wyjściowy: Plik wyjściowy BOM SVG.

Tworzenie skryptów

Zobacz również: Skrypty Architektury, Skrypty Zbrojenia oraz Podstawy tworzenia skryptów FreeCAD.

Narzędzie Zestawienie zbrojenia może być używane w makrodefinicjach i z konsoli Python za pomocą następującej funkcji:

Tworzenie arkusza kalkulacyjnego zestawienia

bom_spreadsheet = makeBillOfMaterial(
    column_headers=None,
    column_units=None,
    dia_weight_map=None,
    rebar_length_type=None,
    rebar_objects=None,
    obj_name="RebarBillOfMaterial",
)
  • Tworzy obiekt arkusza kalkulacyjnego RebarBillOfMaterial dla danego obiektu rebar_objects.
    • Jeśli lista rebar_objects jest pusta, arkusz RebarBillOfMaterial zostanie utworzony dla wszystkich prętów zbrojeniowych w modelu.
  • column_headers jest słownikiem z kluczami: "Host", "Mark", "RebarsCount", "Diameter", "RebarsLength", "RebarsTotalLength", a wartościami są krotki column_header i ich numery porządkowe.
   Przykład: {
                "Host": ("Member", 1),
                "Mark": ("Mark", 2),
                "RebarsCount": ("No. of Rebars", 3),
                "Diameter": ("Diameter in mm", 4),
                "RebarLength": ("Length in m/piece", 5),
                "RebarsTotalLength": ("Total Length in m", 6),
            }
            ustaw numer sekwencji kolumny na 0, aby ukryć kolumnę.
  • column_units jest słownikiem z kluczami: "Diameter", "RebarsLength", "RebarsTotalLength" i odpowiadającymi im jednostkami jako wartością.
   Przykład: {
                "Diameter": "mm",
                "RebarLength": "m",
                "RebarsTotalLength": "m",
            }
  • dia_weight_map jest słownikiem ze średnicą jako kluczem i odpowiadającą jej wagą jako wartością.
   Składnia: {
                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 określa typ długości pręta zbrojeniowego używany do obliczeń BOM. Może przyjmować wartości "RealLength" lub "LengthWithSharpEdges".
  • rebar_objects jest listą obiektów ArchRebar i / lub rebar2 i / lub structures (aby wybrać ArchRebar w tej strukturze).

Przykład

import FreeCAD, Draft, Arch
from ColumnReinforcement import TwoTiesSixRebars
from BillOfMaterial import BillOfMaterial_Spreadsheet

# It doesn't work if the structure is not based on a face
# Structure = Arch.makeStructure(length=1000, width=400, height=400)

Rect = Draft.makeRectangle(400, 400)
Structure1 = Arch.makeStructure(Rect, height=1600)
Structure1.ViewObject.Transparency = 80
Structure2 = Arch.makeStructure(Rect, height=1600)
Structure2.ViewObject.Transparency = 80
Structure2.Placement = FreeCAD.Placement(FreeCAD.Vector(1000, 0, 0), FreeCAD.Rotation(FreeCAD.Vector(0, 0, 1), 0))
FreeCAD.ActiveDocument.recompute()

# Create Straight Rebars
RebarGroup = TwoTiesSixRebars.makeTwoTiesSixRebars(
    l_cover_of_ties=40,        
    r_cover_of_ties=40,
    t_cover_of_ties=40,
    b_cover_of_ties=40,
    offset_of_ties=100,
    bent_angle_of_ties=135,
    extension_factor_of_ties=2,
    dia_of_ties=8,
    number_spacing_check=True,
    number_spacing_value=10,
    dia_of_main_rebars=16,
    t_offset_of_rebars=40,
    b_offset_of_rebars=40,
    main_rebars_type="StraightRebar",
    hook_orientation="Top Inside",
    hook_extend_along="x-axis",
    l_rebar_rounding=None,
    hook_extension=None,
    ties_sequence=("Tie1", "Tie2"),
    structure=Structure1,
    facename="Face6",
)

# Create LShaped Rebars with hook along x-axis
RebarGroup = TwoTiesSixRebars.makeTwoTiesSixRebars(
    l_cover_of_ties=40,
    r_cover_of_ties=40,
    t_cover_of_ties=40,
    b_cover_of_ties=40,
    offset_of_ties=100,
    bent_angle_of_ties=135,
    extension_factor_of_ties=2,
    dia_of_ties=8,
    number_spacing_check=True,
    number_spacing_value=10,
    dia_of_main_rebars=16,
    t_offset_of_rebars=-40,
    b_offset_of_rebars=-40,
    main_rebars_type="LShapeRebar",
    hook_orientation="Top Outside",
    hook_extend_along="x-axis",
    l_rebar_rounding=2,
    hook_extension=40,
    ties_sequence=("Tie1", "Tie2"),
    structure=Structure2,
    facename="Face6",
)

COLUMN_UNITS = {
    "Diameter": "mm",
    "RebarLength": "m",
    "RebarsTotalLength": "m",
}

COLUMN_HEADERS = {
    "Host": ("Member", 1),
    "Mark": ("Mark", 2),
    "RebarsCount": ("No. of Rebars", 3),
    "Diameter": ("Diameter in " + COLUMN_UNITS["Diameter"], 4),
    "RebarLength": ("Length in " + COLUMN_UNITS["RebarLength"] + "/piece", 5),
    "RebarsTotalLength": ("Total Length in " + COLUMN_UNITS["RebarsTotalLength"], 6),
}

DIA_WEIGHT_MAP = {
    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"),
    14: FreeCAD.Units.Quantity("1.206 kg/m"),
    16: FreeCAD.Units.Quantity("1.578 kg/m"),
    18: FreeCAD.Units.Quantity("2.000 kg/m"),
    20: FreeCAD.Units.Quantity("2.466 kg/m"),
    22: FreeCAD.Units.Quantity("2.980 kg/m"),
    25: FreeCAD.Units.Quantity("3.854 kg/m"),
    28: FreeCAD.Units.Quantity("4.830 kg/m"),
    32: FreeCAD.Units.Quantity("6.313 kg/m"),
    36: FreeCAD.Units.Quantity("7.990 kg/m"),
    40: FreeCAD.Units.Quantity("9.864 kg/m"),
    45: FreeCAD.Units.Quantity("12.490 kg/m"),
    50: FreeCAD.Units.Quantity("15.410 kg/m"),
}

# To create Bill Of Material Spreadsheet for all rebars in a model
BillOfMaterial_Spreadsheet.makeBillOfMaterial(
    column_headers=COLUMN_HEADERS,
    column_units=COLUMN_UNITS,
    dia_weight_map=DIA_WEIGHT_MAP,
    rebar_length_type="RealLength",
)

# To create Bill Of Material Spreadsheet for rebars in Structure1
BillOfMaterial_Spreadsheet.makeBillOfMaterial(
    column_headers=COLUMN_HEADERS,
    column_units=COLUMN_UNITS,
    dia_weight_map=DIA_WEIGHT_MAP,
    rebar_length_type="LengthWithSharpEdges",
    rebar_objects=[Structure1],
)

Tworzenie listy materiałów SVG

makeBillOfMaterialSVG(
    column_headers: Optional[Dict[str, Tuple[str, int]]] = None,
    column_units: Optional[Dict[str, str]] = None,
    dia_weight_map: Optional[Dict[float, FreeCAD.Units.Quantity]] = None,
    rebar_length_type: Optional[
        Literal["RealLength", "LengthWithSharpEdges"]
    ] = None,
    font_family: Optional[str] = None,
    font_filename: Optional[str] = None,
    font_size: Optional[float] = None,
    column_width: Optional[float] = None,
    row_height: Optional[float] = None,
    bom_left_offset: Optional[float] = None,
    bom_top_offset: Optional[float] = None,
    bom_min_right_offset: Optional[float] = None,
    bom_min_bottom_offset: Optional[float] = None,
    bom_table_svg_max_width: Optional[float] = None,
    bom_table_svg_max_height: Optional[float] = None,
    template_file: Optional[str] = None,
    output_file: Optional[str] = None,
    rebar_objects: Optional[List] = None,
    reinforcement_group_by: Optional[Literal["Mark", "Host"]] = None,
    return_svg_only: bool = False,
) -> BOMContent
  • Tworzy i zwraca obiekt RebarBillOfMaterial_SVG BOMContent dla danego rebar_objects.
    • Jeśli lista rebar_objects jest pusta, obiekt BOMContent zostanie utworzony dla wszystkich prętów zbrojeniowych w modelu.
  • column_headers jest słownikiem z kluczami: "Host", "Mark", "RebarsCount", "Diameter", "RebarsLength", "RebarsTotalLength", a wartościami są krotki nagłówków kolumn i ich numerów sekwencyjnych.
   Przykład: {
                "Host": ("Member", 1),
                "Mark": ("Mark", 2),
                "RebarsCount": ("No. of Rebars", 3),
                "Diameter": ("Diameter in mm", 4),
                "RebarLength": ("Length in m/piece", 5),
                "RebarsTotalLength": ("Total Length in m", 6),
            }
            ustaw numer sekwencji kolumny na 0, aby ukryć kolumnę.
  • column_units jest słownikiem z kluczami: "Diameter", "RebarsLength", "RebarsTotalLength" i odpowiadającymi im jednostkami jako wartością.
   Przykład: {
                "Diameter": "mm",
                "RebarLength": "m",
                "RebarsTotalLength": "m",
            }
  • dia_weight_map jest słownikiem ze średnicą jako kluczem i odpowiadającą jej wagą jako wartością.
   Składnia: {
                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 określa typ długości prętów zbrojeniowych używany do obliczeń zestawienia materiałów. Może przyjmować wartości "RealLength" lub "LengthWithSharpEdges".
  • font_family określa rodzinę czcionki tekstu danych.
  • font_filename określa nazwę pliku czcionki lub pełną ścieżkę do pliku czcionki odpowiadającego font_family. Jest to wymagane, jeśli pracujesz w trybie konsoli, bez GUI.
  • font_size określa rozmiar czcionki tekstu danych.
  • column_width określa szerokość każdej kolumny w tabeli zestawienia materiałów SVG.
  • row_height określa wysokość każdego wiersza w tabeli zestawienia materiałów SVG.
  • bom_left_offset określa lewe przesunięcie tabeli materiałów SVG w template_file.
  • bom_top_offset określa górne przesunięcie tabeli materiałów SVG w template_file.
  • bom_min_right_offset określa minimalne przesunięcie w prawo pliku SVG listy materiałów w template_file.
  • bom_min_bottom_offset określa minimalne dolne przesunięcie pliku SVG listy materiałów w template_file.
  • bom_table_svg_max_width określa maksymalną szerokość tabeli zestawienia materiałów w SVG.
  • bom_table_svg_max_height określa maksymalną wysokość tabeli zestawienia materiałów w SVG.
  • template_file określa plik szablonu używany do umieszczenia na nim wygenerowanej tabeli zestawienia materiałów. Musi to być prawidłowy plik szablonu Rysunku Technicznego z polami przedstawionymi na stronie Przestrzeń nazw SVG.
  • output_file określa plik wyjściowy do zapisu wygenerowanego zestawienia materiałów SVG.
  • rebar_objects jest listą obiektów ArchRebar i / lub rebar2 i / lub struktur (aby wybrać ArchRebar w tej strukturze).
  • reinforcement_group_by określa sposób grupowania obiektów zbrojenia. Może to być "Mark" lub "Host".
  • return_svg_only określa, czy obiekt BOMContent ma zostać utworzony, czy nie. Jeśli return_svg_only ma wartość True, to ani obiekt BOMContent nie zostanie utworzony, ani plik SVG nie zostanie zapisany w pliku output_file. Zwracany jest natomiast element SVG.

Przykład

from pathlib import Path
import FreeCAD, Draft, Arch
from ColumnReinforcement import TwoTiesSixRebars
from BillOfMaterial import BillOfMaterial_SVG

# It doesn't work if the structure is not based on a face
# Structure = Arch.makeStructure(length=1000, width=400, height=400)

Rect = Draft.makeRectangle(400, 400)
Structure1 = Arch.makeStructure(Rect, height=1600)
Structure1.ViewObject.Transparency = 80
Structure2 = Arch.makeStructure(Rect, height=1600)
Structure2.ViewObject.Transparency = 80
Structure2.Placement = FreeCAD.Placement(FreeCAD.Vector(1000, 0, 0), FreeCAD.Rotation(FreeCAD.Vector(0, 0, 1), 0))
FreeCAD.ActiveDocument.recompute()

# Create Straight Rebars
RebarGroup = TwoTiesSixRebars.makeTwoTiesSixRebars(
    l_cover_of_ties=40,        
    r_cover_of_ties=40,
    t_cover_of_ties=40,
    b_cover_of_ties=40,
    offset_of_ties=100,
    bent_angle_of_ties=135,
    extension_factor_of_ties=2,
    dia_of_ties=8,
    number_spacing_check=True,
    number_spacing_value=10,
    dia_of_main_rebars=16,
    t_offset_of_rebars=40,
    b_offset_of_rebars=40,
    main_rebars_type="StraightRebar",
    hook_orientation="Top Inside",
    hook_extend_along="x-axis",
    l_rebar_rounding=None,
    hook_extension=None,
    ties_sequence=("Tie1", "Tie2"),
    structure=Structure1,
    facename="Face6",
)

# Create LShaped Rebars with hook along x-axis
RebarGroup = TwoTiesSixRebars.makeTwoTiesSixRebars(
    l_cover_of_ties=40,
    r_cover_of_ties=40,
    t_cover_of_ties=40,
    b_cover_of_ties=40,
    offset_of_ties=100,
    bent_angle_of_ties=135,
    extension_factor_of_ties=2,
    dia_of_ties=8,
    number_spacing_check=True,
    number_spacing_value=10,
    dia_of_main_rebars=16,
    t_offset_of_rebars=-40,
    b_offset_of_rebars=-40,
    main_rebars_type="LShapeRebar",
    hook_orientation="Top Outside",
    hook_extend_along="x-axis",
    l_rebar_rounding=2,
    hook_extension=40,
    ties_sequence=("Tie1", "Tie2"),
    structure=Structure2,
    facename="Face6",
)

COLUMN_UNITS = {
    "Diameter": "mm",
    "RebarLength": "m",
    "RebarsTotalLength": "m",
}

COLUMN_HEADERS = {
    "Host": ("Member", 1),
    "Mark": ("Mark", 2),
    "RebarsCount": ("No. of Rebars", 3),
    "Diameter": ("Diameter in " + COLUMN_UNITS["Diameter"], 4),
    "RebarLength": ("Length in " + COLUMN_UNITS["RebarLength"] + "/piece", 5),
    "RebarsTotalLength": ("Total Length in " + COLUMN_UNITS["RebarsTotalLength"], 6),
}

DIA_WEIGHT_MAP = {
    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"),
    14: FreeCAD.Units.Quantity("1.206 kg/m"),
    16: FreeCAD.Units.Quantity("1.578 kg/m"),
    18: FreeCAD.Units.Quantity("2.000 kg/m"),
    20: FreeCAD.Units.Quantity("2.466 kg/m"),
    22: FreeCAD.Units.Quantity("2.980 kg/m"),
    25: FreeCAD.Units.Quantity("3.854 kg/m"),
    28: FreeCAD.Units.Quantity("4.830 kg/m"),
    32: FreeCAD.Units.Quantity("6.313 kg/m"),
    36: FreeCAD.Units.Quantity("7.990 kg/m"),
    40: FreeCAD.Units.Quantity("9.864 kg/m"),
    45: FreeCAD.Units.Quantity("12.490 kg/m"),
    50: FreeCAD.Units.Quantity("15.410 kg/m"),
}

# To create Bill Of Material SVG for all rebars in a model
BillOfMaterial_SVG.makeBillOfMaterialSVG(
    column_headers=COLUMN_HEADERS,
    column_units=COLUMN_UNITS,
    dia_weight_map=DIA_WEIGHT_MAP,
    rebar_length_type="RealLength",
    font_family = "DejaVu Sans",
    font_filename = "DejaVuSans.ttf",
    font_size = 3,
    column_width = 30,
    row_height = 10,
    bom_left_offset = 6,
    bom_top_offset = 40,
    bom_min_right_offset = 6,
    bom_min_bottom_offset = 6,
    bom_table_svg_max_width = 0,
    bom_table_svg_max_height = 0,
    template_file = str(Path(BillOfMaterial_SVG.__file__).parent.absolute() / "BOMTemplate.svg"),
    output_file = None,
    reinforcement_group_by = "Host",
)

# To create Bill Of Material SVG for rebars in Structure1
BillOfMaterial_SVG.makeBillOfMaterialSVG(
    column_headers = COLUMN_HEADERS,
    column_units = COLUMN_UNITS,
    dia_weight_map = DIA_WEIGHT_MAP,
    rebar_length_type = "LengthWithSharpEdges",
    font_family = "DejaVu Sans",
    font_filename = "DejaVuSans.ttf",
    font_size = 3,
    column_width = 30,
    row_height = 10,
    bom_left_offset = 6,
    bom_top_offset = 40,
    bom_min_right_offset = 6,
    bom_min_bottom_offset = 6,
    bom_table_svg_max_width = 0,
    bom_table_svg_max_height = 0,
    template_file = str(Path(BillOfMaterial_SVG.__file__).parent.absolute() / "BOMTemplate.svg"),
    rebar_objects=[Structure1],
    reinforcement_group_by = "Host",
)