Draft Facebinder/it: Difference between revisions

From FreeCAD Documentation
(Created page with "{{Docnav/it|Forma da testo|Curva di Bezier|Draft|IconL=Draft_ShapeString.svg |IconC=Workbench_Draft.svg|Icon...")
No edit summary
Tag: Manual revert
 
(68 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Docnav/it|[[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 }}


{{Docnav/it
<div class="mw-translate-fuzzy">
|[[Draft_Point/it|Punto]]
{{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]]
</div>
|[[Draft_Workbench/it|Draft]]
|IconL=Draft_Point.svg
|IconR=Draft_ShapeString.svg
|IconC=Workbench_Draft.svg
}}


{{GuiCommand/it
===Descrizione===
|Name=Draft Facebinder
|Name/it=Lega facce
|MenuLocation=Drafting → Lega facce
|Workbenches=[[Draft_Workbench/it|Draft]], [[Arch_Workbench/it|Arch]]
|Shortcut={{KEY|F}} {{KEY|F}}
|Version=0.14
}}


<span id="Description"></span>
<div class="mw-translate-fuzzy">
==Descrizione==
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.
</div>


Il comando [[Image:Draft_Facebinder.svg|24px]] '''Lega facce''' crea un oggetto superficie dalle facce selezionate. Un Lega facce è parametrico, si aggiornerà se si modificano i suoi oggetti sorgente.
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 utilizzato per creare un'estrusione da una raccolta di facce. Questa estrusione può ad esempio rappresentare una finitura della parete nel design architettonico.
[[Image:Draft facebinder example.jpg|400px]]
{{Caption|Facebinder created from the faces of solid walls}}


[[Image:Draft_facebinder_example.jpg|400px]]
=== Utilizzo ===
{{Caption|Facebinder creato da facce di pareti}}


<span id="Usage"></span>
<div class="mw-translate-fuzzy">
== Utilizzo ==
# Selezionare una o più facce in una forma
# Premere il pulsante {{KEY|Lega facce}}, oppure i tasti {{KEY|F}}, {{KEY|F}}
{{clear}}
===Proprietà===
==== Vista ====
Sono disponibili le [[DraftStandardProperty/it|Proprietà standard]] di visualizzazione.<br />


# Seleziona una o più facce.
Vedere anche la pagina [[Draft Pattern/it|Campitura]].
# Esistono diversi modi per invocare il comando:
==== Dati ====
#* Premere il pulsante {{Button|[[Image:Draft_Facebinder.svg|16px]] [[Draft_Facebinder/it|Lega facce]]}}.
{{KEY|Base}}<br />
#* Selezionare l'opzione {{MenuCommand|Drafting → [[Image:Draft_Facebinder.svg|16px]] Lega facce}} dal menu.
* {{ProprietaDati|Label}}: nome
#* Usare la scorciatoia da tastiera: {{KEY|F}} poi {{KEY|F}}.
* {{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


<span id="Properties"></span>
{{clear}}
== Proprietà ==
</div>


Vedere anche: [[Property_editor/it|Editor delle proprietà]].
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.
* 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.
* 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.
* Press {{KEY|Esc}} or the {{Button|OK}} button to complete the edition.


Un oggetto Lega facce è derivato da una [[Part_Feature/it|Funzione Part]] e ne eredita tutte le proprietà. Ha anche le seguenti proprietà aggiuntive:
== Options ==
This object has no options when it's being created. Only selected faces will be used to create the Facebinder object.


<span id="Data"></span>
== Properties ==
=== Data ===
===Dati===
* {{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.
* {{PropertyData|Sew}}: if it is {{TRUE}} it tries to perform a topological sewing operation on the Facebinder when it extruded.


{{TitleProperty|Draft}}
=== 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".
* {{PropertyView|Pattern Size}}: specifies the size of the [[Draft Pattern]].


* {{PropertyData|Area|Area}}: (sola lettura) specifica l'area totale delle facce collegate del facebinder.
<div class="mw-translate-fuzzy">
* {{PropertyData|Extrusion|Distance}}: specifica lo spessore di estrusione del facebinder.
=== Script ===
* {{PropertyData|Faces|LinkSubList}}: specifica le facce collegate del facebinder.
</div>
* {{PropertyData|Offset|Distance}}: specifica una distanza di offset da applicare tra il facebinder e le facce originali, prima dell'estrusione.
* {{PropertyData|Remove Splitter|Bool}}: specifica se rimuovere le linee di divisione che dividono le facce complanari del facebinder.
* {{PropertyData|Sew|Bool}}: specifica se eseguire un'operazione di cucitura topologica sul facebinder.

<span id="View"></span>
=== Vista ===

{{TitleProperty|Draft}}

* {{PropertyView|Pattern|Enumeration}}: specifica la [[Draft_Pattern/it|Campitura]] con cui riempire le facce del facebinder. Questa proprietà funziona solo se {{PropertyView|Display Mode}} è {{value|Flat Lines}}.
* {{PropertyView|Pattern Size|Float}}: specifica la dimensione della [[Draft_Pattern/it|Campitura]].

<span id="Scripting"></span>
==Script==

Vedere anche: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] e [[FreeCAD Scripting Basics/it|Script di base per FreeCAD]].

Per creare un Draft Lega facce usare il metodo {{incode|make_facebinder}} ({{Version/it|0.19}}) del modulo Draft. Questo metodo sostituisce il metodo deprecato {{incode|makeFacebinder}}.


<div class="mw-translate-fuzzy">
Lo strumento facebinder può essere utilizzato nelle [[macros/it|macro]] e dalla [[FreeCAD_Scripting_Basics/it|console di Python]] tramite la seguente funzione:
</div>
{{Code|code=
{{Code|code=
Facebinder = makeFacebinder(selectionset, name="Facebinder")
facebinder = make_facebinder(selectionset)
}}
}}
<div class="mw-translate-fuzzy">
* Crea un oggetto facebinder dalla selezione data, che è una lista di oggetti selezionati fornita dal metodo FreeCADGui.Selection.getSelectionEx().
* Vengono prese in considerazione solo le facce selezionate
* Restituisce l'oggetto appena creato
</div>


* Crea un oggetto {{incode|facebinder}} dalla {{incode|selectionset}}, che è una lista di {{incode|SelectionObject}} come quelli restituiti da {{incode|FreeCADGui.Selection.getSelectionEx()}}.
The thickness of the ShapeString can be added by overwriting its {{incode|Extrusion}} attribute; the value is entered in millimeters.
** {{incode|selectionset}} può anche essere un {{incode|PropertyLinkSubList}}.


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.
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.

{{Code|code=
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.

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

doc = App.newDocument()


# Insert a solid box
# Insert a solid box
Box = FreeCAD.ActiveDocument.addObject("Part::Box", "Box")
box = doc.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()


doc.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)

doc.recompute()
}}
}}


{{Docnav|[[Draft_ShapeString|ShapeString]]|[[Draft_BezCurve|Bezier Curve]]|[[Draft_Module|Draft]]|IconL=Draft_ShapeString.svg |IconC=Workbench_Draft.svg|IconR=Draft_BezCurve.svg }}


{{Docnav/it
{{Draft Tools navi}}
|[[Draft_Point/it|Punto]]
|[[Draft_ShapeString/it|Forma da testo]]
|[[Draft_Workbench/it|Draft]]
|IconL=Draft_Point.svg
|IconR=Draft_ShapeString.svg
|IconC=Workbench_Draft.svg
}}


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

Latest revision as of 15:50, 8 December 2023

Lega facce

Posizione nel menu
Drafting → Lega facce
Ambiente
Draft, Arch
Avvio veloce
F F
Introdotto nella versione
0.14
Vedere anche
Nessuno

Descrizione

Il comando Lega facce crea un oggetto superficie dalle facce selezionate. Un Lega facce è parametrico, si aggiornerà se si modificano i suoi oggetti sorgente.

Può essere utilizzato per creare un'estrusione da una raccolta di facce. Questa estrusione può ad esempio rappresentare una finitura della parete nel design architettonico.

Facebinder creato da facce di pareti

Utilizzo

  1. Seleziona una o più facce.
  2. Esistono diversi modi per invocare il comando:
    • Premere il pulsante Lega facce.
    • Selezionare l'opzione Drafting → Lega facce dal menu.
    • Usare la scorciatoia da tastiera: F poi F.

Proprietà

Vedere anche: Editor delle proprietà.

Un oggetto Lega facce è derivato da una Funzione Part e ne eredita tutte le proprietà. Ha anche le seguenti proprietà aggiuntive:

Dati

Draft

  • DatiArea (Area): (sola lettura) specifica l'area totale delle facce collegate del facebinder.
  • DatiExtrusion (Distance): specifica lo spessore di estrusione del facebinder.
  • DatiFaces (LinkSubList): specifica le facce collegate del facebinder.
  • DatiOffset (Distance): specifica una distanza di offset da applicare tra il facebinder e le facce originali, prima dell'estrusione.
  • DatiRemove Splitter (Bool): specifica se rimuovere le linee di divisione che dividono le facce complanari del facebinder.
  • DatiSew (Bool): specifica se eseguire un'operazione di cucitura topologica sul facebinder.

Vista

Draft

  • VistaPattern (Enumeration): specifica la Campitura con cui riempire le facce del facebinder. Questa proprietà funziona solo se VistaDisplay Mode è Flat Lines.
  • VistaPattern Size (Float): specifica la dimensione della Campitura.

Script

Vedere anche: Autogenerated API documentation e Script di base per FreeCAD.

Per creare un Draft Lega facce usare il metodo make_facebinder (disponibile dalla versione 0.19) del modulo Draft. Questo metodo sostituisce il metodo deprecato makeFacebinder.

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

doc = App.newDocument()

# Insert a solid box
box = doc.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

doc.recompute()

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

doc.recompute()