Draft Facebinder/it: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
(43 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{docnav|[[Draft_ShapeString|ShapeString]]|[[Draft_BezCurve|Bezier Curve]]|[[Draft_Module|Draft_Module]]}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Docnav/it
{{GuiCommand/it|Name=Draft Facebinder|Name/it=Lega facce|Workbenches=[[Draft Module/it|Draft]], [[Arch Module/it|Arch]]|MenuLocation=Draft → Lega facce|Shortcut=F F}}
|[[Draft_ShapeString/it|Forma da testo]]
|[[Draft_BezCurve/it|Curva di Bezier]]
|[[Draft_Module/it|Draft]]
|IconL=Draft_ShapeString.svg
|IconC=Workbench_Draft.svg
|IconR=Draft_BezCurve.svg
}}
</div>

<div class="mw-translate-fuzzy">
{{GuiCommand/it
|Name=Draft Facebinder
|Name/it=Lega facce
|Workbenches=[[Draft Module/it|Draft]], [[Arch Module/it|Arch]]
|MenuLocation=Draft → Lega facce
|Shortcut=F F
|SeeAlso=[[Part Box/it|Cubo]] di Part, [[Arch Wall/it|Muro]] di Arch
|Version=0.14
}}
</div>
</div>


===Descrizione===
==Descrizione==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Lega facce (Facebinder) è un oggetto molto semplice composto dalle facce selezionate in altri oggetti. È estratto in modo parametrico. È possibile modificare l'oggetto originale e l'oggetto facebinder si aggiorna di conseguenza. Può quindi essere utilizzato, ad esempio, per produrre una estrusione su un insieme di facce di altri oggetti. In architettura, può essere usato per costruire un oggetto che ricopre diversi pezzi di muri. È possibile spostare e ruotare il facebinder dopo la sua creazione, tutto rimane collegato alle facce originali.
Lo strumento Lega facce (Facebinder) crea un oggetto superficie dalle facce selezionate di un oggetto solido. È parametrico, il che significa che se si modifica l'oggetto originale, Lega facce si aggiorna di conseguenza. Se si sposta e ruota il Lega facce, esso rimane collegato ale facce originali.
</div>
</div>


<div class="mw-translate-fuzzy">
It can be used to create an extrusion from a collection of faces from other objects. A typical use is in architectural design to build an object that covers several walls, for example, a wall paper, or wall finish.
Può essere usato per creare un'estrusione da una collezione di facce prese da altri oggetti. Un tipico utilizzo è nella progettazione architettonica per costruire un oggetto che copre diverse pareti, ad esempio una carta da parati o un intonaco.
</div>


[[Image:Draft facebinder example.jpg|400px]]
[[Image:Draft_facebinder_example.jpg|400px]]
<div class="mw-translate-fuzzy">
{{Caption|Facebinder created from the faces of solid walls}}
{{Caption|Facebinder creato dalle facce di pareti solide}}
</div>


=== Utilizzo ===
== Utilizzo ==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
# Sceglere una faccia o tenere premuto {{KEY|Ctrl}} e sceglere diverse facce da oggetti solidi.
# Selezionare una o più facce in una forma
# Premere il pulsante {{KEY|Lega facce}}, oppure i tasti {{KEY|F}}, {{KEY|F}}
# Premere il pulsante {{Button|[[Image:Draft_Facebinder.svg|16px]] [[Draft_Facebinder/it|Lega facce]]}}, o premere i tasti {{KEY|F}} e poi {{KEY|F}}.
</div>
{{clear}}
===Proprietà===
==== Vista ====
Sono disponibili le [[DraftStandardProperty/it|Proprietà standard]] di visualizzazione.<br />


==Notes==
Vedere anche la pagina [[Draft Pattern/it|Campitura]].
==== Dati ====
{{KEY|Base}}<br />
* {{ProprietaDati|Label}}: nome
* {{ProprietaDati|Placement}}: [[Placement/it|posizionamento]] del punto base della forma costruita
** {{ProprietaDati|Angle}}: rotazione intorno all'asse definito in Axis
** {{ProprietaDati|Axis}}: asse della rotazione
** {{ProprietaDati|Position}}: posizione rispetto alle coordinate 0,0,0


<div class="mw-translate-fuzzy">
{{clear}}
Lega facce può essere modificato facendo doppio clic sull'elemento nella vista ad albero. Quindi si possono cambiare le facce che fanno parte dell'oggetto.
* Per aggiungere una faccia, fare clic su una faccia di un oggetto solido nella vista 3D, quindi fare clic sul pulsante {{Button|[[Image:Arch_Add.svg|16px]] Aggiungi}}.
* Per rimuovere una faccia, selezionare uno degli elementi secondari nell'elenco, quindi fare clic sul pulsante {{Button|[[Image:Arch_Remove.svg|16px]] Rimuovi}}.
* Premere il tasto {{KEY|Esc}} o il pulsante {{Button|OK}} per completare la modifica.
</div>
</div>


<div class="mw-translate-fuzzy">
The Facebinder can be edited by double clicking on the element in the tree view. Then you can change the faces that are part of the object.
== Proprietà ==
* To add a face, click on a face of a solid object in the 3D view, and then click on the {{Button|[[Image:Arch_Add.svg|16px]] Add}} button.
=== Dati ===
* To remove a face, select one of the sub-elements in the list, and then click on the {{Button|[[Image:Arch_Remove.svg|16px]] Remove}} button.
* {{PropertyData/it|Extrusion}}: specifica uno spessore di estrusione da applicare a tutte le facce della forma.
* Press {{KEY|Esc}} or the {{Button|OK}} button to complete the edition.
* {{PropertyData/it|Remove Splitter}}: se è {{TRUE}} cerca di fondere le intersezioni interne del Facebinder quando viene estruso.
* {{PropertyData/it|Sew}}: se è {{TRUE}} tenta di eseguire un'operazione di cucitura topologica sul Facebinder quando viene estruso.
* {{PropertyData|Offset}}: specifica una distanza di offset da applicare tra le facce legate e le facce originali, prima dell'estrusione.
* {{PropertyData|Area}}: l'area totale di queste facce legate.
</div>


See also: [[property_editor|Property editor]].
== Options ==
This object has no options when it's being created. Only selected faces will be used to create the Facebinder object.


A Draft Facebinder object is derived from a [[Part_Feature|Part Feature]] object and inherits all its properties. It also has the following additional properties:
== Properties ==

=== Data ===
===Data===
* {{PropertyData|Extrusion}}: specifies an extrusion thickness to apply to all faces of the shape.

* {{PropertyData|Remove Splitter}}: if it is {{TRUE}} it tries to fuse the internal intersections of the Facebinder when it extruded.
{{TitleProperty|Draft}}
* {{PropertyData|Sew}}: if it is {{TRUE}} it tries to perform a topological sewing operation on the Facebinder when it extruded.

* {{PropertyData|Area|Area}}: (read-only) specifies the total area of the linked faces of the facebinder.
* {{PropertyData|Extrusion|Distance}}: specifies the extrusion thickness of the facebinder.
* {{PropertyData|Faces|LinkSubList}}: specifies the linked faces of the facebinder.
* {{PropertyData|Offset|Distance}}: specifies an offset distance to apply between the facebinder and the original faces, prior to extrusion.
* {{PropertyData|Remove Splitter|Bool}}: Specifies whether to remove splitter lines that divide co-planar faces of the facebinder.
* {{PropertyData|Sew|Bool}}: Specifies whether to perform a topological sewing operation on the facebinder.


=== View ===
=== View ===

* {{PropertyView|Pattern}}: specifies a [[Draft Pattern]] with which to fill the face of the shape. This property only works if {{PropertyView|Display Mode}} is "Flat Lines".
{{TitleProperty|Draft}}
* {{PropertyView|Pattern Size}}: specifies the size of the [[Draft Pattern]].


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
=== Script ===
===Vista===
* {{PropertyView/it|Pattern}}: specifica un modello di [[Draft Pattern/it|Campitura]] con cui riempire la faccia della forma. Questa proprietà funziona solo se {{PropertyView/it|Display Mode}} è "Flat Lines".
* {{PropertyView/it|Pattern Size}}: specifica la dimensione della [[Draft Pattern/it|Campitura]].
</div>
</div>

==Scripting==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
== Script ==
Lo strumento facebinder può essere utilizzato nelle [[macros/it|macro]] e dalla [[FreeCAD_Scripting_Basics/it|console di Python]] tramite la seguente funzione:
{{Emphasis|Vedere anche:}} [[Draft API/it|API Draft]] e [[FreeCAD Scripting Basics/it|Nozioni di base sugli script di FreeCAD]].
</div>
</div>

<div class="mw-translate-fuzzy">
Lo strumento Lega facce può essere utilizzato nelle [[macros/it|macro]] e dalla console [[Python/it|Python]] tramite la seguente funzione:
</div>

{{Code|code=
{{Code|code=
Facebinder = makeFacebinder(selectionset, name="Facebinder")
facebinder = make_facebinder(selectionset)
}}
}}

<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* Crea un oggetto facebinder dalla selezione data, che è una lista di oggetti selezionati fornita dal metodo FreeCADGui.Selection.getSelectionEx().
* Crea un oggetto {{incode|Facebinder}} dalla {{incode|selectionset}}, che è una lista di {{incode|SelectionObject}} come quelli restituiti da {{incode|FreeCADGui.Selection.getSelectionEx()}}.
** {{incode|selectionset}} può anche essere un {{incode|PropertyLinkSubList}}.
* Vengono prese in considerazione solo le facce selezionate

* Restituisce l'oggetto appena creato
Un {{incode|PropertyLinkSubList}} è un elenco di tuple; ogni tupla contiene come primo elemento un {{incode|oggetto}} e come secondo elemento un elenco (o tupla) di stringhe; queste stringhe indicano i nomi dei sotto-elementi (facce) di quell'oggetto.
</div>
</div>


{{Code|code=
The thickness of the ShapeString can be added by overwriting its {{incode|Extrusion}} attribute; the value is entered in millimeters.
PropertyLinkSubList = [tuple1, tuple2, tuple3, ...]
PropertyLinkSubList = [(object1, list1), (object2, list2), (object3, list3), ...]
PropertyLinkSubList = [(object1, ['Face1', 'Face4', 'Face6']), ...]
PropertyLinkSubList = [(object1, ('Face1', 'Face4', 'Face6')), ...]
}}


Lo spessore di Facebinder può essere aggiunto sovrascrivendo il suo attributo {{incode|Extrusion}}; il valore è inserito in millimetri.
The placement of the ShapeString can be changed by overwriting its {{incode|Placement}} attribute, or by individually overwriting its {{incode|Placement.Base}} and {{incode|Placement.Rotation}} attributes.

Il posizionamento di Facebinder può essere cambiato sovrascrivendo il suo attributo {{incode|Placement}}, o sovrascrivendo singolarmente i suoi attributi {{incode|Placement.Base}} e {{incode|Placement.Rotation}}.


Esempio:
Esempio:

{{Code|code=
{{Code|code=
import FreeCAD, FreeCADGui, Draft
import FreeCAD as App
import FreeCADGui as Gui
import Draft


# Insert a solid box
# Insert a solid box
Box = FreeCAD.ActiveDocument.addObject("Part::Box", "Box")
box = App.ActiveDocument.addObject("Part::Box", "Box")
Box.Length = 2300
box.Length = 2300
Box.Width = 800
box.Width = 800
Box.Height = 1000
box.Height = 1000


# selection = Gui.Selection.getSelectionEx()
# Pick any two side faces, and then
selection = [(box, ("Face1", "Face6"))]
selection = FreeCADGui.Selection.getSelectionEx()
Facebinder = Draft.makeFacebinder(selection)
facebinder = Draft.make_facebinder(selection)
Facebinder.Extrusion = 50
facebinder.Extrusion = 50
FreeCAD.ActiveDocument.recompute()


App.ActiveDocument.recompute()
Facebinder.Placement.Base = FreeCAD.Vector(1000, -1000, 100)

Facebinder.ViewObject.ShapeColor = (0.99, 0.99, 0.4)
facebinder.Placement.Base = App.Vector(1000, -1000, 100)
facebinder.ViewObject.ShapeColor = (0.99, 0.99, 0.4)

App.ActiveDocument.recompute()
}}
}}



{{docnav|[[Draft_ShapeString|ShapeString]]|[[Draft_BezCurve|Bezier Curve]]|[[Draft_Module|Draft_Module]]}}
<div class="mw-translate-fuzzy">
{{Draft Tools navi}}
{{Docnav/it
{{Userdocnavi}}
|[[Draft_ShapeString/it|Forma da testo]]
{{clear}}
|[[Draft_BezCurve/it|Curva di Bezier]]
|[[Draft_Module/it|Draft]]
|IconL=Draft_ShapeString.svg
|IconC=Workbench_Draft.svg
|IconR=Draft_BezCurve.svg
}}
</div>

{{Draft Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Revision as of 11:22, 4 May 2021

Lega facce

Posizione nel menu
Draft → Lega facce
Ambiente
Draft, Arch
Avvio veloce
F F
Introdotto nella versione
0.14
Vedere anche
Cubo di Part, Muro di Arch

Descrizione

Lo strumento Lega facce (Facebinder) crea un oggetto superficie dalle facce selezionate di un oggetto solido. È parametrico, il che significa che se si modifica l'oggetto originale, Lega facce si aggiorna di conseguenza. Se si sposta e ruota il Lega facce, esso rimane collegato ale facce originali.

Può essere usato per creare un'estrusione da una collezione di facce prese da altri oggetti. Un tipico utilizzo è nella progettazione architettonica per costruire un oggetto che copre diverse pareti, ad esempio una carta da parati o un intonaco.

Facebinder creato dalle facce di pareti solide

Utilizzo

  1. Sceglere una faccia o tenere premuto Ctrl e sceglere diverse facce da oggetti solidi.
  2. Premere il pulsante Lega facce, o premere i tasti F e poi F.

Notes

Lega facce può essere modificato facendo doppio clic sull'elemento nella vista ad albero. Quindi si possono cambiare le facce che fanno parte dell'oggetto.

  • Per aggiungere una faccia, fare clic su una faccia di un oggetto solido nella vista 3D, quindi fare clic sul pulsante Aggiungi.
  • Per rimuovere una faccia, selezionare uno degli elementi secondari nell'elenco, quindi fare clic sul pulsante Rimuovi.
  • Premere il tasto Esc o il pulsante OK per completare la modifica.

Proprietà

Dati

  • DatiExtrusion: specifica uno spessore di estrusione da applicare a tutte le facce della forma.
  • DatiRemove Splitter: se è true cerca di fondere le intersezioni interne del Facebinder quando viene estruso.
  • DatiSew: se è true tenta di eseguire un'operazione di cucitura topologica sul Facebinder quando viene estruso.
  • DatiOffset: specifica una distanza di offset da applicare tra le facce legate e le facce originali, prima dell'estrusione.
  • DatiArea: l'area totale di queste facce legate.

See also: Property editor.

A Draft Facebinder object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:

Data

Draft

  • DatiArea (Area): (read-only) specifies the total area of the linked faces of the facebinder.
  • DatiExtrusion (Distance): specifies the extrusion thickness of the facebinder.
  • DatiFaces (LinkSubList): specifies the linked faces of the facebinder.
  • DatiOffset (Distance): specifies an offset distance to apply between the facebinder and the original faces, prior to extrusion.
  • DatiRemove Splitter (Bool): Specifies whether to remove splitter lines that divide co-planar faces of the facebinder.
  • DatiSew (Bool): Specifies whether to perform a topological sewing operation on the facebinder.

View

Draft

Vista

  • VistaPattern: specifica un modello di Campitura con cui riempire la faccia della forma. Questa proprietà funziona solo se VistaDisplay Mode è "Flat Lines".
  • VistaPattern Size: specifica la dimensione della Campitura.

Scripting

Lo strumento Lega facce può essere utilizzato nelle macro e dalla console Python tramite la seguente funzione:

facebinder = make_facebinder(selectionset)
  • Crea un oggetto Facebinder dalla selectionset, che è una lista di SelectionObject come quelli restituiti da FreeCADGui.Selection.getSelectionEx().
    • selectionset può anche essere un PropertyLinkSubList.

Un PropertyLinkSubList è un elenco di tuple; ogni tupla contiene come primo elemento un oggetto e come secondo elemento un elenco (o tupla) di stringhe; queste stringhe indicano i nomi dei sotto-elementi (facce) di quell'oggetto.

PropertyLinkSubList = [tuple1, tuple2, tuple3, ...]
PropertyLinkSubList = [(object1, list1), (object2, list2), (object3, list3), ...]
PropertyLinkSubList = [(object1, ['Face1', 'Face4', 'Face6']), ...]
PropertyLinkSubList = [(object1, ('Face1', 'Face4', 'Face6')), ...]

Lo spessore di Facebinder può essere aggiunto sovrascrivendo il suo attributo Extrusion; il valore è inserito in millimetri.

Il posizionamento di Facebinder può essere cambiato sovrascrivendo il suo attributo Placement, o sovrascrivendo singolarmente i suoi attributi Placement.Base e Placement.Rotation.

Esempio:

import FreeCAD as App
import FreeCADGui as Gui
import Draft

# Insert a solid box
box = App.ActiveDocument.addObject("Part::Box", "Box")
box.Length = 2300
box.Width = 800
box.Height = 1000

# selection = Gui.Selection.getSelectionEx()
selection = [(box, ("Face1", "Face6"))]
facebinder = Draft.make_facebinder(selection)
facebinder.Extrusion = 50

App.ActiveDocument.recompute()

facebinder.Placement.Base = App.Vector(1000, -1000, 100)
facebinder.ViewObject.ShapeColor = (0.99, 0.99, 0.4)

App.ActiveDocument.recompute()