Part Cylinder

Description
Creates a simple parametric cylinder, with position, angle, radius and height parameters.

Usage

 * 1) Switch to the [[Image:Workbench_Part.svg|16px]] Part Workbench
 * 2) There are several ways to invoke the command:
 * 3) * Press the button in the toolbar.
 * 4) * Select entry from the top menu

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.



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.

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:


 * : The rotation angle of the cylinder. The rotation angle permits the creation of a portion of cylinder (it is set to 360° by default).
 * : The height of the cylinder. This is the dimension in the Z direction.
 * : The radius of the cylinder. This defines a plane in the XY area.
 * : Angle in first direction. This is the rotation around the Y axis.
 * : Angle in second direction. This is the rotation around the X axis.

Scripting
A Part Cylinder can be created using the following function:


 * Where is the name for the object.
 * The function returns the newly created object.

You can access and modify attributes of the object.

The name of the object can be easily changed by

For example, you may wish to modify the width, length or of the start and finish vertex.

The result is a three-quarter cylinder.

You can change its placement and orientation with: