TechDraw WeldSymbol/ru: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>


<div class="mw-translate-fuzzy">
{{Docnav/ru
{{Docnav/ru
|[[TechDraw_ShowAll/ru|Показать/скрыть невидимые грани]]
|[[TechDraw_ShowAll/ru|Показать/скрыть невидимые грани]]
Line 9: Line 10:
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
}}
}}
</div>


<div class="mw-translate-fuzzy">
{{GuiCommand/ru
{{GuiCommand/ru
|Name/ru=Добавить информацию о сварке в линию-выноску
|Name/ru=TechDraw_WeldingSymbol
|Name=TechDraw_WeldingSymbol
|Name=TechDraw_WeldSymbol
|MenuLocation=TechDraw → Добавить информацию о сварке в линию-выноску
|Icon=techdraw-weldsymbol.svg
|MenuLocation=TechDraw → Добавить информацию о сварке в указательную линию
|Workbenches=[[TechDraw_Workbench/ru|TechDraw]]
|Workbenches=[[TechDraw_Workbench/ru|TechDraw]]
|Version=0.19
|Version=0.19
|SeeAlso=[[TechDraw_LeaderLine/ru|Добавить Линию-выноску в Вид]]
|SeeAlso=[[TechDraw_LeaderLine/ru|Добавить Линию-выноску в Вид]]
}}
}}
</div>


<span id="Description"></span>
==Описание==
==Описание==


The WeldingSymbol tool adds welding specifications to an existing leader line.
The '''TechDraw WeldingSymbol''' tool adds welding specifications to an existing leader line.


[[Image:TechDraw_WeldingSymbol_example.png|330px]]
[[Image:TechDraw_WeldingSymbol_example.png|330px]]
{{Caption|Welding specification added to a leader line}}
{{Caption|Welding specification added to a leader line}}


<span id="Usage"></span>
==Применение==
==Применение==


# Select an existing [[TechDraw_LeaderLine|leaderline]].
# Select an existing [[TechDraw_LeaderLine|leaderline]].
# There are several ways to invoke the tool:
# Press the {{Button|[[Image:TechDraw_WeldSymbol.svg|16px]] Add Welding Information to Leaderline}} button.
#* Press the {{Button|[[Image:TechDraw_WeldSymbol.svg|16px]] [[TechDraw_WeldSymbol|Add Welding Information to Leaderline]]}} button.
# A task dialog will open. It allows to set individual welding symbols and accompanying text to be added to the leader line.
#* Select the {{MenuCommand|TechDraw → Symbols → [[Image:TechDraw_WeldSymbol.svg|16px]] Add Welding Information to Leaderline}} option from the menu.
# To exit the dialog and save changes, press the OK button. To exit the dialog without saving, press the Cancel button.
# A task panel opens.
# After the welding symbol is created, it can be edited by double clicking the Welding Symbol in the Tree.
# Specify the welding symbols and accompanying text to be added to the leader line.
# Press the {{Button|OK}} button.


==Notes==

* After creation a welding symbol can be edited by double clicking it in the [[Tree_view|Tree view]].
* There is a [[TechDraw_Preferences|preference parameter]] for the default welding symbol directory. You can add your own symbols in a personal directory.

<span id="Properties"></span>
==Свойства==
==Свойства==


Line 44: Line 57:
* {{PropertyData|Tail Text}}: Text to be shown at the end of the leader line.
* {{PropertyData|Tail Text}}: Text to be shown at the end of the leader line.


<span id="Tile"></span>
===Заголовок===
===Заголовок===


Line 56: Line 70:
* {{PropertyData|Right Text}}: Text to be displayed to the right of the SVG symbol.
* {{PropertyData|Right Text}}: Text to be displayed to the right of the SVG symbol.


<span id="Scripting"></span>
==Программирование==
==Программирование==


Line 85: Line 100:
}}
}}


==Svg Symbol Tiles==
==Svg Symbol Tiles==

