|
Menu location |
---|
TechDraw → Symbols → Add Welding Information to Leaderline |
Workbenches |
TechDraw |
Default shortcut |
None |
Introduced in version |
0.19 |
See also |
TechDraw Leaderline |
The TechDraw WeldingSymbol tool adds welding specifications to an existing leader line.
Welding specification added to a 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:
See also: Autogenerated API documentation 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"
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.