|
Posizione nel menu |
---|
Arch → Strumenti pannello → Foglio pannello |
Ambiente |
Arch |
Avvio veloce |
P S |
Introdotto nella versione |
0.17 |
Vedere anche |
Pannello, Sagoma pannello, Nido |
Questo strumento permette di costruire un foglio 2D con un numero qualsiasi di oggetti Sagoma di pannello, o qualsiasi altri oggetti 2D come quelli prodotti da Draft e Sketcher. Il Foglio pannello consiste tipicamente in un tracciato di tagli che devono essere eseguiti da una macchina CNC. Questi fogli possono poi essere esportati in un file DXF.
L'immagine sopra mostra come appaiono i Fogli pannello quando sono esportati in DXF.
Vedere anche: API di Arch e Nozioni di base sugli script di FreeCAD.
Lo strumento Foglio pannello può essere utilizzato nelle macro e dalla console Python tramite la seguente funzione:
Sheet = makePanelSheet(panels=[], name="PanelSheet")
Sheet
dai panels
, che sono una lista di oggetti Pannello.Esempio:
import FreeCAD, Draft, Arch
Rect = Draft.makeRectangle(500, 200)
Polygon = Draft.makePolygon(5, 750)
p1 = FreeCAD.Vector(1000, 0, 0)
p2 = FreeCAD.Vector(2000, 400, 0)
p3 = FreeCAD.Vector(1250, 800, 0)
Wire = Draft.makeWire([p1, p2, p3], closed=True)
Panel1 = Arch.makePanel(Rect, thickness=36)
Panel2 = Arch.makePanel(Polygon, thickness=36)
Panel3 = Arch.makePanel(Wire, thickness=36)
FreeCAD.ActiveDocument.recompute()
Cut1 = Arch.makePanelCut(Panel1)
Cut2 = Arch.makePanelCut(Panel2)
Cut3 = Arch.makePanelCut(Panel3)
Cut1.ViewObject.LineWidth = 3
Cut2.ViewObject.LineWidth = 3
Cut3.ViewObject.LineWidth = 3
FreeCAD.ActiveDocument.recompute()
Sheet = Arch.makePanelSheet([Cut1, Cut2, Cut3])