TechDraw GeometricHatch/ru: Difference between revisions
(Created page with "==Примечания==") |
(Updating to match new version of source page) |
||
(29 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Docnav/ru |
{{Docnav/ru |
||
|[[TechDraw_Hatch/ru|Штриховать грань |
|[[TechDraw_Hatch/ru|Штриховать грань, используя файл изображения]] |
||
|[[TechDraw_Symbol/ru|Вставить |
|[[TechDraw_Symbol/ru|Вставить SVG знак]] |
||
|[[ |
|[[TechDraw_Workbench/ru|Верстак "TechDraw"]] |
||
|IconL=TechDraw_Hatch.svg |
|IconL=TechDraw_Hatch.svg |
||
⚫ | |||
|IconR=TechDraw_Symbol.svg |
|IconR=TechDraw_Symbol.svg |
||
⚫ | |||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand/ru |
{{GuiCommand/ru |
||
|Name/ru=Применить геометрическую штриховку к грани |
|||
|Name=TechDraw GeometricHatch |
|||
|Name=TechDraw_GeometricHatch |
|||
|Name/ru=TechDraw GeometricHatch |
|||
|MenuLocation=TechDraw → Применить геометрическую штриховку грани |
|MenuLocation=TechDraw → Применить геометрическую штриховку к грани |
||
|Workbenches=[[ |
|Workbenches=[[TechDraw_Workbench/ru|TechDraw]] |
||
|SeeAlso=[[TechDraw_Hatch/ru| |
|SeeAlso=[[TechDraw_Hatch/ru|Штриховать грань, используя файл изображения]], [[TechDraw_Hatching/ru|Штриховка]] |
||
}} |
}} |
||
</div> |
|||
<span id="Description"></span> |
|||
==Описание== |
==Описание== |
||
<div class="mw-translate-fuzzy"> |
|||
The GeometricHatch tool fills a closed region in a View with a pattern based on an AutoDesk PAT hatching specification. '''Alternatively''', the [[TechDraw_Hatch|Hatch]] tool uses an [[SVG|SVG]] or [[bitmap|bitmap]] file as hatch pattern, see [[TechDraw_Hatching|Hatching]] for details. |
|||
Инструмент GeometricHatch заполняет замкнутый регион внутри вида шаблоном, базирующимся на спецификации AutoDesk PAT hatching. '''В качестве альтернативы''', инструмент [[TechDraw_Hatch/ru|Hatch]] использует качестве рисунка штриховки файл в формате [[SVG/ru|SVG]] или [[bitmap/ru|растровый]], подробности см. в [[TechDraw_Hatching/ru|Hatching]]. |
|||
</div> |
|||
[[Image:TechDraw_GeomHatch_example.png|300px]] |
[[Image:TechDraw_GeomHatch_example.png|300px]] |
||
{{Caption|Геометрический узор штриховки на грани}} |
|||
{{Caption|Geometric hatch pattern on a face}} |
|||
<span id="Usage"></span> |
|||
==Использование== |
|||
==Применение== |
|||
# Select |
# Select a closed region in a View. |
||
# There are several ways to invoke the tool: |
|||
# Press the {{Button|[[Image:TechDraw_GeometricHatch.svg|16px]] [[TechDraw_GeometricHatch| |
#* Press the {{Button|[[Image:TechDraw_GeometricHatch.svg|16px]] [[TechDraw_GeometricHatch|TechDraw GeometricHatch]]}} button. |
||
# a dialog will open where you may select your pattern, a scale for the pattern and a line weight. |
|||
#* Select the {{MenuCommand|TechDraw → Hatching → [[Image:TechDraw_GeometricHatch.svg|16px]] Apply Geometric Hatch to Face}} option from the menu. |
|||
# 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]]}} to get the pattern to update. |
|||
# The {{MenuCommand|Apply Geometric Hatch to Face}} task panel opens. |
|||
# Optionally change the {{MenuCommand|Pattern File}}, the {{MenuCommand|Pattern Name}}, the {{MenuCommand|Pattern Scale}}, the {{MenuCommand|Line Weight}} and the {{MenuCommand|Line Color}}. |
|||
# Press the {{Button|OK}} button. |
|||
<span id="Notes"></span> |
|||
==Примечания== |
==Примечания== |
||
* For a solid color fill use [[TechDraw_Hatch|TechDraw Hatch]] instead and select {{FileName|solid.svg}} as the '''Pattern File'''. |
|||
* Hatching objects are vulnerable to "[[ |
* 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. |
||
* Unlike the [[TechDraw_Hatch|Hatch ]] tool, geometric hatch patterns are included when a drawing page is saved as an [[SVG|SVG]] file. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}} |
}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}} |
}} |
||
= |
<span id="Properties"></span> |
||
==Свойства== |
|||
* {{PropertyData|Source}}: The View and Face to receive the hatch pattern. |
* {{PropertyData|Source}}: The View and Face to receive the hatch pattern. |
||
Line 57: | Line 65: | ||
* {{PropertyView|Color Pattern}}: The color for the pattern lines. |
* {{PropertyView|Color Pattern}}: The color for the pattern lines. |
||
= |
<span id="Scripting"></span> |
||
==Программирование== |
|||
{{Emphasis| |
{{Emphasis|См. так же:}} [[TechDraw_API/ru|TechDraw API]] и [[FreeCAD_Scripting_Basics/ru|Основы составления скриптов FreeCAD]]. |
||
A GeometricHatch 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( |
hatch = FreeCAD.ActiveDocument.addObject("TechDraw::DrawGeomHatch", "GeomHatch") |
||
hatch.Source = (view1,["Face0"]) |
hatch.Source = (view1, ["Face0"]) |
||
hatch.FilePattern = "path/to/myPATfile.pat" |
hatch.FilePattern = "path/to/myPATfile.pat" |
||
hatch.NamePattern = "Diamond" |
hatch.NamePattern = "Diamond" |
||
page.addView(hatch) |
|||
}} |
}} |
||
It is also possible to use TechDraw's geometric hatch engine to produce a compound object in the 3D space. One must take care that the base face lies on the XY plane, as the algorithm is not tailored yet for other cases: |
|||
{{Code|code= |
|||
⚫ | |||
import TechDraw |
|||
|[[TechDraw_Hatch|Hatch Face using Image File]] |
|||
face = Part.makePlane(10, 10) |
|||
⚫ | |||
patfile = "path/to/myPATfile.pat" |
|||
|[[TechDraw_Module|TechDraw]] |
|||
pattern = "Diamond" |
|||
scale = 10 |
|||
hatch = TechDraw.makeGeomHatch(face, scale, pattern, patfile) |
|||
Part.show(hatch) |
|||
}} |
|||
⚫ | |||
|[[TechDraw_Hatch/ru|Штриховать грань, используя файл изображения]] |
|||
⚫ | |||
|[[TechDraw_Workbench/ru|Верстак "TechDraw"]] |
|||
|IconL=TechDraw_Hatch.svg |
|IconL=TechDraw_Hatch.svg |
||
⚫ | |||
|IconR=TechDraw_Symbol.svg |
|IconR=TechDraw_Symbol.svg |
||
⚫ | |||
}} |
}} |
||
{{TechDraw Tools navi{{#translation:}}}} |
{{TechDraw Tools navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
{{Userdocnavi{{#translation:}}}} |
||
{{clear}} |
Latest revision as of 07:58, 1 August 2023
Применить геометрическую штриховку к грани |
Системное название |
---|
TechDraw_GeometricHatch |
Расположение в меню |
TechDraw → Применить геометрическую штриховку к грани |
Верстаки |
TechDraw |
Быстрые клавиши |
Нет |
Представлено в версии |
- |
См. также |
Штриховать грань, используя файл изображения, Штриховка |
Описание
Инструмент GeometricHatch заполняет замкнутый регион внутри вида шаблоном, базирующимся на спецификации AutoDesk PAT hatching. В качестве альтернативы, инструмент Hatch использует качестве рисунка штриховки файл в формате SVG или растровый, подробности см. в Hatching.
Геометрический узор штриховки на грани
Применение
- Select a closed region in a View.
- There are several ways to invoke the tool:
- Press the TechDraw GeometricHatch button.
- Select the TechDraw → Hatching → Apply Geometric Hatch to Face option from the menu.
- The Apply Geometric Hatch to Face task panel opens.
- Optionally change the Pattern File, the Pattern Name, the Pattern Scale, the Line Weight and the Line Color.
- Press the OK button.
Примечания
- For a solid color fill use TechDraw Hatch instead and 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.
- A small set of sample patterns are available in:
$INSTALL_DIR/data/Mod/TechDraw/PAT/FCPAT.pat
- Where
$INSTALL_DIR
is the directory where FreeCAD was installed, for example: /usr/share/freecad/data/Mod/TechDraw/PAT/FCPAT.pat
Свойства
- ДанныеSource: The View and Face to receive the hatch pattern.
- ДанныеFile Pattern: The location of the PAT file to use.
- ДанныеName Pattern: The name of the PAT specification within File Pattern.
- ДанныеScale Pattern: The scale to be applied to the pattern (must be > 0.0).
- ВидWeight Pattern: The thickness of the pattern lines.
- ВидColor Pattern: The color for the pattern lines.
Программирование
См. так же: TechDraw API и Основы составления скриптов FreeCAD.
A GeometricHatch can be created with macros and from the Python console by using the following functions:
hatch = FreeCAD.ActiveDocument.addObject("TechDraw::DrawGeomHatch", "GeomHatch")
hatch.Source = (view1, ["Face0"])
hatch.FilePattern = "path/to/myPATfile.pat"
hatch.NamePattern = "Diamond"
page.addView(hatch)
It is also possible to use TechDraw's geometric hatch engine to produce a compound object in the 3D space. One must take care that the base face lies on the XY plane, as the algorithm is not tailored yet for other cases:
import TechDraw
face = Part.makePlane(10, 10)
patfile = "path/to/myPATfile.pat"
pattern = "Diamond"
scale = 10
hatch = TechDraw.makeGeomHatch(face, scale, pattern, patfile)
Part.show(hatch)
TechDraw
- Pages: Insert Default Page, Insert Page using Template, Redraw Page, Print All Pages
- Views: Insert View, Insert Active View, Insert Projection Group, Insert Section View, Insert Complex Section View, Insert Detail View, Insert Draft Workbench Object, Insert Arch Workbench Object, Insert Spreadsheet View, Insert Clip Group, Share View, Project Shape
- Stacking: Move view to top of stack, Move view to bottom of stack, Move view up one level, Move view down one level
- Decorations: Hatch Face using Image File, Apply Geometric Hatch to Face, Insert SVG Symbol, Insert Bitmap Image, Turn View Frames On/Off
- Dimensions: Insert Length Dimension, Insert Horizontal Dimension, Insert Vertical Dimension, Insert Radius Dimension, Insert Diameter Dimension, Insert Angle Dimension, Insert 3-Point Angle Dimension, Insert Horizontal Extent Dimension, Insert Vertical Extent Dimension, Link Dimension to 3D Geometry, Insert Balloon Annotation, Insert Axonometric Length Dimension, Insert Landmark Dimension, Adjust Geometric References of Dimension
- Annotations: Insert Annotation, Add Leaderline to View, Insert Rich Text Annotation, Add Cosmetic Vertex, Add Midpoint Vertices, Add Quadrant Vertices, Add Centerline to Faces, Add Centerline between 2 Lines, Add Centerline between 2 Points, Add Cosmetic Line Through 2 points, Add Cosmetic Circle, Change Appearance of Lines, Show/Hide Invisible Edges, Add Welding Information to Leader, Add Surface Finish Symbol, Add Hole or Shaft Tolerances
- Extensions:
- Attributes and modifications: Select Line Attributes, Cascade Spacing and Delta Distance, Change Line Attributes, Extend Line, Shorten Line, Lock/Unlock View, Position Section View, Position Horizontal Chain Dimensions, Position Vertical Chain Dimensions, Position Oblique Chain Dimensions, Cascade Horizontal Dimensions, Cascade Vertical Dimensions, Cascade Oblique Dimensions, Calculate the area of selected faces, Calculate the arc length of selected edges, Customize format label
- Centerlines and threading: Add Circle Centerlines, Add Bolt Circle Centerlines, Add Cosmetic Thread Hole Side View, Add Cosmetic Thread Hole Bottom View, Add Cosmetic Thread Bolt Side View, Add Cosmetic Thread Bolt Bottom View, Add Cosmetic Intersection Vertex(es), Add an offset vertex, Add Cosmetic Circle, Add Cosmetic Arc, Add Cosmetic Circle 3 Points, Add Cosmetic Parallel Line, Add Cosmetic Perpendicular Line
- Dimensions: Create Horizontal Chain Dimensions, Create Vertical Chain Dimensions, Create Oblique Chain Dimensions, Create Horizontal Coordinate Dimensions, Create Vertical Coordinate Dimensions, Create Oblique Coordinate Dimensions, Create Horizontal Chamfer Dimension, Create Vertical Chamfer Dimension, Create Arc Length Dimension, Insert '⌀' Prefix, Insert '〼' Prefix, Remove Prefix, Increase Decimal Places, Decrease Decimal Places
- Export: Export Page as SVG, Export Page as DXF
- Additional: Line Groups, Templates, Hatching, Geometric dimensioning and tolerancing, Preferences
Документация пользователя
- Начинающим
- Установка: Загрузка, Windows, Linux, Mac, Дополнительных компонентов, Docker, AppImage, Ubuntu Snap
- Базовая: О FreeCAD, Интерфейс, Навигация мыши, Методы выделения, Имя объекта, Настройки, Верстаки, Структура документа, Свойства, Помоги FreeCAD, Пожертвования
- Помощь: Учебники, Видео учебники
- Верстаки: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework