TechDraw Symbol: Difference between revisions

From FreeCAD Documentation
({{TechDraw Tools navi}} and {{Userdocnavi}})
(Vertical GuiCommand; removed empty parameter; see also TechDraw Templates, Draft SVG)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{GuiCommand
{{GuiCommand|Name=TechDraw Symbol|Workbenches=[[TechDraw Module|TechDraw]]|MenuLocation=TechDraw → Symbol|Shortcut=|SeeAlso=}}
|Name=TechDraw Symbol
|MenuLocation=TechDraw → Symbol
|Workbenches=[[TechDraw Module|TechDraw]]
|SeeAlso=[[TechDraw Templates]], [[Draft SVG]]
}}


==Description== <!--T:2-->
==Description== <!--T:2-->

Revision as of 17:56, 24 November 2018

TechDraw Symbol

Menu location
TechDraw → Symbol
Workbenches
TechDraw
Default shortcut
None
Introduced in version
-
See also
TechDraw Templates, Draft SVG

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.