TechDraw WeldSymbol/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "{{GuiCommand/fr |Name=TechDraw WeldingSymbol |Name/fr=Symbole de soudure TechDraw |Icon=techdraw-weldsymbol.svg |MenuLocation=TechDraw → WeldingSymbol |Workbenches=TechDra...")
(Created page with "L'outil WeldingSymbol ajoute les spécifications de soudage à une ligne directrice existante.")
Line 21: Line 21:
==Description==
==Description==


The WeldingSymbol tool adds welding specifications to an existing leader line.
L'outil WeldingSymbol ajoute les spécifications de soudage à une ligne directrice existante.


[[Image:TechDraw_WeldingSymbol_sample.png]]
[[Image:TechDraw_WeldingSymbol_sample.png]]

Revision as of 07:30, 23 August 2019

Other languages:

File:Techdraw-weldsymbol.svg Symbole de soudure TechDraw

Emplacement du menu
TechDraw → WeldingSymbol
Ateliers
Atelier TechDraw
Raccourci par défaut
Aucun
Introduit dans la version
-
Voir aussi
Ajout d'une ligne à une vue TechDraw

Description

L'outil WeldingSymbol ajoute les spécifications de soudage à une ligne directrice existante.

File:TechDraw WeldingSymbol sample.png

Welding specification added to a leader line

How to use

  1. Select an existing File:Techdraw-mline.svg LeaderLine
  2. Press the File:Techdraw-weldsymbol.svg WeldingSymbol button
  3. A Task dialog will open. The dialog allows entry/selection of individual welding symbols and accompanying text to be added to the leader line.
  4. To exit the dialog and save changes, press the OK button.
  5. To exit the dialog without saving, press the Cancel button.
  6. After the welding symbol is created, it can be edited by double clicking the WeldingSymbol in the Tree.

Properties

  • DonnéesAllAround: Show the AllAround symbol (circle) at the kink in the leader line.
  • DonnéesFieldWeld: Show the FieldWeld symbol (flag) at the kink in the leader line.
  • DonnéesAlternateWeld: Offset the lower symbol to indicate alternating welds.
  • DonnéesTailText: 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 WeldingSymbol has 1 or 2 tiles associated with it.

  • DonnéesRow: 0 for above the line, -1 for below the line. Not intended for end users.
  • DonnéesColumn: not implemented.
  • DonnéesSymbolFile: Directory and file name of the svg file for the symbol.
  • DonnéesLeftText: Text to be displayed to the left of the svg symbol.
  • DonnéesCenterText: Text to be displayed above/below the svg symbol.
  • DonnéesRightText: Text to be displayed to the right of the svg symbol.

Scripting

See also: TechDraw API and FreeCAD Scripting Basics.

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 progam like Inkscape using one of the supplies symbols as a template.

Notes

  • This feature was added in v0.19
  • 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 preference parameter for the default welding symbol directory. You can add your own symbols in a personal directory.