TechDraw "Применить геометрическую штриховку к грани"

From FreeCAD Documentation
Revision as of 10:06, 22 May 2020 by Baritone (talk | contribs) (Created page with "{{Docnav/ru |Штриховать грань файлом изображения |Вставить символ SVG |TechDraw_Mo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎polski • ‎русский

TechDraw GeometricHatch.svg TechDraw GeometricHatch

Menu location
TechDraw → Apply Geometric Hatch to Face
Default shortcut
Introduced in version
See also
Hatch Face using Image File, TechDraw Hatching


The GeometricHatch tool fills a closed region in a View with a pattern based on an AutoDesk PAT hatching specification. Alternatively, the Hatch tool uses an SVG or bitmap file as hatch pattern, see Hatching for details.

TechDraw GeomHatch example.png

Geometric hatch pattern on a face


  1. Select an closed region in a View. The region will turn green.
  2. Press the TechDraw GeometricHatch.svg 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 Std Refresh.svg Refresh and/or TechDraw RedrawPage.svg Redraw Page to get the pattern to update.


  • Hatching objects are vulnerable to "topological naming" issues. See the information in the 16px TechDraw Dimension Length tool for more information. It is recommended that hatching be one of the last steps in your drawing process.
  • Unlike the Hatch tool, geometric hatch patterns are included when a drawing page is saved as an SVG file.

A small set of sample patterns are available in:


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



  • ДанныеSource: The View and Face to receive the hatch pattern.
  • ДанныеFile Pattern: The location of the PAT file to use.
  • ДанныеName Pattern: The name of the PAT specification within File Pattern.
  • ДанныеScale Pattern: The scale to be applied to the pattern (must be > 0.0).
  • ВидWeight Pattern: The thickness of the pattern lines.
  • ВидColor Pattern: The color for the pattern lines.


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)