TechDraw GeometricHatch: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 3: Line 3:
<!--T:19-->
<!--T:19-->
{{Docnav
{{Docnav
|[[TechDraw_Hatch|Hatch Face using Image File]]
|[[TechDraw_Hatch|Hatch]]
|[[TechDraw_Symbol|Insert SVG Symbol]]
|[[TechDraw_Symbol|SVG Symbol]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=TechDraw_Hatch.svg
|IconL=TechDraw_Hatch.svg
Line 16: Line 16:
|MenuLocation=TechDraw → Apply Geometric Hatch to Face
|MenuLocation=TechDraw → Apply Geometric Hatch to Face
|Workbenches=[[TechDraw_Module|TechDraw]]
|Workbenches=[[TechDraw_Module|TechDraw]]
|SeeAlso=[[TechDraw_Hatch|TechDraw Hatch Face using Image File]], [[TechDraw_Hatching|TechDraw Hatching]]
|SeeAlso=[[TechDraw_Hatch|TechDraw Hatch]], [[TechDraw_Hatching|TechDraw Hatching]]
}}
}}


Line 40: Line 40:


<!--T:11-->
<!--T:11-->
* 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.
* 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.


<!--T:12-->
<!--T:12-->
Line 91: Line 91:
<!--T:20-->
<!--T:20-->
{{Docnav
{{Docnav
|[[TechDraw_Hatch|Hatch Face using Image File]]
|[[TechDraw_Hatch|Hatch]]
|[[TechDraw_Symbol|Insert SVG Symbol]]
|[[TechDraw_Symbol|SVG Symbol]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=TechDraw_Hatch.svg
|IconL=TechDraw_Hatch.svg

Revision as of 21:29, 21 December 2020

TechDraw GeometricHatch

Menu location
TechDraw → Apply Geometric Hatch to Face
Workbenches
TechDraw
Default shortcut
None
Introduced in version
-
See also
TechDraw Hatch, 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.
  2. Press the Apply Geometric Hatch to Face button
  3. A dialog will open where you can select your pattern, the scale, line weight and color.

Notes

A small set of sample patterns are available in:

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

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

/usr/share/freecad/data/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 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)