TechDraw API/it: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Category:API/it Category:Poweruser Documentation/it") |
Renatorivo (talk | contribs) (Created page with "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.") |
||
Line 1: | Line 1: | ||
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. |
|||
These functions are part of the TechDraw module and can be used in scripts and macros or from the python interpreter, once the TechDraw module has been imported. |
|||
Example: |
Example: |
Revision as of 17:15, 23 October 2016
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.
Example:
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)
Description: Creates wires from edges in input by planar graph traversal. Optionally exclude the OuterWire by setting optional parameter to false.
Returns: List of wires sorted by size (descending)