TechDraw Symbol: Difference between revisions

From FreeCAD Documentation
mNo edit summary
(Marked this version for translation)
Line 31: Line 31:
<translate>
<translate>


==Notes==<!--T:7-->
==Notes== <!--T:7-->
* Symbol appear larger than expected. Use the Scale property to adjust the size.
* Symbol appear larger than expected. Use the Scale property to adjust the size.
</translate>
</translate>

Revision as of 21:37, 18 October 2016

TechDraw Symbol

Menu location
TechDraw → Symbol
Workbenches
TechDraw
Default shortcut
None
Introduced in version
-
See also
None

Description

The Symbol tool inserts an SVG file into the page as a view

How to use

  1. Press the Symbol button
  2. A File Save dialog will open. Select a location and file name.

Options

None.

Properties

  • n/a

Scripting

SVG files can be inserted into a drawing page using Python.

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)


Notes

  • Symbol appear larger than expected. Use the Scale property to adjust the size.