TechDraw GeomHatch

From FreeCAD Documentation
Revision as of 17:44, 22 February 2019 by Mario52 (talk | contribs) (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎română • ‎русский
Arrow-left.svg Previous: Techdraw-hatch.png Hatch Area
Next: New Symbol Techdraw-symbol.png Arrow-right.svg

TechDraw GeomHatch.png TechDraw GeomHatch

Menu location
TechDraw → GeomHatch
Workbenches
TechDraw
Default shortcut
None
Introduced in version
-
See also
TechDraw Hatch, TechDraw Hatching


Description

The Geometric Hatch tool fills a closed region in a TechDraw NewView with a pattern based on an AutoDesk PAT hatching specification.

TechDraw GeomHatch example.png

Geometric hatch pattern on a face


How to use

  1. Select an closed region in a View. The region will turn green.
  2. Press the Techdraw-geomhatch.png GeomHatch 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 recompute View-rotate-right.png and/or "wiggle" the parent View to get the pattern to update.

Notes

  • Hatching objects are vulnerable to "topological naming" issues. See the information in the TechDraw Dimension Length tool for more information. It is recommended that hatching be one of the last steps in your drawing process.
  • Unlike the TechDraw Hatch.png 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/Mod/TechDraw/PAT/FCPAT.pat

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

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

Properties

  • DATASource: The View and Face to receive the hatch pattern.
  • DATAFile Pattern: The location of the PAT file to use.
  • DATAName Pattern: The name of the PAT specification within File Pattern.
  • DATAScale Pattern: The scale to be applied to the pattern (must be > 0.0).
  • VIEWWeight Pattern: The thickness of the pattern lines.
  • VIEWColor Pattern: The color for the pattern lines.

Scripting

See also: TechDraw API and FreeCAD Scripting Basics.

The GeomHatch 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)


Arrow-left.svg Previous: Techdraw-hatch.png Hatch Area
Next: New Symbol Techdraw-symbol.png Arrow-right.svg