TechDraw Hatching: Difference between revisions

From FreeCAD Documentation
m ((Vertical Docnav))
(update)
Line 3: Line 3:
<!--T:28-->
<!--T:28-->
{{Docnav
{{Docnav
|[[TechDraw_Templates|Templates]]
|[[TechDraw_SaveDXF|Save DXF]]
|[[TechDraw_Preferences|Preferences]]
|[[TechDraw_Hatch|Hatch Area]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=techdraw-saveDXF.svg
|IconL=
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
|IconR=techdraw-hatch.png
|IconR=
}}

<!--T:30-->
{{GuiCommand
|Name=TechDraw Hatching
|Icon=techdraw-hatch.svg
|MenuLocation=TechDraw → Hatching
|Workbenches=[[TechDraw Module|TechDraw]]
|SeeAlso=[[TechDraw Templates|TechDraw Templates]], [[Draft SVG|Draft SVG]]
}}
}}


Line 23: Line 14:


<!--T:25-->
<!--T:25-->
TechDraw has two hatching tools: [[File:techdraw-hatch.png|32px]] [[TechDraw_Hatch|Hatch Area]] (tile based) and [[File:techdraw-geomhatch.png|32px]] [[TechDraw_GeomHatch|Geometric Hatch]] (line based).
TechDraw has two hatching tools: [[File:TechDraw_Hatch.svg|32px]] [[TechDraw_Hatch|Hatch Face using Image File]] (tile based) and [[File:TechDraw_GeometricHatch.svg|32px]] [[TechDraw_GeometricHatch|Apply Geometric Hatch to Face]] (line based).


<!--T:11-->
<!--T:11-->
Line 35: Line 26:
then press the appropriate icon. The face will be hatched initially using default values. Edit the hatch properties to get the desired pattern.
then press the appropriate icon. The face will be hatched initially using default values. Edit the hatch properties to get the desired pattern.


== Hatch Area == <!--T:13-->
== Hatch Face using Image File == <!--T:13-->
Hatch Area uses [[SVG|SVG]] or [[bitmap|bitmap]] bases tiles to cover the selected Face.
Hatch Face using Image File uses [[SVG|SVG]] or [[bitmap|bitmap]] bases tiles to cover the selected Face.


<!--T:14-->
<!--T:14-->
Line 45: Line 36:


<!--T:16-->
<!--T:16-->
Default Hatch Area fills can be specified in [[TechDraw Preferences|TechDraw Preferences]].
Default Hatch fills can be specified in [[TechDraw Preferences|TechDraw Preferences]].


== Geometric Hatch == <!--T:17-->
== Geometric Hatch == <!--T:17-->
Geometric Hatch forms a pattern of lines based on a specification read from a file. This file is generally compatible with the widely used AutoDesk® PAT format. A small selection of patterns is included in the FCPAT.pat file:
Apply Geometric Hatch to Face forms a pattern of lines based on a specification read from a file. This file is generally compatible with the widely used AutoDesk® PAT format. A small selection of patterns is included in the FCPAT.pat file:


<!--T:18-->
<!--T:18-->
Line 92: Line 83:
<!--T:29-->
<!--T:29-->
{{Docnav
{{Docnav
|[[TechDraw_Templates|Templates]]
|[[TechDraw_SaveDXF|Save DXF]]
|[[TechDraw_Preferences|Preferences]]
|[[TechDraw_Hatch|Hatch Area]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=techdraw-saveDXF.svg
|IconL=
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
|IconR=techdraw-hatch.png
|IconR=
}}
}}



Revision as of 21:33, 2 February 2020

Overview

TechDraw has two hatching tools: Hatch Face using Image File (tile based) and Apply Geometric Hatch to Face (line based).

For either tool, select a Face,

then press the appropriate icon. The face will be hatched initially using default values. Edit the hatch properties to get the desired pattern.

Hatch Face using Image File

Hatch Face using Image File uses SVG or bitmap bases tiles to cover the selected Face.

SVG tiles are typically 64x64 pixel images. Some examples are available on GitHub.

Any bitmap file can be used (png, jpeg, etc) as a fill. Results are best with many small repeated images rather than fewer larger images.

Default Hatch fills can be specified in TechDraw Preferences.

Geometric Hatch

Apply Geometric Hatch to Face forms a pattern of lines based on a specification read from a file. This file is generally compatible with the widely used AutoDesk® PAT format. A small selection of patterns is included in the FCPAT.pat file:

; standard PAT patterns

*Diamond, 45 diagonals L & R, Solid, 1.0 mm separation
45,0,0,0,1.0
-45,0,0,0,1.0
*Diamond2, 45 diagonals L & R, Solid, 2.0 mm separation
45,0,0,0,2.0
-45,0,0,0,2.0
*Diamond4, 45 diagonals L & R, Solid, 4.0 mm separation
45,0,0,0,4.0
-45,0,0,0,4.0
*Diagonal4, 45 diagonal R, Solid, 4.0 mm separation
45,0,0,0,4.0
*Square, square grid, Solid, 5.0 mm separation 
90,1,1,0,5.0
0,0,0,1,5.0
*Horizontal5, horizontal lines, Solid 5.0 separation
0,0,0,0,5.0
*Vertical5, vertical lines, Solid, 5.0 separation
90,0,0,0,5.0

You can add your own patterns if you have write permission to FCPAT.pat, or you can create your own *.pat file and point to it in TechDraw Preferences.

PAT File Path

The FCPAT.pat file can be found in the following location.

  • Windows: C:\Program Files\FreeCAD\data\Mod\TechDraw\PAT\
  • Mac: /Applications/FreeCAD.app/Contents/Mod/TechDraw/PAT/
  • Linux: /usr/share/freecad/Mod/TechDraw/PAT/
    • freecad-daily PPA: /usr/share/freecad-daily/Mod/TechDraw/PAT/