GuiCommand: Name: TechDraw Symbol MenuLocation: TechDraw , TechDraw Views , Insert SVG Symbol Workbenches: TechDraw_Workbench SeeAlso: TechDraw_Templates, Draft_SVG
TechDraw Symbol
Description
The TechDraw Symbol tool inserts a Symbol object. A Symbol is a stripped down view that contains only a single SVG file complying with the svg-tiny specification (see TechDraw Templates).
A Symbol can be anything that helps annotate a drawing and that doesn\'t need to be further modified, it may however contain editable texts.
(v1.0)
: The TechDraw View tool can also create a Symbol.
![](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/TechDraw_SymbolSVG_sample.png)
Usage
- If there are multiple drawing pages in the document: optionally activate the desired page by selecting it in the Tree view.
- Select the TechDraw → TechDraw Views →
Insert SVG Symbol option from the menu.
- If there are multiple drawing pages in the document and you have not yet activated a page, the Page Chooser dialog box opens:
- Select the desired page.
- Press the OK button.
- A file browser opens.
- Select an SVG file.
- A symbol is inserted.
- Optionally change its Scale property to adjust its size.
Notes
- Scale Typefor Symbols is always set to Custom at creation. This is for convenience, since symbols are almost always scaled differently from the rest of the objects on the page.
Properties
See also: Property editor.
A Symbol, formally a {{Incode|TechDraw::DrawViewSymbol}} object, has the properties that are common to all View types. It also has the following additional properties:
Data
{{TitleProperty|Drawing view}}
-
Symbol|String|Hidden: The SVG code defining this symbol.
-
Editable Texts|StringList: Substitution values for the editable strings in this symbol.
-
Owner|Link: Feature to which this symbol is attached. (v1.0)
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
The Symbol tool can be used in macros and from the Python console by using the following functions:
sym = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewSymbol','TestSymbol')
rc = page.addView(anno)
f = open(unicode(symbolFileSpec,'utf-8'),'r')
svg = f.read()
f.close()
sym.Symbol = svg
rc = page.addView(sym)
{{TechDraw_Tools_navi}}
⏵ documentation index > TechDraw > TechDraw Symbol
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/TechDraw_Symbol.md