Part Tube
|
|
| Menu location |
|---|
| Part → Primitives → Tube |
| Workbenches |
| Part |
| Default shortcut |
| None |
| Introduced in version |
| 0.19 |
| See also |
| Part Primitives |
Description
The Part Tube command creates a parametric tube solid. In the coordinate system defined by its DataPlacement property, the bottom face of the tube lies on the XY-plane with its center at the origin.
Usage
Create
- There are several ways to invoke the command:
- Press the Tube button.
- Select the Part → Primitives → Tube option from the menu.
- The Tube object is created
- The Tube task panel opens.
- Specify the dimensions.
- The tube is dynamically updated in the 3D View.
- Press the OK button to close the task panel.
- Optionally change the DataPlacement property of the tube in the Property View, or with the Std TransformManip command.
Edit
Example
A Part Tube object created with the scripting example below is shown here.
Properties
See also: Property View.
A Part Tube object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:
Data
Attachment
The object has the same attachment properties as a Part Part2DObject.
Tube
- DataHeight (
Length): The height of the tube. The default is10mm. - DataInner Radius (
Length): The inner radius of the tube. Must be smaller than DataOuter Radius. Can be0. The default is2mm. - DataOuter Radius (
Length): The outer radius of the tube. Must be larger than DataInner Radius. The default is5mm.
Scripting
See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.
A Part Tube can be created with the addTube() method 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()
Part
- Creation and modification: New Sketch, Extrude, Revolve, Mirror, Scale, Fillet, Chamfer, Face From Wires, Ruled Surface, Loft, Sweep, Section, Cross-Sections, 3D Offset, 2D Offset, Thickness, Project on Surface, Appearance per Face
- Boolean: Compound, Explode Compound, Compound Filter, Boolean Operation, Cut, Union, Intersection, Connect Shapes, Embed Shapes, Cutout Shape, Boolean Fragments, Slice Apart, Slice to Compound, Boolean XOR, Check Geometry, Defeaturing
- Other tools: Box Selection, Shape From Mesh, Points From Shape, Convert to Solid, Reverse Shapes, Simple Copy, Transformed Copy, Shape Element Copy, Refine Shape, Set Tolerance, Persistent Section Cut, Attachment
- Preferences: Preferences, Fine tuning
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, Assembly, BIM, CAM, Draft, FEM, Inspection, Material, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub