TechDraw Hatch/ro: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
{{Docnav
|[[TechDraw_StackDown|StackDown]]
|[[TechDraw_ExportPageDXF|Export Page as DXF]]
|[[TechDraw_GeometricHatch|Apply Geometric Hatch to Face]]
|[[TechDraw_GeometricHatch|GeometricHatch]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=TechDraw_ExportPageDXF.svg
|IconL=TechDraw_StackDown.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_GeometricHatch.svg
|IconR=TechDraw_GeometricHatch.svg
|IconC=Workbench_TechDraw.svg
}}
}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand|Name=TechDraw Hatch|Workbenches=[[TechDraw Module|TechDraw]]|MenuLocation=TechDraw → Hatch|Shortcut=|SeeAlso=[[TechDraw_Hatching|TechDraw Hatching]]}}
{{GuiCommand|Name=TechDraw Hatch|Workbenches=[[TechDraw_Workbench|TechDraw]]|MenuLocation=TechDraw → Hatch|Shortcut=|SeeAlso=[[TechDraw_Hatching|TechDraw Hatching]]}}
</div>
</div>


<span id="Description"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==Descriere==
==Descriere==
Line 18: Line 20:
</div>
</div>


The Hatch tool fills a closed region in a View with a hatch pattern, which can be [[SVG|SVG]] or [[bitmap|bitmap]] files. In contrary the [[Image:TechDraw_GeomHatch.svg|24px]] [[TechDraw_GeometricHatch|Geometric Hatch]] tool uses a specific PAT pattern file, see [[TechDraw_Hatching|Hatching]] for details.
The '''TechDraw Hatch''' tool fills a closed region in a View with a tiled [[SVG|SVG]] or bitmap ({{Version|0.21}}) based hatch pattern. Alternatively the [[Image:TechDraw_GeometricHatch.svg|16px]] [[TechDraw_GeometricHatch|TechDraw GeometricHatch]] tool uses PAT based hatch patterns. See [[TechDraw_Hatching|Hatching]] for details.


[[Image:TechDraw_Hatch_example.png]]
[[Image:TechDraw_Hatch_example.png|300px]]


{{Caption|SVG hatch pattern on a face}}
{{Caption|SVG hatch pattern on a face}}


<span id="Usage"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==Cum se folosește==
==Cum se folosește==
Line 31: Line 34:
</div>
</div>


# Select an closed region in a View. The region will turn green.
# Select a closed region in a View.
# There are several ways to invoke the tool:
# Press the {{Button|[[Image:TechDraw_Hatch.svg|16px]] [[TechDraw_Hatch|Hatch a Face using Image File]]}} button
# You may need to press {{Button| [[Image:Std_Refresh.svg|16px]] [[Std_Refresh|Refresh]]}} and/or {{Button|[[Image:TechDraw RedrawPage.svg|16px]] [[TechDraw_RedrawPage|Redraw Page]]}}.
#* Press the {{Button|[[Image:TechDraw_Hatch.svg|16px]] [[TechDraw_Hatch|TechDraw Hatch]]}} button.
#* Select the {{MenuCommand|TechDraw → Hatching → [[Image:TechDraw_Hatch.svg|16px]] Hatch a Face using Image File}} option from the menu.
# The {{MenuCommand|Apply Hatch to Face}} task panel opens.
# Optionally change the {{MenuCommand|Pattern File}}.
# Optionally change the {{MenuCommand|Pattern Scale}} and the {{MenuCommand|Line Color}}. These settings are ignored for bitmap patterns.
# Press the {{Button|OK}} button.


<span id="Notes"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==Note==
==Note==
Line 41: Line 50:
</div>
</div>


* For a solid color fill select {{FileName|solid.svg}} as the '''Pattern File'''.
* Hatching objects are vulnerable to "[[Topological naming problem|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 the "[[Topological_naming_problem|topological naming problem]]". See [[TechDraw_LengthDimension|TechDraw LengthDimension]] for more information. It is recommended that hatching be one of the last steps in your drawing process.
* Note that [[SVG|SVG]] hatch patterns are not included when a drawing page is saved as an [[SVG|SVG]] file.
* Sample [[SVG|SVG]] patterns are available locally in:

: {{Code|code=
Sample [[SVG|SVG]] patterns are available in
$INSTALL_DIR/data/Mod/TechDraw/Patterns

{{Code|code=
$INSTALL_DIR/Mod/Draft/Resources/patterns
}}
}}
: Where {{incode|$INSTALL_DIR}} is the directory where FreeCAD was installed, for example:

: {{Code|code=
where {{incode|$INSTALL_DIR}} is the directory where FreeCAD was installed, for example
/usr/share/freecad/data/Mod/TechDraw/Patterns

{{Code|code=
/usr/share/freecad/Mod/Draft/Resources/patterns
}}
}}
: They are also available on [https://github.com/FreeCAD/FreeCAD/tree/master/src/Mod/TechDraw/Patterns GitHub].


<span id="Properties"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==Proprietăți==
==Proprietăți==
Line 69: Line 76:
* {{PropertyView|Hatch Scale}}: Hatch pattern size modifier.
* {{PropertyView|Hatch Scale}}: Hatch pattern size modifier.


<span id="Scripting"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==Script==
==Script==
Line 74: Line 82:
</div>
</div>


{{Emphasis|See also:}} [[TechDraw API|TechDraw API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


The Hatch tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following functions:
A Hatch can be created with [[Macros|macros]] and from the [[Python|Python]] console by using the following functions:


{{Code|code=
{{Code|code=
hatch = FreeCAD.ActiveDocument.addObject('TechDraw::DrawHatch','Hatch')
hatch = FreeCAD.ActiveDocument.addObject("TechDraw::DrawHatch", "Hatch")
hatch.Source = (view1,["Face0"])
hatch.Source = (view1, ["Face0"])
hatch.HatchPattern = hatchFileSpec
hatch.HatchPattern = hatchFileSpec
rc = page.addView(hatch)
page.addView(hatch)
}}
}}




{{Docnav
{{Docnav
|[[TechDraw_StackDown|StackDown]]
|[[TechDraw_ExportPageDXF|Export Page as DXF]]
|[[TechDraw_GeometricHatch|Apply Geometric Hatch to Face]]
|[[TechDraw_GeometricHatch|GeometricHatch]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=TechDraw_ExportPageDXF.svg
|IconL=TechDraw_StackDown.svg
|IconR=TechDraw_GeometricHatch.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_GeometricHatch.svg
}}
}}


{{TechDraw Tools navi}}
{{TechDraw Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

{{Userdocnavi}}
{{clear}}
{{clear}}

Latest revision as of 08:15, 3 April 2024

TechDraw Hatch

Menu location
TechDraw → Hatch
Workbenches
TechDraw
Default shortcut
None
Introduced in version
-
See also
TechDraw Hatching

Descriere

Instrumentul de hașurarea/Hatch umple o regiune închisă în View cu un model de hașură/Hatch pattern. Modelele sunt creat ca fișiere SVG ori bitmap . Eșantion de modele SVG sunt disponibile la ".../Mod/Draft/Resources/patterns".

The TechDraw Hatch tool fills a closed region in a View with a tiled SVG or bitmap (introduced in version 0.21) based hatch pattern. Alternatively the TechDraw GeometricHatch tool uses PAT based hatch patterns. See Hatching for details.

SVG hatch pattern on a face

Cum se folosește

  1. Select an closed region in a View. The region will turn green.
  2. Press the Hatch button
  3. You may need to press recompute .
  1. Select a closed region in a View.
  2. There are several ways to invoke the tool:
    • Press the TechDraw Hatch button.
    • Select the TechDraw → Hatching → Hatch a Face using Image File option from the menu.
  3. The Apply Hatch to Face task panel opens.
  4. Optionally change the Pattern File.
  5. Optionally change the Pattern Scale and the Line Color. These settings are ignored for bitmap patterns.
  6. Press the OK button.

Note

  • Hașurarea este vulnerabilă la infama "topological naming problem". Cea mai bună practică este de a amâna hașurarea până când desenul este stabil.
  • Rețineți că modelele de hașură SVG nu sunt incluse atunci când o pagină de desen este salvată ca fișier Svg.
  • For a solid color fill select solid.svg as the Pattern File.
  • Hatching objects are vulnerable to the "topological naming problem". See TechDraw LengthDimension for more information. It is recommended that hatching be one of the last steps in your drawing process.
  • Sample SVG patterns are available locally in:
$INSTALL_DIR/data/Mod/TechDraw/Patterns
Where $INSTALL_DIR is the directory where FreeCAD was installed, for example:
/usr/share/freecad/data/Mod/TechDraw/Patterns
They are also available on GitHub.

Proprietăți

  • DateSource: Vederea și Fațeta care va prim modelul de hașură.
  • DateHatch Pattern: Calea de acces completă și numele fișierului spre un nume de fișier cu model SVG .
  • VizualizareHatch Color: Modelul de hașurare va fi afișat în această culaore.
  • VizualizareHatch Scale: Modificator de dimensiune a modelului de hașurae.
  • DateSource: The View and Face to receive the hatch pattern.
  • DateHatch Pattern: Full path and filename to an SVG pattern file.
  • VizualizareHatch Color: Hatch pattern will be displayed in this color.
  • VizualizareHatch Scale: Hatch pattern size modifier.

Script

Hașurarea poate fi adăugată la zonele din Views folosind Python.

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

A Hatch can be created with macros and from the Python console by using the following functions:

hatch = FreeCAD.ActiveDocument.addObject("TechDraw::DrawHatch", "Hatch")
hatch.Source = (view1, ["Face0"])
hatch.HatchPattern = hatchFileSpec
page.addView(hatch)