Part Primitives

Description
Part Primitives opens a dialog to create any of the parametric geometric primitives defined in the Part Workbench.



Usage
To create a primitive, either The dialog keeps open so that you can subsequently create further primitives.
 * 1) * press the button in the toolbar.
 * 2) * select the from the menu bar.
 * 3) In the appearing dialog select primitive type, set its parameters and location, finally press

To edit a primitives there are 2 ways:

Using the dialog:
 * 1) Select the primitive in the tree and double-click on it.
 * 2) The same dialog will open that was also used to create the primitive. Change there the parameters and you get a live preview of the changed primitive.
 * 3) To finish the editing press.

Using the property editor:
 * 1) Select the primitive in the tree.
 * 2) Edits its properties in the Properties table.

Geometric Primitives
Some of the available (parametric) geometric primitives that are possible:
 * [[Image:Part_Plane.svg|32px]] Plane: inserts a simple parametric plane 10 x 10 mm, with the parameters of position, length, and width.
 * [[Image:Tree_Part_Box_Parametric.svg|32px]] Box/Cube: inserts a parametric, rectangular cuboid, geometric primitive into the active document.
 * [[Image:Tree_Part_Cylinder_Parametric.svg|32px]] Cylinder: Inserts a simple parametric cylinder, with position, angle, radius and height parameters in to he active document.
 * [[Image:Tree_Part_Cone_Parametric.svg|32px]] Cone: Inserts a parametric truncated Cone in to the active document.
 * [[Image:Tree_Part_Sphere_Parametric.svg|32px]] Sphere: Inserts a parametric sphere, with position, angle1, angle2, angle3 and radius parameters.
 * [[Image:Part_Ellipsoid.svg|32px]] Ellipsoid: Inserts a parametric Ellipsoid solid in to the active document.
 * [[Image:Tree_Part_Torus_Parametric.svg|32px]] Torus: Inserts a simple parametric torus, with position, angle1, angle2, angle3, radius1 and radius2 as parameters in to the active document.
 * [[Image:Part_Prism.svg|32px]] Prism: Inserts a solid defined by a regular polygon cross section and a height in to the active document.
 * [[Image:Part_Wedge.svg|32px]] Wedge: Inserts a parametric Wedge object in to the active document.
 * [[Image:Part_Helix.svg|32px]] Helix: Inserts a Helix geometric primitive in to the active document. Common usage for Helix is creating threads.
 * [[Image:Part_Spiral.svg|32px]] Spiral: Inserts a Spiral geometric primitive in to the active workbench.
 * [[Image:Part_Circle.svg|32px]] Circle: Inserts a circular curved edge in to the active document.
 * [[Image:Part_Ellipse.svg|32px]] Ellipse: Inserts an elliptical curved edge in to the active document.
 * [[Image:Part_Point.svg|32px]] Point (Vertex): Inserts a Point (vertex) geometric primitive in to the active document.
 * [[Image:Part_Line.svg|32px]] Line (Edge): creates a simple line segment delimited by two vertices.
 * [[Image:Part_RegularPolygon.svg|32px]] Regular Polygon: Inserts a RegularPolygon geometric primitive in to the active document.

Inheritance
All part primitives are objects which derive from the class. This class in turn derives from the basic Part Feature object ( class).



Scripting
Part scripting

Test the creation of the primitives with a script.

This can be run from the Python console.

This script is located in the installation directory of the program, and can be examined to see how the basic primitives are built.

It can be used as input to the program as well.