TechDraw GeometricHatch/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "TechDraw GeometricHatch")
 
No edit summary
 
(81 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
{{Docnav/fr
|[[TechDraw_Hatch|Hatch Face using Image File]]
|[[TechDraw_Hatch/fr|Hachures par motif]]
|[[TechDraw_Symbol|Insert SVG Symbol]]
|[[TechDraw_Symbol/fr|Symbole]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Workbench/fr|Atelier TechDraw]]
|IconL=TechDraw_Hatch.svg
|IconL=TechDraw_Hatch.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_Symbol.svg
|IconR=TechDraw_Symbol.svg
|IconC=Workbench_TechDraw.svg
}}
}}


{{GuiCommand
{{GuiCommand/fr
|Name=TechDraw GeometricHatch
|Name=TechDraw GeometricHatch
|Name/fr=TechDraw Hachures géométriques
|MenuLocation=TechDraw → Apply Geometric Hatch to Face
|MenuLocation=TechDraw → Hachures → Appliquer un motif de hachure géométrique à une face
|Workbenches=[[TechDraw Module|TechDraw]]
|Workbenches=[[TechDraw_Workbench/fr|TechDraw]]
|SeeAlso=[[TechDraw_Hatch|Hatch Face using Image File]], [[TechDraw_Hatching|TechDraw Hatching]]
|SeeAlso=[[TechDraw_Hatch/fr|TechDraw Hachures par motif]], [[TechDraw_Hatching/fr|TechDraw Hachures]]
}}
}}


==Description==
==Description==


