TechDraw GeometricHatch/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "TechDraw GeometricHatch")
 
(Updating to match new version of source page)
Line 18: Line 18:
==Description==
==Description==


The GeometricHatch tool fills a closed region in a View with a pattern based on an AutoDesk PAT hatching specification.
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.


[[Image:TechDraw_GeomHatch_example.png]]
[[Image:TechDraw_GeomHatch_example.png]]
{{Caption|Geometric hatch pattern on a face}}
{{Caption|Geometric hatch pattern on a face}}


==How to use==
==Usage==


# Select an closed region in a View. The region will turn green.
# Select an closed region in a View. The region will turn green.
Line 32: Line 32:
== Notes ==
== Notes ==


* 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.
* Hatching objects are vulnerable to "[[Topological naming problem|topological naming]]" issues. See the information in the {{Button|[[Image:TechDraw_Dimension_Length.png|16px]] [[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.
* Unlike the [[TechDraw_Hatch|Hatch ]] tool, geometric hatch patterns are included when a drawing page is saved as an [[SVG|SVG]] file.
* Unlike the [[TechDraw_Hatch|Hatch ]] tool, geometric hatch patterns are included when a drawing page is saved as an [[SVG|SVG]] file.


A small set of sample patterns are available in
A small set of sample patterns are available in:


{{Code|code=
{{Code|code=
Line 41: Line 41:
}}
}}


where {{incode|$INSTALL_DIR}} is the directory where FreeCAD was installed, for example
{{incode|$INSTALL_DIR}} is the directory where FreeCAD was installed, for example


{{Code|code=
{{Code|code=

Revision as of 22:01, 7 February 2020

Other languages:

TechDraw GeometricHatch

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

Description

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.

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)