TechDraw Hatch/ru: Difference between revisions

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

{{Docnav
<div class="mw-translate-fuzzy">
|[[TechDraw_ExportPageDXF|Export Page as DXF]]
{{Docnav/ru
|[[TechDraw_GeometricHatch|Apply Geometric Hatch to Face]]
|[[TechDraw_ExportPageDXF/ru|Экспорт листа в DXF]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_GeometricHatch/ru|Применить геометрическую штриховку к грани]]
|[[TechDraw_Workbench/ru|Верстак "TechDraw"]]
|IconL=TechDraw_ExportPageDXF.svg
|IconL=TechDraw_ExportPageDXF.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_GeometricHatch.svg
|IconR=TechDraw_GeometricHatch.svg
|IconC=Workbench_TechDraw.svg
}}
}}
</div>


<div class="mw-translate-fuzzy">
{{GuiCommand/ru
{{GuiCommand/ru
|Name=TechDraw Hatch
|Name/ru=Штриховка
|Name/ru=TechDraw Hatch
|Name=TechDraw_Hatch
|MenuLocation=TechDraw → Штриховать грань, используя файл изображения
|Workbenches=[[TechDraw Module/ru|TechDraw]]
|Workbenches=[[TechDraw_Workbench/ru|TechDraw]]
|MenuLocation=TechDraw → Hatch
|SeeAlso=[[TechDraw_GeometricHatch/ru|Применить геометрическую штриховку к грани]], [[TechDraw_Hatching/ru|Штриховка]]
|Shortcut=
|SeeAlso=
}}
}}
</div>


==Описание==
==Description==


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 [[TechDraw_GeometricHatch|Geometric Hatch]] tool uses a specific PAT pattern file, see [[TechDraw_Hatching|Hatching]] for details.
The [[Image:TechDraw_Hatch.svg|24px]] '''TechDraw Hatch''' tool fills a closed region in a View with an [[SVG|SVG]] 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}}


==Применение==
==Usage==


# 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 → [[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}}, the {{MenuCommand|Pattern Scale}} and the {{MenuCommand|Line Color}}.
# Press the {{Button|OK}} button.


==Примечания==
== Notes ==

* 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.
* 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 in


* 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.
* Sample [[SVG|SVG]] patterns are available locally in
{{Code|code=
{{Code|code=
$INSTALL_DIR/Mod/Draft/Resources/patterns
$INSTALL_DIR/data/Mod/TechDraw/Patterns
}}
}}

where {{incode|$INSTALL_DIR}} is the directory where FreeCAD was installed, for example
where {{incode|$INSTALL_DIR}} is the directory where FreeCAD was installed, for example

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


==Свойства==
==Properties==


* {{PropertyData|Source}}: The View and Face to receive the hatch pattern.
* {{PropertyData|Source}}: The View and Face to receive the hatch pattern.
Line 58: Line 58:
* {{PropertyView|Hatch Scale}}: Hatch pattern size modifier.
* {{PropertyView|Hatch Scale}}: Hatch pattern size modifier.


==Программирование==
==Scripting==


{{Emphasis|See also:}} [[TechDraw API|TechDraw API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
{{Emphasis|См. так же:}} [[TechDraw_API/ru|TechDraw API]] и [[FreeCAD_Scripting_Basics/ru|Основы составления скриптов FreeCAD]].


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


{{Code|code=
{{Code|code=
Line 72: Line 72:




<div class="mw-translate-fuzzy">
{{Docnav
{{Docnav/ru
|[[TechDraw_ExportPageDXF|Export Page as DXF]]
|[[TechDraw_ExportPageDXF/ru|Экспорт листа в DXF]]
|[[TechDraw_GeometricHatch|Apply Geometric Hatch to Face]]
|[[TechDraw_GeometricHatch/ru|Применить геометрическую штриховку к грани]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Workbench/ru|Верстак "TechDraw"]]
|IconL=TechDraw_ExportPageDXF.svg
|IconL=TechDraw_ExportPageDXF.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_GeometricHatch.svg
|IconR=TechDraw_GeometricHatch.svg
|IconC=Workbench_TechDraw.svg
}}
}}
</div>


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

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

Revision as of 09:53, 14 March 2022

Other languages:

Штриховка

Системное название
TechDraw_Hatch
Расположение в меню
TechDraw → Штриховать грань, используя файл изображения
Верстаки
TechDraw
Быстрые клавиши
Нет
Представлено в версии
-
См. также
Применить геометрическую штриховку к грани, Штриховка

Описание

The TechDraw Hatch tool fills a closed region in a View with an SVG based hatch pattern. Alternatively the TechDraw GeometricHatch tool uses PAT based hatch patterns. See Hatching for details.

SVG hatch pattern on a face

Применение

  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 → 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, the Pattern Scale and the Line Color.
  5. Press the OK button.

Примечания

$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

and also on GitHub.

Свойства

  • ДанныеSource: The View and Face to receive the hatch pattern.
  • ДанныеHatch Pattern: Full path and filename to an SVG pattern file.
  • ВидHatch Color: Hatch pattern will be displayed in this color.
  • ВидHatch Scale: Hatch pattern size modifier.

Программирование

См. так же: TechDraw API и Основы составления скриптов FreeCAD.

The Hatch tool can be used in 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
rc = page.addView(hatch)