Arch Profile/pt-br: Difference between revisions

From FreeCAD Documentation
(Created page with "Perfil")
 
(Updating to match new version of source page)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
|[[Arch_Truss|Truss]]
|[[Arch_CompSetMaterial|CompSetMaterial]]
|[[Arch_Workbench|Arch]]
|IconL=Arch_Truss.svg
|IconR=Arch_CompSetMaterial.png
|IconC=Workbench_Arch.svg
}}


{{GuiCommand
{{GuiCommand
|Name=Arch Profile
|Name=Arch Profile
|Workbenches=[[Arch Module|Arch]]
|MenuLocation=Arch → Profile
|MenuLocation=Arch → Profile
|Workbenches=[[Arch_Workbench|Arch]]
|Version=0.19
|Version=0.19
}}
}}
Line 36: Line 45:


An additional CSV file can be created by the user, containing custom profile definitions. It must be named {{incode|profiles.csv}}, and placed in
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|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]]:
The {{incode|$FREECAD_USER_DIR}} can be obtained from the [[Python_console|Python console]]:
{{Code|code=
{{Code|lang=bash|code=
FreeCAD.getUserAppDataDir()
FreeCAD.getUserAppDataDir()
}}
}}
Line 50: Line 59:


* For C profiles: Category, Name, Class, Diameter, Thickness
* For C profiles: Category, Name, Class, Diameter, Thickness
* For H and U profiles: Category, Name, Class, Width, Height, Web thickness, Flange thickness
* For H, U and T profiles: Category, Name, Class, Width, Height, Web thickness, Flange thickness
* For L profiles: Category, Name, Class, Width, Height, Thickness
* For R profiles: Category, Name, Class, Width, Height
* For R profiles: Category, Name, Class, Width, Height
* For RH profiles: Category, Name, Class, Width, Height, Thickness
* For RH profiles: Category, Name, Class, Width, Height, Thickness
Line 56: Line 66:
All measures must be in millimeters. Possible profile classes are:
All measures must be in millimeters. Possible profile classes are:


* C: Circular tube
* C: Circular tube
* H: H- or I-profile
* H: H or I profile
* R: Rectangular
* R: Rectangular
* RH: Rectangular hollow
* RH: Rectangular hollow
* U: U-profile
* U: U profile
* L: L profile
* T: T profile


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].
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].
Line 78: Line 90:
{{Code|code=
{{Code|code=
import Arch
import Arch
Arch.makeProfile([0,'REC','REC100x100','R',100,100])
Arch.makeProfile([0, 'REC', 'REC100x100', 'R', 100, 100])
}}
}}


Where the first element of the list is an order number that is not used yet.
Where the first element of the list is an order number that is not used yet.


{{Docnav
|[[Arch_Truss|Truss]]
|[[Arch_CompSetMaterial|CompSetMaterial]]
|[[Arch_Workbench|Arch]]
|IconL=Arch_Truss.svg
|IconR=Arch_CompSetMaterial.png
|IconC=Workbench_Arch.svg
}}


{{Arch Tools navi{{#translation:}}}}
{{Arch Tools navi{{#translation:}}}}

Latest revision as of 19:45, 29 July 2022

Other languages:

Arch Profile

Menu location
Arch → Profile
Workbenches
Arch
Default shortcut
None
Introduced in version
0.19
See also
None

Description

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 CurtainWall or Part Extrude.

See the list of available presets.

The profile tool is also integrated to the Arch Structure tool, all preset profiles are also available there.

Usage

  1. Press the Arch Profile button
  2. Select a preset in the tool task panel
  3. Click a point in the 3D view to place the profile

Properties

Data

  • DadosHeight: The overall height of the profile
  • DadosWidth: The overall width of the profile
  • DadosDiameter: The diameter of the profile (circular profiles only)
  • DadosThickness: The thickness of the tube wall (circular and rectangular hollow profiles only)
  • DadosWeb Thickness: The thickness of the profile web (H and I profiles only)
  • DadosFlange Thickness: The thickness of the profile flange (H and I profiles only)

Adding custom profiles

An additional CSV file can be created by the user, containing custom profile definitions. It must be named profiles.csv, and placed in

$FREECAD_USER_DIR/Arch/

The $FREECAD_USER_DIR can be obtained from the Python console:

FreeCAD.getUserAppDataDir()

The contents of your custom profiles.csv file must be modeled upon the same rules as the profiles.csv in the source code.

The CSV file must contain one line per available profile, formatted as follows:

  • For C profiles: Category, Name, Class, Diameter, Thickness
  • For H, U and T profiles: Category, Name, Class, Width, Height, Web thickness, Flange thickness
  • For L profiles: Category, Name, Class, Width, Height, Thickness
  • For R profiles: Category, Name, Class, Width, Height
  • For RH profiles: Category, Name, Class, Width, Height, Thickness

All measures must be in millimeters. Possible profile classes are:

  • C: Circular tube
  • H: H or I profile
  • R: Rectangular
  • RH: Rectangular hollow
  • U: U profile
  • L: L profile
  • T: T profile

Additional profile types can be created, but a corresponding class must first be defined in ArchProfile.py.

Scripting

The Profile tool can be used in macros and from the Python console by using the following function:

profile = makeProfile(profile_list)

Where profile_list contains the different elements of a list in the CSV file.

Example:

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

Where the first element of the list is an order number that is not used yet.