Arch Profile/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "{{GuiCommand/pl |Name=Arch Profile |Name/pl=Architektura: Profil |MenuLocation=Arch → Profil |Workbenches=Architektura |Version=0.19 }}")
No edit summary
 
(22 intermediate revisions by the same user not shown)
Line 18: Line 18:
}}
}}


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


Narzędzie Profil tworzy parametryczny obiekt profilu 2D. Obiekt ten może być następnie użyty jako podstawa w innych narzędziach, które wykonują wyciągnięcia, takich jak [[Arch_Frame/pl|Rama]], [[Arch_CurtainWall/pl|Ściana kurtynowa]] lub [[Part_Extrude/pl|Część: Wyciągnij]].
The Profile tool builds a parametric 2D profile object. This object can then be used as a base in different other tools that perform extrusions, such as [[Arch Frame|Arch Frame]], [[Arch CurtainWall|Arch CurtainWall]] or [[Part Extrude|Part Extrude]].


See the [https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Arch/Presets/profiles.csv list of available presets].
Patrz [https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Arch/Presets/profiles.csv lista dostępnych ustawień wstępnych].


Narzędzie profilu jest również zintegrowane z narzędziem [[Arch_Structure/pl|Konstrukcja]], wszystkie wstępnie ustawione profile są tam również dostępne.
The profile tool is also integrated to the [[Arch Structure|Arch Structure]] tool, all preset profiles are also available there.


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


# Press the {{Button|[[Image:Arch Profile.svg|16px]] [[Arch Profile|Arch Profile]]}} button
# Naciśnij przycisk {{Button|[[Image:Arch Profile.svg|16px]] '''Profil'''}}.
# Wybierz ustawienie wstępne w panelu zadań narzędzia.
# Select a preset in the tool task panel
# Kliknij punkt w widoku 3D, aby umieścić profil.
# Click a point in the 3D view to place the profile


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


<span id="Data"></span>
=== Data ===
===Dane===


* {{PropertyData|Height}}: The overall height of the profile
* {{PropertyData|Wysokość}}: Całkowita wysokość profilu.
* {{PropertyData|Width}}: The overall width of the profile
* {{PropertyData|Szerokość}}: Całkowita szerokość profilu.
* {{PropertyData|Diameter}}: The diameter of the profile (circular profiles only)
* {{PropertyData|Średnica}}: Średnica profilu ''(tylko profile okrągłe)''.
* {{PropertyData|Thickness}}: The thickness of the tube wall (circular and rectangular hollow profiles only)
* {{PropertyData|Grubość}}: Grubość ścianki rury ''(tylko okrągłe i prostokątne puste profile)''.
* {{PropertyData|Web Thickness}}: The thickness of the profile web (H and I profiles only)
* {{PropertyData|Web Thickness}}: Grubość środnika profilu ''(tylko profile H i I)''.
* {{PropertyData|Flange Thickness}}: The thickness of the profile flange (H and I profiles only)
* {{PropertyData|Grubość kołnierza}}: Grubość kołnierza profilu ''(tylko profile H i I)''.


<span id="Adding_custom_profiles"></span>
==Adding custom profiles==
==Dodawanie profili niestandardowych==


Użytkownik może utworzyć dodatkowy plik CSV zawierający niestandardowe definicje profili. Musi on mieć nazwę {{incode|profiles.csv}} i być umieszczony w folderze:
An additional CSV file can be created by the user, containing custom profile definitions. It must be named {{incode|profiles.csv}}, and placed in
{{Code|lang=bash|code=
{{Code|lang=bash|code=
$FREECAD_USER_DIR/Arch/
$FREECAD_USER_DIR/Arch/
}}
}}


The {{incode|$FREECAD_USER_DIR}} can be obtained from the [[Python_console|Python console]]:
lokalizację {{incode|$FREECAD_USER_DIR}} można uzyskać z [[Python_console|konsoli Python]]:
{{Code|lang=bash|code=
{{Code|lang=bash|code=
FreeCAD.getUserAppDataDir()
FreeCAD.getUserAppDataDir()
}}
}}


The contents of your custom {{incode|profiles.csv}} file must be modeled upon the same rules as the [https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Arch/Presets/profiles.csv profiles.csv] in the source code.
Zawartość pliku niestandardowego profilu {{incode|profiles.csv}} musi być wzorowana na tych samych zasadach, co plik [https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Arch/Presets/profiles.csv profiles.csv] w kodzie źródłowym.


Plik CSV musi zawierać jeden wiersz dla każdego dostępnego profilu, sformatowany w następujący sposób:
The CSV file must contain one line per available profile, formatted as follows:


* Dla profili C: Kategoria, Nazwa, Klasa, Średnica, Grubość.
* For C profiles: Category, Name, Class, Diameter, Thickness
* For H, U and T profiles: Category, Name, Class, Width, Height, Web thickness, Flange thickness
* Dla profili H, U i T: Kategoria, Nazwa, Klasa, Szerokość, Wysokość, Grubość środnika, Grubość kołnierza.
* Dla profili L: Kategoria, Nazwa, Klasa, Szerokość, Wysokość, Grubość.
* For L profiles: Category, Name, Class, Width, Height, Thickness
* Dla profili R: Kategoria, Nazwa, Klasa, Szerokość, Wysokość.
* For R profiles: Category, Name, Class, Width, Height
* Dla profili RH: Kategoria, Nazwa, Klasa, Szerokość, Wysokość, Grubość.
* For RH profiles: Category, Name, Class, Width, Height, Thickness


Wszystkie wymiary muszą być podane w milimetrach. Możliwe klasy profili to:
All measures must be in millimeters. Possible profile classes are:


* C: Circular tube
* C: Rura okrągła,
* H: H or I profile
* H: Profil H lub I,
* R: Rectangular
* R: Prostokątny,
* RH: Rectangular hollow
* RH: Prostokątny wydrążony,
* U: U profile
* U: Profil U,
* L: L profile
* L: Profil L,
* T: T profile
* T: Profil T.


Additional profile types can be created, but a corresponding class must first be defined in [https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Arch/ArchProfile.py ArchProfile.py].
Można utworzyć dodatkowe typy profili, ale najpierw należy zdefiniować odpowiednią klasę w [https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Arch/ArchProfile.py ArchProfile.py].


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


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


{{Code|code=
{{Code|code=
Line 85: Line 91:
}}
}}


Where profile_list contains the different elements of a list in the CSV file.
Gdzie profile_list zawiera różne elementy listy w pliku CSV.


Przykład:
Example:


{{Code|code=
{{Code|code=
Line 94: Line 100:
}}
}}


Gdzie pierwszym elementem listy jest numer porządkowy, który nie został jeszcze użyty.
Where the first element of the list is an order number that is not used yet.




{{Docnav
{{Docnav/pl
|[[Arch_Truss|Truss]]
|[[Arch_Truss/pl|Wiązar]]
|[[Arch_CompSetMaterial|CompSetMaterial]]
|[[Arch_CompSetMaterial/pl|Narzędzia materiałowe]]
|[[Arch_Workbench|Arch]]
|[[Arch_Workbench/pl|środowisko pracy Architektura]]
|IconL=Arch_Truss.svg
|IconL=Arch_Truss.svg
|IconR=Arch_CompSetMaterial.png
|IconR=Arch_CompSetMaterial.png

Latest revision as of 06:10, 5 May 2024

Architektura: Profil

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

Opis

Narzędzie Profil tworzy parametryczny obiekt profilu 2D. Obiekt ten może być następnie użyty jako podstawa w innych narzędziach, które wykonują wyciągnięcia, takich jak Rama, Ściana kurtynowa lub Część: Wyciągnij.

Patrz lista dostępnych ustawień wstępnych.

Narzędzie profilu jest również zintegrowane z narzędziem Konstrukcja, wszystkie wstępnie ustawione profile są tam również dostępne.

Użycie

  1. Naciśnij przycisk Profil.
  2. Wybierz ustawienie wstępne w panelu zadań narzędzia.
  3. Kliknij punkt w widoku 3D, aby umieścić profil.

Właściwości

Dane

  • DANEWysokość: Całkowita wysokość profilu.
  • DANESzerokość: Całkowita szerokość profilu.
  • DANEŚrednica: Średnica profilu (tylko profile okrągłe).
  • DANEGrubość: Grubość ścianki rury (tylko okrągłe i prostokątne puste profile).
  • DANEWeb Thickness: Grubość środnika profilu (tylko profile H i I).
  • DANEGrubość kołnierza: Grubość kołnierza profilu (tylko profile H i I).

Dodawanie profili niestandardowych

Użytkownik może utworzyć dodatkowy plik CSV zawierający niestandardowe definicje profili. Musi on mieć nazwę profiles.csv i być umieszczony w folderze:

$FREECAD_USER_DIR/Arch/

lokalizację $FREECAD_USER_DIR można uzyskać z konsoli Python:

FreeCAD.getUserAppDataDir()

Zawartość pliku niestandardowego profilu profiles.csv musi być wzorowana na tych samych zasadach, co plik profiles.csv w kodzie źródłowym.

Plik CSV musi zawierać jeden wiersz dla każdego dostępnego profilu, sformatowany w następujący sposób:

  • Dla profili C: Kategoria, Nazwa, Klasa, Średnica, Grubość.
  • Dla profili H, U i T: Kategoria, Nazwa, Klasa, Szerokość, Wysokość, Grubość środnika, Grubość kołnierza.
  • Dla profili L: Kategoria, Nazwa, Klasa, Szerokość, Wysokość, Grubość.
  • Dla profili R: Kategoria, Nazwa, Klasa, Szerokość, Wysokość.
  • Dla profili RH: Kategoria, Nazwa, Klasa, Szerokość, Wysokość, Grubość.

Wszystkie wymiary muszą być podane w milimetrach. Możliwe klasy profili to:

  • C: Rura okrągła,
  • H: Profil H lub I,
  • R: Prostokątny,
  • RH: Prostokątny wydrążony,
  • U: Profil U,
  • L: Profil L,
  • T: Profil T.

Można utworzyć dodatkowe typy profili, ale najpierw należy zdefiniować odpowiednią klasę w ArchProfile.py.

Tworzenie skryptów

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

profile = makeProfile(profile_list)

Gdzie profile_list zawiera różne elementy listy w pliku CSV.

Przykład:

import Arch
Arch.makeProfile([0, 'REC', 'REC100x100', 'R', 100, 100])

Gdzie pierwszym elementem listy jest numer porządkowy, który nie został jeszcze użyty.