TechDraw Hatching: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
(V1.0 -> V0.21)
 
(6 intermediate revisions by the same user not shown)
Line 20: Line 20:
<!--T:25-->
<!--T:25-->
The TechDraw workbench includes two hatching tools:
The TechDraw workbench includes two hatching tools:
*[[Image:TechDraw_Hatch.svg|32px]] [[TechDraw_Hatch|TechDraw Hatch]] (based on tiled SVG images)
*[[Image:TechDraw_Hatch.svg|32px]] [[TechDraw_Hatch|TechDraw Hatch]] (based on tiled SVG or bitmap images)
*[[Image:TechDraw_GeometricHatch.svg|32px]] [[TechDraw_GeometricHatch|TechDraw GeometricHatch]] (line based)
*[[Image:TechDraw_GeometricHatch.svg|32px]] [[TechDraw_GeometricHatch|TechDraw GeometricHatch]] (line based)


Line 26: Line 26:


<!--T:13-->
<!--T:13-->
[[Image:TechDraw_Hatch.svg|16px]] [[TechDraw_Hatch|TechDraw Hatch]] uses tiled [[SVG|SVG]] images to cover the selected Face.
[[Image:TechDraw_Hatch.svg|16px]] [[TechDraw_Hatch|TechDraw Hatch]] uses tiled [[SVG|SVG]] or bitmap ({{Version|0.21}}) images to cover the selected Face. The origin of the tiling grid will match the geometric center of the face.


<!--T:14-->
<!--T:14-->
[[SVG|SVG]] tiles are typically '''64x64''' pixel images. All pattern files that come with FreeCAD are available on [https://github.com/FreeCAD/FreeCAD/tree/master/src/Mod/TechDraw/Patterns GitHub].
[[SVG|SVG]] tiles are typically '''64x64''' pixel images. All pattern files that come with FreeCAD are available on [https://github.com/FreeCAD/FreeCAD/tree/master/src/Mod/TechDraw/Patterns GitHub].

<!--T:35-->
Bitmap based patterns are displayed with a fixed resolution of 10 px/mm relative to the page.


<!--T:16-->
<!--T:16-->
The default hatch pattern file can be specified in the [[TechDraw_Preferences|TechDraw Preferences]].
The default hatch pattern file can be specified in the [[TechDraw_Preferences|TechDraw Preferences]].


=== Available patterns === <!--T:34-->
=== Available SVG patterns === <!--T:34-->


</translate>
</translate>
Line 68: Line 71:


<!--T:17-->
<!--T:17-->
[[Image:TechDraw_GeometricHatch.svg|16px]] [[TechDraw_GeometricHatch|TechDraw GeometricHatch]] 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:
[[Image:TechDraw_GeometricHatch.svg|16px]] [[TechDraw_GeometricHatch|TechDraw GeometricHatch]] 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:


</translate>
</translate>

Latest revision as of 20:14, 29 April 2023

Description

The TechDraw workbench includes two hatching tools:

Image based hatch

TechDraw Hatch uses tiled SVG or bitmap (introduced in version 0.21) images to cover the selected Face. The origin of the tiling grid will match the geometric center of the face.

SVG tiles are typically 64x64 pixel images. All pattern files that come with FreeCAD are available on GitHub.

Bitmap based patterns are displayed with a fixed resolution of 10 px/mm relative to the page.

The default hatch pattern file can be specified in the TechDraw Preferences.

Available SVG patterns

Geometric hatch

TechDraw GeometricHatch 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
*Diagonal5, 45 diagonal L, 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/