TechDraw GeometricHatch/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "{{GuiCommand/fr |Name=TechDraw GeometricHatch |Name/fr=TechDraw Hachures géométriques |MenuLocation=TechDraw → Apply Geometric Hatch to Face |Workbenches=TechDraw Module...")
(Created page with "L'outil 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. '''Alternativement''', l'outil ...")
Line 19: Line 19:
==Description==
==Description==


The GeometricHatch tool fills a closed region in a View with a pattern based on an AutoDesk PAT hatching specification. '''Alternatively''', the [[TechDraw_Hatch|Hatch]] tool uses an [[SVG|SVG]] or [[bitmap|bitmap]] file as hatch pattern, see [[TechDraw_Hatching|Hatching]] for details.
L'outil 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. '''Alternativement''', l'outil [[TechDraw_Hatch/fr|TechDraw Hachures par motifs]] utilise un fichier [[SVG/fr|SVG]] ou [[bitmap/fr|bitmap]] comme motif de hachures, voir [[TechDraw_Hatching/fr|TechDraw Hachures]] pour plus de détails.


[[Image:TechDraw_GeomHatch_example.png|300px]]
[[Image:TechDraw_GeomHatch_example.png|300px]]

Revision as of 13:03, 8 April 2020

Other languages:

TechDraw Hachures géométriques

Emplacement du menu
TechDraw → Apply Geometric Hatch to Face
Ateliers
TechDraw
Raccourci par défaut
Aucun
Introduit dans la version
-
Voir aussi
TechDraw Hachures par motifs, TechDraw Hachures

Description

L'outil 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. Alternativement, l'outil TechDraw Hachures par motifs utilise un fichier SVG ou bitmap comme motif de hachures, voir TechDraw Hachures pour plus de détails.

Geometric hatch pattern on a face

Usage

  1. Select an closed region in a View. The region will turn green.
  2. Press the Apply Geometric Hatch to Face button
  3. a dialog will open where you may select your pattern, a scale for the pattern and a line weight.
  4. You may need to press Refresh and/or Redraw Page to get the pattern to update.

Notes

A small set of sample patterns are available in:

$INSTALL_DIR/Mod/TechDraw/PAT/FCPAT.pat

$INSTALL_DIR is the directory where FreeCAD was installed, for example

/usr/share/freecad/Mod/TechDraw/PAT/FCPAT.pat

Properties

  • DonnéesSource: The View and Face to receive the hatch pattern.
  • DonnéesFile Pattern: The location of the PAT file to use.
  • DonnéesName Pattern: The name of the PAT specification within File Pattern.
  • DonnéesScale Pattern: The scale to be applied to the pattern (must be > 0.0).
  • VueWeight Pattern: The thickness of the pattern lines.
  • VueColor Pattern: The color for the pattern lines.

Scripting

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:

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