L'outil '''TechDraw Hachures géométriques''' remplit une région fermée dans une vue avec un motif basé sur une spécification de hachures AutoDesk PAT. Vous pouvez également utiliser l'outil [[TechDraw_Hatch/fr|TechDraw Hachures par motif]] utilise des motifs de hachures basés sur le SVG. Voir [[TechDraw_Hatching/fr|TechDraw Hachures]] pour plus de détails.
The GeometricHatch tool fills a closed region in a View with a pattern based on an AutoDesk PAT hatching specification.


[[Image:TechDraw_GeomHatch_example.png]]
[[Image:TechDraw_GeomHatch_example.png|300px]]
{{Caption|Geometric hatch pattern on a face}}
{{Caption|Motif de hachures géométriques sur une face}}


<span id="Usage"></span>
==How to use==
==Utilisation==


# Sélectionner une région fermée dans une vue.
# Select an closed region in a View. The region will turn green.
# Il existe plusieurs façons de lancer l'outil :
# Press the {{Button|[[Image:TechDraw_GeometricHatch.svg|16px]] [[TechDraw_GeometricHatch|Apply Geometric Hatch to Face]]}} button
#* Appuyez sur le bouton {{Button|[[Image:TechDraw_GeometricHatch.svg|16px]] [[TechDraw_GeometricHatch/fr|Appliquer un motif de hachure géométrique à une face ]]}}.
# a dialog will open where you may select your pattern, a scale for the pattern and a line weight.
#* Sélectionnez la {{MenuCommand|TechDraw → Hachures → [[Image:TechDraw_GeometricHatch.svg|16px]] Appliquer un motif de hachure géométrique à une face }} dans le menu.
# You may need to press {{Button|[[Image:Std_Refresh.svg|16px]] [[Std_Refresh|Refresh]]}} and/or {{Button|[[Image:TechDraw RedrawPage.svg|16px]] [[TechDraw_RedrawPage|Redraw Page]]}} to get the pattern to update.
# Le panneau de tâches {{MenuCommand|Appliquer un motif de hachure géométrique à une face }} s'ouvre.
# Vous pouvez modifier {{MenuCommand|Fichier de motifs}}, {{MenuCommand|Nom du motif}}, {{MenuCommand|Echelle du motif}}, {{MenuCommand|Poids du trait}} et {{MenuCommand|Couleur du trait}}.
# Appuyez sur le bouton {{Button|OK}}.


== Notes ==
<span id="Notes"></span>
== Remarques ==


* Pour un remplissage en couleur unie, utilisez plutôt [[TechDraw_Hatch/fr|TechDraw Hachures par motif]] et sélectionnez {{FileName|solid.svg}} comme '''Pattern File'''.
* Hatching objects are vulnerable to "topological naming" issues. See the information in the [[TechDraw Dimension Length|TechDraw Dimension Length]] tool for more information. It is recommended that hatching be one of the last steps in your drawing process.
* Les objets hachurés sont vulnérables au "[[Topological_naming_problem/fr|problème de nommage topologique]]". Voir [[TechDraw_LengthDimension/fr|TechDraw Cote de longueur]] pour plus d'informations. Il est recommandé que le hachurage soit l'une des dernières étapes de votre processus de dessin.
* Unlike the [[TechDraw_Hatch|Hatch ]] tool, geometric hatch patterns are included when a drawing page is saved as an [[SVG|SVG]] file.
* Un petite nombre de modèles est disponible sur :

: {{Code|code=
A small set of sample patterns are available in
$INSTALL_DIR/data/Mod/TechDraw/PAT/FCPAT.pat

{{Code|code=
$INSTALL_DIR/Mod/TechDraw/PAT/FCPAT.pat
}}
}}
: Où {{incode|$INSTALL_DIR}} est le répertoire dans lequel FreeCAD a été installé, par exemple :

: {{Code|code=
where {{incode|$INSTALL_DIR}} is the directory where FreeCAD was installed, for example
/usr/share/freecad/data/Mod/TechDraw/PAT/FCPAT.pat

{{Code|code=
/usr/share/freecad/Mod/TechDraw/PAT/FCPAT.pat
}}
}}


==Properties==
<span id="Properties"></span>
==Propriétés==


* {{PropertyData|Source}}: The View and Face to receive the hatch pattern.
* {{PropertyData|Source}} : vue et la face pour recevoir le motif de hachures.
* {{PropertyData|File Pattern}}: The location of the PAT file to use.
* {{PropertyData|File Pattern}} : emplacement du fichier PAT à utiliser.
* {{PropertyData|Name Pattern}}: The name of the PAT specification within File Pattern.
* {{PropertyData|Name Pattern}} : nom de la spécification PAT dans File Pattern.
* {{PropertyData|Scale Pattern}}: The scale to be applied to the pattern (must be > 0.0).
* {{PropertyData|Scale Pattern}} : échelle à appliquer au motif (doit être> 0.0).
* {{PropertyView|Weight Pattern}}: The thickness of the pattern lines.
* {{PropertyView|Weight Pattern}} : épaisseur des lignes de motif.
* {{PropertyView|Color Pattern}}: The color for the pattern lines.
* {{PropertyView|Color Pattern}} : couleur des lignes de motif.


==Scripting==
<span id="Scripting"></span>
==Script==


Voir aussi : [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] et [[FreeCAD_Scripting_Basics/fr|FreeCAD Débuter avec les scripts]].
{{Emphasis|See also:}} [[TechDraw API]] and [[FreeCAD Scripting Basics]].


The GeometricHatch tool can be used in [[macros]] and from the [[Python]] console by using the following functions:
Une Hachure géométrique peut être créée à partir de [[Macros/fr|macros]] et à partir de la console [[Python/fr|Python]] à l'aide des fonctions suivantes :


{{Code|code=
{{Code|code=
hatch = FreeCAD.ActiveDocument.addObject('TechDraw::DrawGeomHatch','GeomHatch')
hatch = FreeCAD.ActiveDocument.addObject("TechDraw::DrawGeomHatch", "GeomHatch")
hatch.Source = (view1,["Face0"])
hatch.Source = (view1, ["Face0"])
hatch.FilePattern = "path/to/myPATfile.pat"
hatch.FilePattern = "path/to/myPATfile.pat"
hatch.NamePattern = "Diamond"
hatch.NamePattern = "Diamond"
rc = page.addView(hatch)
page.addView(hatch)
}}
}}


Il est également possible d'utiliser le moteur de hachures géométriques de TechDraw pour produire un objet composé dans l'espace 3D. Il faut faire attention que la face de base se trouve sur le plan XY, car l'algorithme n'est pas encore adapté aux autres cas :


{{Code|code=
{{Docnav
import TechDraw
|[[TechDraw_Hatch|Hatch Face using Image File]]
face = Part.makePlane(10, 10)
|[[TechDraw_Symbol|Insert SVG Symbol]]
patfile = "path/to/myPATfile.pat"
|[[TechDraw_Module|TechDraw]]
pattern = "Diamond"
scale = 10
hatch = TechDraw.makeGeomHatch(face, scale, pattern, patfile)
Part.show(hatch)
}}


{{Docnav/fr
|[[TechDraw_Hatch/fr|Hachures par motif]]
|[[TechDraw_Symbol/fr|Symbole]]
|[[TechDraw_Workbench/fr|Atelier TechDraw]]
|IconL=TechDraw_Hatch.svg
|IconL=TechDraw_Hatch.svg
|IconR=TechDraw_Symbol.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_Symbol.svg
}}
}}


{{TechDraw Tools navi}}
{{TechDraw Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

{{Userdocnavi}}
{{clear}}

Latest revision as of 08:06, 1 August 2023

Other languages:

TechDraw Hachures géométriques

Emplacement du menu
TechDraw → Hachures → Appliquer un motif de hachure géométrique à une face
Ateliers
TechDraw
Raccourci par défaut
Aucun
Introduit dans la version
-
Voir aussi
TechDraw Hachures par motif, TechDraw Hachures

Description

L'outil TechDraw Hachures géométriques remplit une région fermée dans une vue avec un motif basé sur une spécification de hachures AutoDesk PAT. Vous pouvez également utiliser l'outil TechDraw Hachures par motif utilise des motifs de hachures basés sur le SVG. Voir TechDraw Hachures pour plus de détails.

Motif de hachures géométriques sur une face

Utilisation

  1. Sélectionner une région fermée dans une vue.
  2. Il existe plusieurs façons de lancer l'outil :
  3. Le panneau de tâches Appliquer un motif de hachure géométrique à une face s'ouvre.
  4. Vous pouvez modifier Fichier de motifs, Nom du motif, Echelle du motif, Poids du trait et Couleur du trait.
  5. Appuyez sur le bouton OK.

Remarques

$INSTALL_DIR/data/Mod/TechDraw/PAT/FCPAT.pat
$INSTALL_DIR est le répertoire dans lequel FreeCAD a été installé, par exemple :
/usr/share/freecad/data/Mod/TechDraw/PAT/FCPAT.pat

Propriétés

  • DonnéesSource : vue et la face pour recevoir le motif de hachures.
  • DonnéesFile Pattern : emplacement du fichier PAT à utiliser.
  • DonnéesName Pattern : nom de la spécification PAT dans File Pattern.
  • DonnéesScale Pattern : échelle à appliquer au motif (doit être> 0.0).
  • VueWeight Pattern : épaisseur des lignes de motif.
  • VueColor Pattern : couleur des lignes de motif.

Script

Voir aussi : Autogenerated API documentation et FreeCAD Débuter avec les scripts.

Une Hachure géométrique peut être créée à partir de macros et à partir de la console Python à l'aide des fonctions suivantes :

hatch = FreeCAD.ActiveDocument.addObject("TechDraw::DrawGeomHatch", "GeomHatch")
hatch.Source = (view1, ["Face0"])
hatch.FilePattern = "path/to/myPATfile.pat"
hatch.NamePattern = "Diamond"
page.addView(hatch)

Il est également possible d'utiliser le moteur de hachures géométriques de TechDraw pour produire un objet composé dans l'espace 3D. Il faut faire attention que la face de base se trouve sur le plan XY, car l'algorithme n'est pas encore adapté aux autres cas :

import TechDraw
face = Part.makePlane(10, 10)
patfile = "path/to/myPATfile.pat"
pattern = "Diamond"
scale = 10
hatch = TechDraw.makeGeomHatch(face, scale, pattern, patfile)
Part.show(hatch)