TechDraw Symbol: Difference between revisions

From FreeCAD Documentation
(See also TechDraw API)
({{TechDraw Tools navi}} and {{Userdocnavi}})
Line 37: Line 37:
==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.

{{TechDraw Tools navi}}
{{Userdocnavi}}
</translate>
</translate>
{{clear}}
{{clear}}

Revision as of 16:07, 24 November 2018

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

See also: TechDraw API 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)


Notes

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