Part Tube/it: Difference between revisions
(Created page with "* {{PropertyData|Height|Length}}: l'altezza del tubo. Il valore predefinito è {{Value|10mm}}. * {{PropertyData|Inner Radius|Length}}: il raggio interno del tubo. Deve essere inferiore a {{PropertyData|Outer Radius}}. Può essere {{Value|0}}. Il valore predefinito è {{Value|2mm}}. * {{PropertyData|Outer Radius|Length}}: il raggio esterno del tubo. Deve essere maggiore di {{PropertyData|Inner Radius}}. Il valore predefinito è {{Value|5mm}}.") |
(Created page with "== Script ==") |
||
Line 78: | Line 78: | ||
* {{PropertyData|Outer Radius|Length}}: il raggio esterno del tubo. Deve essere maggiore di {{PropertyData|Inner Radius}}. Il valore predefinito è {{Value|5mm}}. |
* {{PropertyData|Outer Radius|Length}}: il raggio esterno del tubo. Deve essere maggiore di {{PropertyData|Inner Radius}}. Il valore predefinito è {{Value|5mm}}. |
||
= |
<span id="Scripting"></span> |
||
== Script == |
|||
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
Revision as of 21:44, 26 December 2023
Part Tubo |
Posizione nel menu |
---|
Parte → Primitive → Crea tubo |
Ambiente |
Part |
Avvio veloce |
Nessuno |
Introdotto nella versione |
0.19 |
Vedere anche |
Part Primitive |
Descrizione
Il comando Part Tubo crea un tubo parametrico solido. Nel sistema di coordinate definito dalla sua proprietà DatiPlacement, la faccia inferiore del tubo si trova sul piano XY con il centro nell'origine.
Utilizzo
Crea
- Esistono diversi modi per richiamare il comando:
- Premere il pulsante Crea tubo.
- Selezionare l'opzione Parte → Primitive → Crea tubo dal menu.
- Si apre il pannello delle attività Tubo e un'anteprima del tubo viene visualizzata nella Vista 3D.
- Specificare le dimensioni.
- L'anteprima viene aggiornata dinamicamente.
- Premere il pulsante OK.
- Il tubo viene creato.
- Facoltativamente, modificare il DatiPlacement del tubo nel Editor delle proprietà o con il comando Trasforma.
Modifica
- Fare doppio clic sul tubo nella Vista ad albero
- Si apre il pannello delle azioni Tubo.
- Modificare una o più dimensioni.
- Il tubo viene aggiornato dinamicamente nella vista 3D.
- Premere il pulsante OK.
Esempio
Qui viene mostrato un oggetto Part Tubo creato con l'esempio di scripting riportato di seguito.
Proprietà
Vedere anche: Editor delle proprietà.
Un oggetto Part Tubo deriva da un oggetto Funzione Part e ne eredita tutte le proprietà. Ha inoltre le seguenti proprietà aggiuntive:
Dati
Attachment
L'oggetto ha le stesse proprietà di collegamento di un Part Part2DObject.
Tube
- DatiHeight (
Length
): l'altezza del tubo. Il valore predefinito è10mm
. - DatiInner Radius (
Length
): il raggio interno del tubo. Deve essere inferiore a DatiOuter Radius. Può essere0
. Il valore predefinito è2mm
. - DatiOuter Radius (
Length
): il raggio esterno del tubo. Deve essere maggiore di DatiInner Radius. Il valore predefinito è5mm
.
Script
See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.
A Part Tube can be created with the addTube()
method (introduced in version 0.20) of the Shapes module:
tube = Shapes.addTube(FreeCAD.ActiveDocument, "myTube")
- Where
"myTube"
is the name for the object. - The function returns the newly created object.
Example:
import FreeCAD as App
from BasicShapes import Shapes
doc = App.activeDocument()
tube = Shapes.addTube(FreeCAD.ActiveDocument, "myTube")
tube.Height = 20
tube.InnerRadius = 2
tube.OuterRadius = 3
tube.Placement = App.Placement(App.Vector(2, 4, 5), App.Rotation(60, 60, 30))
doc.recompute()
- Primitives: Box, Cylinder, Sphere, Cone, Torus, Tube, Create primitives, Shape builder
- Creation and modification: Extrude, Revolve, Mirror, Fillet, Chamfer, Make face from wires, Ruled Surface, Loft, Sweep, Section, Cross sections, 3D Offset, 2D Offset, Thickness, Projection on surface, Attachment
- Boolean: Make compound, Explode Compound, Compound Filter, Boolean, Cut, Fuse, Common, Connect, Embed, Cutout, Boolean fragments, Slice apart, Slice, XOR
- Measure: Measure Linear, Measure Angular, Measure Refresh, Clear All, Toggle All, Toggle 3D, Toggle Delta
- 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