Sandbox:Thebeav

Properties



 * The shape onto which the chamfer is to be applied.
 * Specifies the orientation and position of the shape in the 3D space.
 * Label given to the object. Change to suit your needs.

Scripting
The Chamfer tool can by used in macros and from the python console by adding a Chamfer object to the document.

Example Script:

Example Script Explanation:


 * Creates a 5 mm cube. See Part_API for an explanation of the makeBox method.


 * Adds a new object to the document of type Chamfer (from the Part module) with label "myChamfer".


 * Specifies that the base shape of the chamfer object should be "myCube".


 * Creates an empty array "myEdges" and then appends the array with each edge's chamfer parameters.
 * Syntax for each item should be (edge#, chamfer start length, chamfer end length)


 * Sets the Edges attribute of our Chamfer object equal to the array we just created.


 * This line simply hides "myCube" so that our newly created "myChamfer" object is the only one visible.