Part Tube: Difference between revisions
mNo edit summary |
(Usage) |
||
Line 32: | Line 32: | ||
==Usage== <!--T:6--> |
==Usage== <!--T:6--> |
||
=== Create === |
|||
<!--T:7--> |
<!--T:7--> |
||
Line 38: | Line 40: | ||
#* Select the {{MenuCommand|Part → Primitives → [[Image:Part_Tube.svg|16px]] Create tube}} option from the menu. |
#* Select the {{MenuCommand|Part → Primitives → [[Image:Part_Tube.svg|16px]] Create tube}} option from the menu. |
||
# The {{MenuCommand|Tube}} task panel opens and a preview of the tube is displayed in the [[3D_view|3D view]]. |
# The {{MenuCommand|Tube}} task panel opens and a preview of the tube is displayed in the [[3D_view|3D view]]. |
||
# Specify the dimensions. |
|||
# Specify the {{MenuCommand|Outer radius}}, the {{MenuCommand|Inner radius}} and the {{MenuCommand|Height}}. |
|||
# The preview is dynamically updated. |
# The preview is dynamically updated. |
||
# Press the {{Button|OK}} button. |
# Press the {{Button|OK}} button. |
||
# The tube is created. |
# The tube is created. |
||
# Optionally change the |
# Optionally change the {{PropertyData|Placement}} of the tube in the [[Property_editor|Property editor]], or with the [[Image:Std_TransformManip.svg|16px]] [[Std_TransformManip|Std TransformManip]] command. |
||
⚫ | |||
=== Edit === |
|||
# To change the dimensions of an existing tube: |
|||
⚫ | |||
#* Change the properties in the [[Property_editor|Property editor]]. |
#* Change the properties in the [[Property_editor|Property editor]]. |
||
#* Change the {{PropertyData|Placement}} with the [[Image:Std_TransformManip.svg|16px]] [[Std_TransformManip|Std TransformManip]] command. |
|||
== Example == |
== Example == |
Revision as of 20:30, 1 March 2022
This documentation is not finished. Please help and contribute documentation.
GuiCommand model explains how commands should be documented. Browse Category:UnfinishedDocu to see more incomplete pages like this one. See Category:Command Reference for all commands.
See WikiPages to learn about editing the wiki pages, and go to Help FreeCAD to learn about other ways in which you can contribute.
Part Tube |
Menu location |
---|
Part → Primitives → Create tube |
Workbenches |
Part |
Default shortcut |
None |
Introduced in version |
0.19 |
See also |
Part CreatePrimitives |
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 Part Tube button.
- Select the Part → Primitives → Create tube option from the menu.
- The Tube task panel opens and a preview of the tube is displayed in the 3D view.
- Specify the dimensions.
- The preview is dynamically updated.
- Press the OK button.
- The tube is created.
- Optionally change the DataPlacement of the tube in the Property editor, or with the Std TransformManip command.
Edit
- To change the dimensions of an existing tube:
- Double-click the object in the Tree view to open the Tube task panel. See above.
- Change the properties in the Property editor.
Example
A Part Tube object created with the scripting example below is shown here.
Properties
See also: Property editor.
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 (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