Part Cylinder: Difference between revisions

From FreeCAD Documentation
(better wording for more clarity)
(Marked this version for translation)
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

<!--T:13-->
<!--T:13-->
{{Docnav
{{Docnav
|[[Part_Box|Box]]
|[[Part_Box|Box]]
|[[Part_Sphere|Sphere]]
|[[Part_Sphere|Sphere]]
|[[Part_Module|Part]]
|[[Part_Workbench|Part]]
|IconL=Part_Box.svg
|IconL=Part_Box.svg
|IconR=Part_Sphere.svg
|IconR=Part_Sphere.svg
Line 15: Line 16:
|Name=Part Cylinder
|Name=Part Cylinder
|MenuLocation=Part → Primitives → Cylinder
|MenuLocation=Part → Primitives → Cylinder
|Workbenches=[[Part_Module|Part]]
|Workbenches=[[Part_Workbench|Part]]
|SeeAlso=[[Part_Primitives|Part Primitives]]
|SeeAlso=[[Part_Primitives|Part Primitives]]
}}
}}


== Description == <!--T:9-->
==Description== <!--T:21-->

<!--T:9-->
Creates a simple parametric cylinder, with position, angle, radius and height parameters.
Creates a simple parametric cylinder, with position, angle, radius and height parameters.


Line 33: Line 36:
'''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.
'''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 or by double-clicking on the cylinder in the model tree.
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-->
<!--T:8-->
Line 40: Line 44:
== Properties == <!--T:11-->
== Properties == <!--T:11-->


<!--T:20-->
* {{PropertyData|Angle:}} This is the rotation angle that permits the creation of a portion of cylinder (it is set to 360° by default)
* {{PropertyData|Height:}} The height is the distance in the z-axis
* {{PropertyData|Angle}}: This is the rotation angle that permits the creation of a portion of cylinder (it is set to 360° by default)
* {{PropertyData|Radius:}} The radius defines a plane in x-y.
* {{PropertyData|Height}}: The height is the distance in the z-axis
* {{PropertyData|First Angle}}: angle in first direction. {{Version|0.20}}
* {{PropertyData|Radius}}: The radius defines a plane in x-y.
* {{PropertyData|Second Angle}}: angle in second direction. {{Version|0.20}}
* {{PropertyData|First Angle}}: Angle in first direction. {{Version|0.20}}
* {{PropertyData|Second Angle}}: Angle in second direction. {{Version|0.20}}

== Scripting == <!--T:22-->

<!--T:23-->
A Part Cylinder can be created using the following function:

</translate>
{{Code|code=
cylinder = FreeCAD.ActiveDocument.addObject("Part::Cylinder", "myCylinder")
}}
<translate>

<!--T:24-->
* Where {{Incode|"myCylinder"}} is the name for the object.
* The function returns the newly created object.



<!--T:14-->
<!--T:14-->
Line 50: Line 71:
|[[Part_Box|Box]]
|[[Part_Box|Box]]
|[[Part_Sphere|Sphere]]
|[[Part_Sphere|Sphere]]
|[[Part_Module|Part]]
|[[Part_Workbench|Part]]
|IconL=Part_Box.svg
|IconL=Part_Box.svg
|IconR=Part_Sphere.svg
|IconR=Part_Sphere.svg

Revision as of 14:02, 8 January 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

  1. Switch to the Part Workbench
  2. There are several ways to invoke the command:
    • Press the Cylinder button in the toolbar.
    • Select Part → Primitives → Cylinder 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.

a cylinder created with the Cylinder tool

Properties

  • DataAngle: This is the rotation angle that permits the creation of a portion of cylinder (it is set to 360° by default)
  • DataHeight: The height is the distance in the z-axis
  • DataRadius: The radius defines a plane in x-y.
  • DataFirst Angle: Angle in first direction. introduced in version 0.20
  • DataSecond Angle: Angle in second direction. introduced in version 0.20

Scripting

A Part Cylinder can be created using the following function:

cylinder = FreeCAD.ActiveDocument.addObject("Part::Cylinder", "myCylinder")
  • Where "myCylinder" is the name for the object.
  • The function returns the newly created object.