* Individual symbols are formed by 64x64 pixel SVG files. Additional symbols can be created in an SVG program like [https://en.wikipedia.org/wiki/Inkscape Inkscape] using one of the symbols supplied by FreeCAD as template.
Individual symbols are formed by 64x64 pixel SVG files. Additional symbols can be created in an SVG program like [https://en.wikipedia.org/wiki/Inkscape Inkscape] using one of the symbols supplied by FreeCAD as a template.
[[File:Techdraw-WeldingSymbolLayoutArrow.svg|128px|left]]

[[File:Techdraw-WeldingSymbolLayoutOther.svg|128px|right]]
[[File:Techdraw-WeldingSymbolLayoutArrow.svg|128px]]
[[File:Techdraw-WeldingSymbolLayoutOther.svg|128px]]


<br/><br/>
* Individual symbols are formed by 64x64 (nominal) pixel SVG files. The tiles actually have a "border" of 4px. The border ensures that the leader line and symbol meet nicely.
* Individual symbols are formed by 64x64 (nominal) pixel SVG files. The tiles actually have a "border" of 4px. The border ensures that the leader line and symbol meet nicely.
* The symbol is drawn in black on a transparent background. The stroke width is 0.5mm.
* The symbol is drawn in black on a transparent background. The stroke width is 0.5mm.
* The leader passes below symbols for the arrow side and above symbols for the "other" side.
* The leader passes below symbols for the arrow side (see image on the left) and above symbols for the "other" side (see image on the right).
* There is no particular naming standard other than to append "Up/Down" to the arrow/other side symbols.
* There is no particular naming standard other than to append "Up/Down" to the arrow/other side symbols.

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

* You can edit your WeldingSymbol by double clicking on it in the tree view. Double clicking in the graphics area is not yet supported.
* There is a [[TechDraw_Preferences|preference parameter]] for the default welding symbol directory. You can add your own symbols in a personal directory.




<div class="mw-translate-fuzzy">
{{Docnav/ru
{{Docnav/ru
|[[TechDraw_ShowAll/ru|Показать/скрыть невидимые грани]]
|[[TechDraw_ShowAll/ru|Показать/скрыть невидимые грани]]
Line 110: Line 122:
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
}}
}}
</div>


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

Latest revision as of 15:54, 26 July 2023

Other languages:

Добавить информацию о сварке в линию-выноску

Системное название
TechDraw_WeldSymbol
Расположение в меню
TechDraw → Добавить информацию о сварке в линию-выноску
Верстаки
TechDraw
Быстрые клавиши
Нет
Представлено в версии
0.19
См. также
Добавить Линию-выноску в Вид

Описание

The TechDraw WeldingSymbol tool adds welding specifications to an existing leader line.

Welding specification added to a leader line

Применение

  1. Select an existing leaderline.
  2. There are several ways to invoke the tool:
  3. A task panel opens.
  4. Specify the welding symbols and accompanying text to be added to the leader line.
  5. Press the OK button.

Notes

  • After creation a welding symbol can be edited by double clicking it in the Tree view.
  • There is a preference parameter for the default welding symbol directory. You can add your own symbols in a personal directory.

Свойства

Weld Symbol

  • ДанныеAll Around: Shows the All Around symbol (circle) at the kink in the leader line.
  • ДанныеField Weld: Show the Field Weld symbol (flag) at the kink in the leader line.
  • ДанныеAlternate Weld: Offsets the lower symbol to indicate alternating welds.
  • ДанныеTail Text: Text to be shown at the end of the leader line.

Заголовок

Each individual symbol ("arrow side" and "other side") is represented by a "tile" object. A Welding Symbol has 1 or 2 tiles associated with it. Each of it has the following properties:

  • ДанныеTile Parent: The parent Weld Symbol
  • ДанныеTile Row: Row of the tile. 0 means above the line, -1 below the line. Note: If you change the row of one tile, you must also change the tile for the second side! This way you can flip the sides.
  • ДанныеTile Column: Column of the tile. At the moment it is always 0, therefore the property is not editable.
  • ДанныеSymbol File: Directory and file name of the symbol's SVG file.
  • ДанныеSymbol Included: Directory and file name of the actual included symbol SVG file. (It is a temporary directory.)
  • ДанныеLeft Text: Text to be displayed to the left of the SVG symbol.
  • ДанныеCenter Text: Text to be displayed above/below the SVG symbol.
  • ДанныеRight Text: Text to be displayed to the right of the SVG symbol.

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

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

The WeldingSymbol tool can be used in macros and from the Python console by using the following functions:

symbolName = "DrawWeldSymbol001")
symbolType = "TechDraw::DrawWeldSymbol"
App.activeDocument().addObject(symbolType, symbolName)
App.activeDocument().Page.addView(App.activeDocument().DrawWeldSymbol001)
App.activeDocument().DrawWeldSymbol001.Leader = myLeader
App.activeDocument().DrawWeldSymbol001.AllAround = True
App.activeDocument().DrawWeldSymbol001.FieldWeld = True
App.activeDocument().DrawWeldSymbol001.AlternatingWeld = True
App.activeDocument().DrawWeldSymbol001.TailText = "process text"

tileName = "DrawTileWeld001"
tileType = "TechDraw::DrawTileWeld"
App.activeDocument().addObject(tileType, tileName)
App.activeDocument().DrawTileWeld001.TileParent = App.activeDocument().DrawWeldSymbol001
App.activeDocument().DrawTileWeld001.TileRow = 0
App.activeDocument().DrawTileWeld001.TileColumn = 0
App.activeDocument().DrawTileWeld001.SymbolFile = fullPathToMySvgFile
App.activeDocument().DrawTileWeld001.LeftText = "left text"
App.activeDocument().DrawTileWeld001.RightText = "right text"
App.activeDocument().DrawTileWeld001.CenterText = "center text"

Svg Symbol Tiles

Individual symbols are formed by 64x64 pixel SVG files. Additional symbols can be created in an SVG program like Inkscape using one of the symbols supplied by FreeCAD as a template.

  • Individual symbols are formed by 64x64 (nominal) pixel SVG files. The tiles actually have a "border" of 4px. The border ensures that the leader line and symbol meet nicely.
  • The symbol is drawn in black on a transparent background. The stroke width is 0.5mm.
  • The leader passes below symbols for the arrow side (see image on the left) and above symbols for the "other" side (see image on the right).
  • There is no particular naming standard other than to append "Up/Down" to the arrow/other side symbols.