Arch CutPlane/it: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Lo strumento Taglia con piano permette di tagliare un oggetto Arch secondo un piano: * È possibile tagliare un oggetto Arch con la faccia selezionata, normale o opposta alla ...") |
No edit summary |
||
(68 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
|||
{{GuiCommand/it|Name=Arch CutPlane|Name/it=Taglia con piano|Workbenches=[[Arch Module/it|Arch]]|MenuLocation=Arch → Taglia con piano|SeeAlso=[[Arch Remove/it|Rimuovi]]}} |
|||
{{Docnav/it |
|||
|[[Arch_PipeConnector/it|Raccordo]] |
|||
|[[Arch_Add/it|Aggiungi componente]] |
|||
|[[Arch_Workbench/it|Arch]] |
|||
|IconL=Arch_PipeConnector.svg |
|||
|IconR=Arch_Add.svg |
|||
|IconC=Workbench_Arch.svg |
|||
}} |
|||
{{GuiCommand/it |
|||
|Name=Arch CutPlane |
|||
|Name/it=Taglio con piano |
|||
|MenuLocation=Arch → Taglio con piano |
|||
|Workbenches=[[Arch_Workbench/it|Arch]] |
|||
}} |
|||
<span id="Description"></span> |
|||
==Descrizione== |
==Descrizione== |
||
Lo strumento '''Arch CutPlane''' taglia un oggetto solido di Arch come un [[Arch_Wall/it|Muro]] o una [[Arch_Structure/it|Struttura]] con una faccia planare. |
|||
Lo strumento Taglia con piano permette di tagliare un oggetto Arch secondo un piano: |
|||
* È possibile tagliare un oggetto Arch con la faccia selezionata, normale o opposta alla faccia del piano. |
|||
* Questo aggiunge un elemento sottrazione CutVolume all'oggetto Arch. |
|||
[[Image: |
[[Image:Arch_CutPlane_example.jpg|400px]] |
||
{{Caption|A sinistra: prima di applicare lo strumento Taglia con piano. Al centro: parete risultante dopo il taglio. A destra: un altro risultato opzionale}} |
|||
<span id="Usage"></span> |
|||
In the above image, two Arch Structure are cut with respective plane. |
|||
==Utilizzo== |
|||
# Se il piano di taglio deve essere derivato da un bordo dritto ({{Version/it|1.0}}), facoltativamente allineare il [[Draft_SelectPlane/it|piano di lavoro]]: |
|||
==How to use== |
|||
#* Il bordo selezionato non può essere parallelo alla normale del piano di lavoro. |
|||
#* La faccia di taglio generata sarà perpendicolare al piano di lavoro. |
|||
# Selezionare l'oggetto da tagliare. |
|||
# Effettuare una delle seguenti operazioni: |
|||
#* Selezionare un oggetto con una singola faccia planare. {{Version/it|1.0}} |
|||
#* Selezionare una faccia planare nella [[3D_view/it|vista 3D]]. |
|||
#* Selezionare un oggetto con un unico bordo dritto. {{Version/it|1.0}} |
|||
#* Selezionare un bordo dritto nella [[3D_view/it|Vista 3D]]. {{Version/it|1.0}} |
|||
# Esistono diversi modi per richiamare il comando: |
|||
#* Premere il pulsante {{Button|[[Image:Arch_CutPlane.svg|16px]] [[Arch_CutPlane/it|Taglio con piano]]}}. |
|||
#* Selezionare l'opzione {{MenuCommand|Arch → [[Image:Arch_CutPlane.svg|16px]] Taglio con piano}} dal menu. |
|||
# Scegliere {{MenuCommand|Dietro}} o {{MenuCommand|Di fronte}} per indicare su quale lato della superficie di taglio il materiale deve essere rimosso. |
|||
# Premere il pulsante {{Button|OK}}. |
|||
<span id="Scripting"></span> |
|||
# Select the object to be cut, then the face (the face must be the last one you selected) |
|||
==Script== |
|||
# Press the {{KEY|[[Image:Arch_CutPlane.svg|16px]] '''Cut Plane'''}} button |
|||
# Choose if the object is cut '''behind''' the normale face or '''front''' of the normale face |
|||
# Click the Ok button |
|||
{{Emphasis|Vedere anche:}} [[Arch_API/it|API di Arch]] e [[FreeCAD_Scripting_Basics/it|Nozioni di base sugli script di FreeCAD]]. |
|||
==Scripting== |
|||
Lo strumento Taglia con Piano può essere utilizzato nelle [[Macros/it|macro]] e dalla console [[Python/it|Python]] tramite la seguente funzione: |
|||
The Add tool can by used in [[macros]] and from the python console by using the following function: |
|||
<syntaxhighlight> |
|||
{{Code|code= |
|||
cutComponentwithPlane (archObject,face,faceSide) |
|||
cutObj = cutComponentwithPlane(archObject, cutPlane, sideFace) |
|||
</syntaxhighlight> |
|||
}} |
|||
* archObject is the object to cut |
|||
* face is the face of an object that come the plan from |
|||
* Crea un oggetto {{incode|cutObj}} dal {{incode|archObject}} dato, che è tagliato dal {{incode|cutPlane}}, che è la faccia di un altro oggetto. |
|||
* faceSide is the side of the face to cut. 0 = Behind, 1 = Front |
|||
** {{incode|archObject}} dovrebbe essere un {{incode|SelectionObject}} ottenuto da {{incode|FreeCADGui.Selection.SelectionEx()[0]}}. |
|||
<languages/> |
|||
** {{incode|cutPlane}} dovrebbe essere un {{incode|FaceObject}} ottenuto da {{incode|FreeCADGui.Selection.SelectionEx()[0].SubObjects[0]}}. |
|||
* {{incode|sideFace}} specifica su quale lato del {{incode|FaceObject}} verrà creato un volume; questo volume verrà quindi utilizzato per sottrarlo dal {{incode|archObject}}. Se {{incode|sideFace}} è {{incode|0}} crea un volume nella parte posteriore della faccia, altrimenti lo crea davanti alla faccia. |
|||
Esempio: |
|||
{{Code|code= |
|||
import FreeCAD, FreeCADGui, Draft, Arch |
|||
p1 = FreeCAD.Vector(0, 0, 0) |
|||
p2 = FreeCAD.Vector(2000, 2000, 0) |
|||
Line = Draft.makeWire([p1, p2]) |
|||
Wall = Arch.makeWall(Line, width=150, height=2000) |
|||
p3 = FreeCAD.Vector(0, 2000, 0) |
|||
p4 = FreeCAD.Vector(3000, 0, 0) |
|||
Line2 = Draft.makeWire([p3, p4]) |
|||
Wall2 = Arch.makeWall(Line2, width=150, height=2000) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
# Select the Wall |
|||
main_object = FreeCADGui.Selection.getSelectionEx()[0] |
|||
# Select the face of Wall2 |
|||
selection = FreeCADGui.Selection.getSelectionEx()[0] |
|||
cut_face = selection.SubObjects[0] |
|||
cutObj = Arch.cutComponentwithPlane(main_object, cut_face, 0) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
Wall3 = Draft.move(Wall, FreeCAD.Vector(-4000, 0, 0), copy=True) |
|||
Wall4 = Draft.move(Wall2, FreeCAD.Vector(-4000, 0, 0), copy=True) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
# Select the Wall3 |
|||
main_object2 = FreeCADGui.Selection.getSelectionEx()[0] |
|||
# Select the face of Wall4 |
|||
selection2 = FreeCADGui.Selection.getSelectionEx()[0] |
|||
cut_face2 = selection2.SubObjects[0] |
|||
cutObj2 = Arch.cutComponentwithPlane(main_object2, cut_face2, 1) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
}} |
|||
{{Docnav/it |
|||
|[[Arch_PipeConnector/it|Raccordo]] |
|||
|[[Arch_Add/it|Aggiungi componente]] |
|||
|[[Arch_Workbench/it|Arch]] |
|||
|IconL=Arch_PipeConnector.svg |
|||
|IconR=Arch_Add.svg |
|||
|IconC=Workbench_Arch.svg |
|||
}} |
|||
{{Arch Tools navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
Latest revision as of 17:10, 25 April 2024
Taglio con piano |
Posizione nel menu |
---|
Arch → Taglio con piano |
Ambiente |
Arch |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Nessuno |
Descrizione
Lo strumento Arch CutPlane taglia un oggetto solido di Arch come un Muro o una Struttura con una faccia planare.
A sinistra: prima di applicare lo strumento Taglia con piano. Al centro: parete risultante dopo il taglio. A destra: un altro risultato opzionale
Utilizzo
- Se il piano di taglio deve essere derivato da un bordo dritto (disponibile dalla versione 1.0), facoltativamente allineare il piano di lavoro:
- Il bordo selezionato non può essere parallelo alla normale del piano di lavoro.
- La faccia di taglio generata sarà perpendicolare al piano di lavoro.
- Selezionare l'oggetto da tagliare.
- Effettuare una delle seguenti operazioni:
- Selezionare un oggetto con una singola faccia planare. disponibile dalla versione 1.0
- Selezionare una faccia planare nella vista 3D.
- Selezionare un oggetto con un unico bordo dritto. disponibile dalla versione 1.0
- Selezionare un bordo dritto nella Vista 3D. disponibile dalla versione 1.0
- Esistono diversi modi per richiamare il comando:
- Premere il pulsante Taglio con piano.
- Selezionare l'opzione Arch → Taglio con piano dal menu.
- Scegliere Dietro o Di fronte per indicare su quale lato della superficie di taglio il materiale deve essere rimosso.
- Premere il pulsante OK.
Script
Vedere anche: API di Arch e Nozioni di base sugli script di FreeCAD.
Lo strumento Taglia con Piano può essere utilizzato nelle macro e dalla console Python tramite la seguente funzione:
cutObj = cutComponentwithPlane(archObject, cutPlane, sideFace)
- Crea un oggetto
cutObj
dalarchObject
dato, che è tagliato dalcutPlane
, che è la faccia di un altro oggetto.archObject
dovrebbe essere unSelectionObject
ottenuto daFreeCADGui.Selection.SelectionEx()[0]
.cutPlane
dovrebbe essere unFaceObject
ottenuto daFreeCADGui.Selection.SelectionEx()[0].SubObjects[0]
.
sideFace
specifica su quale lato delFaceObject
verrà creato un volume; questo volume verrà quindi utilizzato per sottrarlo dalarchObject
. SesideFace
è0
crea un volume nella parte posteriore della faccia, altrimenti lo crea davanti alla faccia.
Esempio:
import FreeCAD, FreeCADGui, Draft, Arch
p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(2000, 2000, 0)
Line = Draft.makeWire([p1, p2])
Wall = Arch.makeWall(Line, width=150, height=2000)
p3 = FreeCAD.Vector(0, 2000, 0)
p4 = FreeCAD.Vector(3000, 0, 0)
Line2 = Draft.makeWire([p3, p4])
Wall2 = Arch.makeWall(Line2, width=150, height=2000)
FreeCAD.ActiveDocument.recompute()
# Select the Wall
main_object = FreeCADGui.Selection.getSelectionEx()[0]
# Select the face of Wall2
selection = FreeCADGui.Selection.getSelectionEx()[0]
cut_face = selection.SubObjects[0]
cutObj = Arch.cutComponentwithPlane(main_object, cut_face, 0)
FreeCAD.ActiveDocument.recompute()
Wall3 = Draft.move(Wall, FreeCAD.Vector(-4000, 0, 0), copy=True)
Wall4 = Draft.move(Wall2, FreeCAD.Vector(-4000, 0, 0), copy=True)
FreeCAD.ActiveDocument.recompute()
# Select the Wall3
main_object2 = FreeCADGui.Selection.getSelectionEx()[0]
# Select the face of Wall4
selection2 = FreeCADGui.Selection.getSelectionEx()[0]
cut_face2 = selection2.SubObjects[0]
cutObj2 = Arch.cutComponentwithPlane(main_object2, cut_face2, 1)
FreeCAD.ActiveDocument.recompute()
Arch
- Elements: Wall, Structure, Curtain Wall, Window, Roof, Space, Stairs, Equipment, Frame, Fence, Truss, Profile, Pipe, Pipe Connector
- Reinforcements: Straight Rebar, U-Shape Rebar, L-Shape Rebar, Stirrup, Bent-Shape Rebar, Helical Rebar, Column Reinforcement, Beam Reinforcement, Slab Reinforcement, Footing Reinforcement, Custom Rebar
- Panels: Panel, Panel Cut, Panel Sheet, Nest
- Materials: Material, Multi-Material
- Organization: Building Part, Project, Site, Building, Level, External reference, Section Plane, Schedule
- Axes: Axis, Axes system, Grid
- Modification: Cut with plane, Add component, Remove component, Survey
- Utilities: Component, Clone component, Split Mesh, Mesh to Shape, Select non-manifold meshes, Remove Shape from Arch, Close Holes, Merge Walls, Check, Toggle IFC Brep flag, 3 Views from mesh, Create IFC spreadsheet, Toggle Subcomponents
- Additional: Preferences, Import Export Preferences (IFC, DAE, OBJ, JSON, 3DS, SHP), IfcOpenShell, IfcPlusPlus, Arch API
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub