TechDraw Symbol: Difference between revisions

From FreeCAD Documentation
(Compass rose added to the drawing page; this symbol is available by installing the symbols_library addon with the Addon Manager)
No edit summary
Line 7: Line 7:
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=TechDraw_GeometricHatch.svg
|IconL=TechDraw_GeometricHatch.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_Image.svg
|IconR=TechDraw_Image.svg
|IconC=Workbench_TechDraw.svg
}}
}}


Line 15: Line 15:
|Name=TechDraw Symbol
|Name=TechDraw Symbol
|MenuLocation=TechDraw → Insert SVG Symbol
|MenuLocation=TechDraw → Insert SVG Symbol
|Workbenches=[[TechDraw Module|TechDraw]]
|Workbenches=[[TechDraw_Module|TechDraw]]
|SeeAlso=[[TechDraw Templates|TechDraw Templates]], [[Draft SVG|Draft SVG]]
|SeeAlso=[[TechDraw_Templates|TechDraw Templates]], [[Draft_SVG|Draft SVG]]
}}
}}


Line 49: Line 49:


<!--T:12-->
<!--T:12-->
{{Emphasis|See also:}} [[TechDraw API|TechDraw API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
{{Emphasis|See also:}} [[TechDraw_API|TechDraw API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


<!--T:13-->
<!--T:13-->
The Symbol tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following functions:
The Symbol tool can be used in [[Macros|macros]] and from the [[Python|Python]] console by using the following functions:


</translate>
</translate>
Line 73: Line 73:
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=TechDraw_GeometricHatch.svg
|IconL=TechDraw_GeometricHatch.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_Image.svg
|IconR=TechDraw_Image.svg
|IconC=Workbench_TechDraw.svg
}}
}}



Revision as of 22:16, 2 December 2020

TechDraw Symbol

Menu location
TechDraw → Insert SVG 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. This symbol can be anything that helps annotating your drawing, and that doesn't need to be further modified.

Compass rose added to the drawing page; this symbol is available by installing the "symbols_library" addon with the Addon Manager

Usage

  1. Press the Insert SVG Symbol button
  2. A File Save dialog will open.
  3. Select a location and file name.
  4. Press OK

If the symbol appears larger than expected, use the scale property to adjust its size.

Notes

  • DataScale Type for 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.

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)