TechDraw Symbol/it: Difference between revisions

From FreeCAD Documentation
No edit summary
(Created page with "{{Emphasis|Vedere anche:}} API TechDraw e Nozioni di base sugli script di FreeCAD.")
Line 20: Line 20:
== Script ==
== Script ==


{{Emphasis|See also:}} [[TechDraw API]] and [[FreeCAD Scripting Basics]].
{{Emphasis|Vedere anche:}} [[TechDraw API/it|API TechDraw]] e [[FreeCAD Scripting Basics/it|Nozioni di base sugli script di FreeCAD]].


The Symbol tool can be used in [[macros]] and from the [[Python]] console by using the following functions:
The Symbol tool can be used in [[macros]] and from the [[Python]] console by using the following functions:

Revision as of 17:23, 23 April 2019

Simbolo SVG

Posizione nel menu
TechDraw → Simbolo SVG
Ambiente
TechDraw
Avvio veloce
Nessuno
Introdotto nella versione
-
Vedere anche
Modelli, SVG

Descrizione

Lo strumento Simbolo inserisce un file SVG nella pagina. Questo simbolo può essere qualsiasi cosa che aiuti ad annotare il disegno, e che non ha bisogno di essere ulteriormente modificato.

Rosa dei venti aggiunta alla pagina di disegno; questo simbolo è disponibile installando la macro SymbolsLibrary con Addon Manager

Uso

  1. Premere il pulsante File:Techdraw-symbol.svg Simbolo SVG
  2. Si apre una finestra di dialogo. Selezionare un percorso e il nome file.
  • Il simbolo può apparire più grande del previsto. Utilizzare la proprietà Scala per regolare le dimensioni.

Script

Vedere anche: API TechDraw e Nozioni di base sugli script di FreeCAD.

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)