Skip to content

Latest commit

 

History

History
75 lines (43 loc) · 2.38 KB

TechDraw_Hatch.md

File metadata and controls

75 lines (43 loc) · 2.38 KB


TechDraw Hatch

Description

The Hatch tool fills a closed region in a View with a hatch pattern, which can be SVG or bitmap files. In contrary the Geometric Hatch tool uses a specific PAT pattern file, see Hatching for details.

SVG hatch pattern on a face

Usage

  1. Select an closed region in a View.
  2. Press the Hatch a Face using Image File button
  3. A dialog will open where you can select the pattern file, the scale and color.

Notes

$INSTALL_DIR/data/Mod/TechDraw/Patterns
``` where  
```python
/usr/share/freecad/data/Mod/TechDraw/Patterns
``` and also on [GitHub](https://github.com/FreeCAD/FreeCAD/tree/master/src/Mod/TechDraw/Patterns).

## Properties

-    **Source**: The View and Face to receive the hatch pattern.

-    **Hatch Pattern**: Full path and filename to an SVG pattern file.

-    **Hatch Color**: Hatch pattern will be displayed in this color.

-    **Hatch Scale**: Hatch pattern size modifier.

## Scripting


**See also:**

[TechDraw API](TechDraw_API.md) and [FreeCAD Scripting Basics](FreeCAD_Scripting_Basics.md).

The Hatch tool can be used in [macros](Macros.md) and from the [Python](Python.md) console by using the following functions:

 
```python
hatch = FreeCAD.ActiveDocument.addObject('TechDraw::DrawHatch','Hatch')
hatch.Source = (view1,["Face0"])
hatch.HatchPattern = hatchFileSpec
rc = page.addView(hatch)

{{TechDraw Tools navi}}


documentation index > TechDraw > TechDraw Hatch