- GuiCommand: Name:Part Cylinder MenuLocation:Part → Primitives → Cylinder Workbenches:Part SeeAlso:Part Primitives
Creates a simple parametric cylinder, with position, angle, radius and height parameters.
- Switch to the
Part Workbench
- There are several ways to invoke the command:
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.
The cylinder properties can later be edited, either in the Property editor or by double-clicking the cylinder in the Tree view.
-
Angle: This is the rotation angle that permits the creation of a portion of cylinder (it is set to 360° by default)
-
Height: The height is the distance in the z-axis
-
Radius: The radius defines a plane in x-y.
-
First Angle: Angle in first direction. (v0.20)
-
Second Angle: Angle in second direction. (v0.20)
A Part Cylinder can be created using the following function:
cylinder = FreeCAD.ActiveDocument.addObject("Part::Cylinder", "myCylinder")
- Where {{Incode|"myCylinder"}} is the name for the object.
- The function returns the newly created object.
documentation index > Part > Part Cylinder