72 lines
3.3 KiB
HTML
72 lines
3.3 KiB
HTML
<html><head><title>TechDraw API/it</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>TechDraw API/it</h1></div>
|
|
|
|
<div id="mw-content-text" lang="it" dir="ltr" class="mw-content-ltr"><hr/>
|
|
<div class="mw-parser-output"><div class="mw-translate-fuzzy">
|
|
<p>Queste funzioni sono parte del modulo TechDraw e, dopo che il modulo TechDraw è stato importato, possono essere utilizzate negli script e nelle macro o dall'interprete Python.
|
|
</p>
|
|
</div>
|
|
<p>See the <a href="TechDrawGui_API.html" title="TechDrawGui API">TechDrawGui module API</a> for more functions.
|
|
</p><p>Esempio:
|
|
</p>
|
|
<pre>import FreeCAD
|
|
import TechDraw
|
|
page = FreeCAD.ActiveDocument.addObject('TechDraw::DrawPage','Page')
|
|
FreeCAD.ActiveDocument.addObject('TechDraw::DrawSVGTemplate','Template')
|
|
FreeCAD.ActiveDocument.Template.Template = templateFileSpec
|
|
FreeCAD.ActiveDocument.Page.Template = FreeCAD.ActiveDocument.Template
|
|
page.ViewObject.show()
|
|
view = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewPart','View')
|
|
rc = page.addView(view) </pre>
|
|
<p><br />
|
|
</p>
|
|
<div class="mw-translate-fuzzy">
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>EdgeWalker</b></big> ( <i>listOfEdges, [bool]</i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Description</b>:</small> Crea polilinee dai bordi in ingresso tramite grafici planari trasversali. Opzionalmente si può escludere la OuterWire impostando il parametro opzionale su falso.
|
|
</p><p><small><b>Returns</b>:</small> Elenco dei wire ordinati per dimensione (decrescente)
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>findOuterWire</b></big> ( <i>listOfEdges</i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Description</b>:</small> Trova l'OuterWire (più grande) in un elenco di bordi (che formano un grafo planare).
|
|
</p><p><small><b>Returns</b>:</small> Outer wire
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>findShapeOutline</b></big> ( <i>TopoShape, scale, direction</i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Description</b>:</small> Proietta la forma nella direzione e trova il wire esterno nel risultato.
|
|
</p><p><small><b>Returns</b>:</small> Outline wire
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p>
|
|
</div>
|
|
<p><br />
|
|
Back to <a href="TechDraw_Module.html" title="TechDraw Module">TechDraw</a>.
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=TechDraw_API/it&oldid=280067">http://www.freecadweb.org/wiki/index.php?title=TechDraw_API/it&oldid=280067</a>"</div>
|
|
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
|
|
</div>
|
|
</div>
|
|
<div id="mw-navigation">
|
|
<h2>Navigation menu</h2>
|
|
|
|
</body></html> |