TechDraw Hatching: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<translate>
<translate>
===Overview=== <!--T:10-->
<!--T:28-->
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).
{{Docnav|[[TechDraw DecorateLine|DecorateLine]]|[[TechDraw_Hatch|Hatch Area]]|[[TechDraw_Module|TechDraw]]|IconL=techdraw-linedecor.svg|IconC=Workbench_TechDraw.svg|IconR=techdraw-hatch.png}}

<!--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]]
}}

== Overview == <!--T:10-->

<!--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).


<!--T:11-->
<!--T:11-->
For either tool, select a Face,
For either tool, select a Face,

[[File:SelectFace.png|150px]]
</translate>
[[Image:SelectFace.png|150px]]
<translate>


<!--T:12-->
<!--T:12-->
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 Area == <!--T:13-->
Hatch Area uses Svg or bitmap bases tiles to cover the selected Face.
Hatch Area uses [[SVG|SVG]] or [[bitmap|bitmap]] bases tiles to cover the selected Face.


<!--T:14-->
<!--T:14-->
Svg tiles are typically 64x64 pixel images. Some examples are available on [https://github.com/FreeCAD/FreeCAD/tree/master/src/Mod/Draft/Resources/patterns GitHub].
[[SVG|SVG]] tiles are typically 64x64 pixel images. Some examples are available on [https://github.com/FreeCAD/FreeCAD/tree/master/src/Mod/Draft/Resources/patterns GitHub].


<!--T:15-->
<!--T:15-->
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.
Any [[bitmap|bitmap]] file can be used (png, jpeg, etc) as a fill. Results are best with many small repeated images rather than fewer larger images.


<!--T:16-->
<!--T:16-->
Default Hatch Area fills can be specified in [[TechDraw_Preferences|Preferences]].
Default Hatch Area 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:
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:


Line 51: Line 69:


<!--T:20-->
<!--T:20-->
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|Preferences]].
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|TechDraw Preferences]].


====PAT File Path==== <!--T:22-->
=== PAT File Path === <!--T:22-->


<!--T:23-->
<!--T:23-->
The FCPAT.pat file can be found in the following location.
The {{incode|FCPAT.pat}} file can be found in the following location.


<!--T:24-->
<!--T:24-->
* '''Windows''': C:\Program Files\FreeCAD\data\Mod\TechDraw\PAT\
* '''Windows''': {{incode|C:\Program Files\FreeCAD\data\Mod\TechDraw\PAT\}}
* '''Mac''': /Applications/FreeCAD.app/Contents/Mod/TechDraw/PAT/
* '''Mac''': {{incode|/Applications/FreeCAD.app/Contents/Mod/TechDraw/PAT/}}
* '''Linux''': /usr/share/freecad/Mod/TechDraw/PAT/
* '''Linux''': {{incode|/usr/share/freecad/Mod/TechDraw/PAT/}}
** ''freecad-daily PPA'': /usr/share/freecad-daily/Mod/TechDraw/PAT/
** ''freecad-daily PPA'': {{incode|/usr/share/freecad-daily/Mod/TechDraw/PAT/}}


<!--T:21-->
Back to [[TechDraw_Module|TechDraw]].


<!--T:29-->
{{Docnav|[[TechDraw DecorateLine|DecorateLine]]|[[TechDraw_Hatch|Hatch Area]]|[[TechDraw_Module|TechDraw]]|IconL=techdraw-linedecor.svg|IconC=Workbench_TechDraw.svg|IconR=techdraw-hatch.png}}

<!--T:26-->
{{TechDraw Tools navi}}


<!--T:9-->
<!--T:9-->
{{Userdocnavi}}
[[Category:User Documentation]]
[[Category:User Documentation]]

<!--T:27-->
[[Category:Command Reference]]

</translate>
</translate>
<languages/>

Revision as of 09:24, 15 July 2019

File:Techdraw-hatch.svg TechDraw Hatching

Menu location
TechDraw → Hatching
Workbenches
TechDraw
Default shortcut
None
Introduced in version
-
See also
TechDraw Templates, Draft SVG

Overview

TechDraw has two hatching tools: File:Techdraw-hatch.png Hatch Area (tile based) and File:Techdraw-geomhatch.png Geometric Hatch (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 Area

Hatch Area 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 Area fills can be specified in TechDraw Preferences.

Geometric Hatch

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:

; 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/