Part Cylinder: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
<!--T:17--> |
<!--T:17--> |
||
⚫ | |||
# Switch to the [[Image:Workbench_Part.svg|16px]] [[Part_Workbench|Part Workbench]] |
|||
#* Press the {{Button|[[Image:Part_Cylinder.svg|16px]] [[Part Cylinder|Cylinder]]}} button. |
|||
⚫ | |||
#* |
#* Select the {{MenuCommand|Part → Primitives → [[Image:Part_Cylinder.svg|16px]] Cylinder}} option from the menu. |
||
#* Select {{MenuCommand|Part → Primitives → [[Image:Part_Cylinder.svg|16px]] Cylinder}} entry from the top menu |
|||
<!--T:18--> |
|||
'''Result:''' The default result is a full cylinder with a radius of 2 mm and height of 10 mm, centered along the global z-axis and attached to the global xy-plane. |
|||
<!--T:19--> |
|||
The cylinder properties can later be edited, either in the [[Property_editor|Property editor]] or by double-clicking the cylinder in the [[Tree_view|Tree view]]. |
|||
<!--T:8--> |
|||
[[File:cylinder.png|650px|a cylinder created with the Cylinder tool]] |
|||
== Example == |
== Example == |
Revision as of 19:15, 19 February 2022
Part Cylinder |
Menu location |
---|
Part → Primitives → Cylinder |
Workbenches |
Part |
Default shortcut |
None |
Introduced in version |
- |
See also |
Part Primitives |
Description
Creates a simple parametric cylinder, with position, angle, radius and height parameters.
Usage
- There are several ways to invoke the command:
- Press the Cylinder button.
- Select the Part → Primitives → Cylinder option from the menu.
Example
A Part Cylinder object with the values of the bottom scripting example are shown here.
The described placement and orientation changes are not shown because of simplicity for the given example.
Notes
The view direction of the two angles are from outside to the center point.
A positive angle rotates the Part Cylinder counterclockwise.
Properties
See also: Property editor.
A Part Cylinder object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:
Cylinder
- DataRadius (
Radius
): The radius of the cylinder. This defines a plane in the XY area. - DataHeight (
Height
): The height of the cylinder. This is the dimension in the Z direction. - DataAngle (
Angle
): The rotation angle of the cylinder. The rotation angle permits the creation of a portion of cylinder (it is set to 360° by default).
Prism
- DataFirst Angle (
Angle
): Angle in first direction. This is the rotation around the Y axis. introduced in version 0.20 - DataSecond Angle (
Angle
): Angle in second direction. This is the rotation around the X axis.introduced in version 0.20
Limitations
Scripting
A Part Cylinder can be created using the following function:
cylinder = FreeCAD.ActiveDocument.addObject("Part::Cylinder", "myCylinder")
- Where
myCylinder
is the user editable name for the object. - The function returns the newly created object.
The label text of the object can be easily changed by
cylinder.Label = "new myCylinderName"
For example, you may wish to modify the width, length or of the start and finish vertex.
cylinder.Radius = 10
cylinder.Height = 25
cylinder.Angle = 270
cylinder.FirstAngle = 30
cylinder.SecondAngle = 45
The result is a three-quarter cylinder.
You can change its placement and orientation with:
cylinder.Placement = FreeCAD.Placement(FreeCAD.Vector(1, 2, 3), FreeCAD.Rotation(75, 60, 30))
- 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