FreeCAD-Doc/localwiki/Macro_WorkFeatures.html
2018-07-08 12:11:49 -05:00

444 lines
36 KiB
HTML

<html><head><title>Macro WorkFeatures</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Macro WorkFeatures</h1></div>
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><table class="fcinfobox wikitable ct" width="100%" style="float: right; width: 230px; margin-left: 10px;">
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id="Macro_WorkFeatures"><a href="https://www.freecadweb.org/wiki/index.php?title=File:WF_wf.png" class="image"><img alt="WF wf.png" src="32px-WF_wf.png" width="32" height="32" srcset="/wiki/images/thumb/9/9d/WF_wf.png/48px-WF_wf.png 1.5x, WF_wf.png 2x" /></a> Macro WorkFeatures</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Description
</th></tr>
<tr>
<td class="ctEven left macro-description">Tool utility to create Points, Axis, Planes...and other usefull functions.
</td></tr>
<tr>
<th class="ctOdd">Author
</th></tr>
<tr>
<td class="ctEven macro-author"><a href="https://www.freecadweb.org/wiki/index.php?title=User:Rentlau_64&amp;action=edit&amp;redlink=1" class="new" title="User:Rentlau 64 (page does not exist)">rentlau_64</a>
</td></tr>
<tr>
<th class="ctOdd">Links
</th></tr>
<tr>
<td class="ctEven"><a href="Macros_recipes.html" title="Macros recipes">Macros recipes</a><br /><a href="How_to_install_macros.html" title="How to install macros">How to install macros</a><br /><a href="Customize_Toolbars.html" title="Customize Toolbars">How to customize toolbars</a>
</td></tr>
<tr>
<th class="ctOdd">Version
</th></tr>
<tr>
<td class="ctEven macro-version">00.52
</td></tr>
<tr>
<th class="ctOdd">Date last modification
</th></tr>
<tr>
<td class="ctEven macro-date">2018-01-31
</td></tr>
<tr>
<th class="ctOdd">
</th></tr>
<tr>
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="#Macro_WorkFeatures"><span class="tocnumber">1</span> <span class="toctext">Macro WorkFeatures</span></a></li>
<li class="toclevel-1 tocsection-1"><a href="#Description"><span class="tocnumber">2</span> <span class="toctext">Description</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#Uses"><span class="tocnumber">3</span> <span class="toctext">Uses</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#Script"><span class="tocnumber">4</span> <span class="toctext">Script</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#Examples"><span class="tocnumber">5</span> <span class="toctext">Examples</span></a>
<ul>
<li class="toclevel-2 tocsection-5"><a href="#Cutting_tools"><span class="tocnumber">5.1</span> <span class="toctext">Cutting tools</span></a></li>
<li class="toclevel-2 tocsection-6"><a href="#Concentric_constraint_between_two_non_cylindrical_parts"><span class="tocnumber">5.2</span> <span class="toctext">Concentric constraint between two non cylindrical parts</span></a></li>
<li class="toclevel-2 tocsection-7"><a href="#Rotation_Object"><span class="tocnumber">5.3</span> <span class="toctext">Rotation Object</span></a></li>
</ul>
</li>
<li class="toclevel-1 tocsection-8"><a href="#Links"><span class="tocnumber">6</span> <span class="toctext">Links</span></a></li>
<li class="toclevel-1 tocsection-9"><a href="#Latest_version"><span class="tocnumber">7</span> <span class="toctext">Latest version</span></a></li>
</ul>
</div>
</td></tr>
</table>
<p><br />
</p>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>Tool utility to create Points (mid points, center of circle, center of object(s)...),
Axes (from 2 points, Normal of a plane...),
Planes (from 3 points, from one axis and a point...)
and many other useful features to facilitate the creation of your project. This utility is up next in the combo view with "Work Features" label.
</p><p><br />
<a href="https://www.freecadweb.org/wiki/index.php?title=File:WF.png" class="image" title="WorkFeatures"><img alt="WorkFeatures" src="640px-WF.png" width="640" height="370" srcset="/wiki/images/thumb/9/99/WF.png/960px-WF.png 1.5x, /wiki/images/thumb/9/99/WF.png/1280px-WF.png 2x" /></a>
</p>
<div style="clear:both"></div>
<p><br />
</p>
<h2><span class="mw-headline" id="Uses">Uses</span></h2>
<p><b>Work Features</b>
</p>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 235px"><div style="width: 235px">
<div class="thumb" style="width: 230px;"><div style="margin:39px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_WorkFeatures_01.png" class="image"><img alt="" src="200px-Macro_WorkFeatures_01.png" width="200" height="352" srcset="/wiki/images/thumb/8/8a/Macro_WorkFeatures_01.png/300px-Macro_WorkFeatures_01.png 1.5x, /wiki/images/thumb/8/8a/Macro_WorkFeatures_01.png/400px-Macro_WorkFeatures_01.png 2x" /></a></div></div>
<div class="gallerytext">
<p>After activating Work Features, the tool moves to the left in the window Combo view.
</p>
</div>
</div></li>
<li class="gallerybox" style="width: 235px"><div style="width: 235px">
<div class="thumb" style="width: 230px;"><div style="margin:17px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_WorkFeatures_07.png" class="image"><img alt="" src="200px-Macro_WorkFeatures_07.png" width="200" height="396" srcset="/wiki/images/2/28/Macro_WorkFeatures_07.png 1.5x" /></a></div></div>
<div class="gallerytext">
<p>Each use and each Tag that corresponds to a function group is a group created in the name of Tag used. The Axis, Point and Planes origin are directly keyed to hidden.
</p>
</div>
</div></li>
<li class="gallerybox" style="width: 235px"><div style="width: 235px">
<div class="thumb" style="width: 230px;"><div style="margin:17px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_WorkFeatures_08.png" class="image"><img alt="" src="200px-Macro_WorkFeatures_08.png" width="200" height="396" srcset="/wiki/images/e/e9/Macro_WorkFeatures_08.png 1.5x" /></a></div></div>
<div class="gallerytext">
<p>You can ENTERING AND USING common commands to make visible the created function.<br />Example key <b><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Space</span></b> or select your object and click right of mouse and click "<b>Hide selection</b>" or "<b>Show selection</b>".
</p>
</div>
</div></li>
</ul>
</center>
<p><br />
<b>Origin Tab</b>
</p>
<table>
<tr>
<td><div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_WorkFeatures_02.png" class="image"><img alt="Macro WorkFeatures 02.png" src="200px-Macro_WorkFeatures_02.png" width="200" height="336" srcset="/wiki/images/thumb/d/da/Macro_WorkFeatures_02.png/300px-Macro_WorkFeatures_02.png 1.5x, /wiki/images/d/da/Macro_WorkFeatures_02.png 2x" /></a></div>
</td>
<td>
<ul><li><b>Origin Tab</b></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Origin</span>&#160;: Create at origin: a point and X,Y and Z axis and XZ,XY and YZ planes. The Axis, Point and Planes origin are directly keyed to hidden.</li></ul>
</td></tr></table>
<p><b>Points Tab</b>
</p>
<table>
<tr>
<td><div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_WorkFeatures_03.png" class="image"><img alt="Macro WorkFeatures 03.png" src="200px-Macro_WorkFeatures_03.png" width="200" height="336" srcset="/wiki/images/thumb/a/ab/Macro_WorkFeatures_03.png/300px-Macro_WorkFeatures_03.png 1.5x, /wiki/images/a/ab/Macro_WorkFeatures_03.png 2x" /></a></div>
</td>
<td>
<ul><li><b>Points Tab</b></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Object(s) Center</span>&#160;: Create a Point at center location of all selected Object(s).</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Lines(s) Center</span>&#160;: Create a Point at mid point location of each selected Line(s).</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Line(s) Extrema</span>&#160;: Create Points at start and end location of each selected Line(s).</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Circle(s) Center</span>&#160;: Create a Point at center location of each selected Circle(s) or Arc(s).</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Point along Line</span>&#160;: Create a Point on a line at some distance of the extremity point selected.</li>
<li> <b>SpinBox</b>&#160;: enter the displacement value</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Face(s) Center</span>&#160;: Create a Point at center location of each selected Face(s).</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Point (Line,Face)</span>&#160;: Create a point at the intersection of the Line and Plane selected.</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Point (Line,Point)</span>&#160;: Create a projection Point of a Point onto a Line and symetric point.</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Point (Point,Face)</span>&#160;: Create a projection Point of a Point onto a Face.</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Object(s) Base Point</span>&#160;: Create Base Point of all selected Object(s).</li></ul>
</td></tr></table>
<p><br />
<b>Axis Tab</b>
</p>
<table>
<tr>
<td><div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_WorkFeatures_04.png" class="image"><img alt="Macro WorkFeatures 04.png" src="200px-Macro_WorkFeatures_04.png" width="200" height="336" srcset="/wiki/images/thumb/f/f3/Macro_WorkFeatures_04.png/300px-Macro_WorkFeatures_04.png 1.5x, /wiki/images/f/f3/Macro_WorkFeatures_04.png 2x" /></a></div>
</td>
<td>
<ul><li><b>Axis Tab</b></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Object(s) X, Y, Z Axes</span>&#160;: Create 3 Axes at center location of all selected Object(s).</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Two Points Axis</span>&#160;: Create an Axis crossing 2 Points.</li>
<li> <b>SpinBox</b>&#160;: enter the displacement value</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Cylinder(s) Axis</span>&#160;: Create the Axis of a Cylinder.</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Axis (Line,Line)</span>&#160;: Create an Axis between 2 Axes.</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Plane(s) Axes</span>&#160;: Create 2 Perpendicular Axes at center location of a Plane.</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Axis (Point,Axis)</span>&#160;: Create an Axis parallel to an Axis and crossing a Point.</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Axis (Axis,Point)</span>&#160;: Create an Axis perpendicular to an Axis and crossing a Point.</li>
<li> <b>SpinBox</b>&#160;: enter the displacement value</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Axis (Plane,Axis)</span>&#160;: Create an Axis on a Plane by projection from another Axis.</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Axis (Plane,Plane)</span>&#160;: Create an Axis by intersect of 2 Planes.</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Object(s) Base Axis</span>&#160;: Create 3 Axes at Base location of all selected Object(s).</li></ul>
</td></tr></table>
<p><b>Plane Tab</b>
</p>
<table>
<tr>
<td><div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_WorkFeatures_05.png" class="image"><img alt="Macro WorkFeatures 05.png" src="200px-Macro_WorkFeatures_05.png" width="200" height="336" srcset="/wiki/images/thumb/a/ae/Macro_WorkFeatures_05.png/300px-Macro_WorkFeatures_05.png 1.5x, /wiki/images/a/ae/Macro_WorkFeatures_05.png 2x" /></a></div>
</td>
<td>
<ul><li><b>Plane Tab</b></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Three Points Plane</span>&#160;: Create a Plane crossing 3 Points.</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Plane (Point, Axis)</span>&#160;: Create a plane crossing a Line and a Point. The point MUST not belongs to the Line&#160;!</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Plane (Point, _Axis)</span>&#160;: Create a plane perpendicular to a Line and crossing a Point.</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Plane (Point, Plane)</span>&#160;: Create a plane crossing a Point and parallel to a Plane.</li>
<li> <b>SpinBox</b>&#160;: enter the displacement value</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Plane (Plane, Axis)</span>&#160;: Create a Plane crossing a Line and perpendicular to a Plane.</li>
<li> <b>SpinBox</b>&#160;: enter the displacement value</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Object(s) Center Planes</span>&#160;: Create 3 Planes (XY, XZ and YZ) at center location of all selected Object(s).</li></ul>
</td></tr></table>
<p><b>Objects Tab</b>
</p>
<table>
<tr>
<td><div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_WorkFeatures_06.png" class="image"><img alt="Macro WorkFeatures 06.png" src="200px-Macro_WorkFeatures_06.png" width="200" height="352" srcset="/wiki/images/thumb/6/6e/Macro_WorkFeatures_06.png/300px-Macro_WorkFeatures_06.png 1.5x, /wiki/images/6/6e/Macro_WorkFeatures_06.png 2x" /></a></div>
</td>
<td>
<ul><li><b>Objects Tab</b></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Bounding Box(es)</span>&#160;: Create bounding boxes around each of selected object(s).</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Bounding Box</span>&#160;: Create one bounding box around all of selected object(s).</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Cylinder</span>&#160;: First select an Axis and a Point. Define Diameter and Length if needed. Then Click the button... It will create a Cylinder aligned on the selected axis. with one of the extremities at point selected.</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Cube</span>&#160;: First select an Axis and a Point. Define Dimensions if needed. Then Click the button... It will create a Cube aligned on the selected axis. with one of the extremities at point selected.</li></ul>
</td></tr></table>
<p><b>Views Tab</b>
</p>
<table>
<tr>
<td><div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_WorkFeatures_09.png" class="image"><img alt="Macro WorkFeatures 09.png" src="200px-Macro_WorkFeatures_09.png" width="200" height="348" srcset="/wiki/images/thumb/7/7b/Macro_WorkFeatures_09.png/300px-Macro_WorkFeatures_09.png 1.5x, /wiki/images/thumb/7/7b/Macro_WorkFeatures_09.png/400px-Macro_WorkFeatures_09.png 2x" /></a></div>
</td>
<td>
<ul><li><b>Views Tab</b></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Align to ...</span>&#160;: Set the current view perpendicular to the selected Face, or aligned to the selected Axis, or aligned on 2 Points. ReClick with same selection, will reverse the direction.</li></ul>
</td></tr></table>
<p><b>Modif. Tab</b>
</p>
<table>
<tr>
<td><div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_WorkFeatures_10.png" class="image"><img alt="Macro WorkFeatures 10.png" src="200px-Macro_WorkFeatures_10.png" width="200" height="399" srcset="/wiki/images/thumb/9/9d/Macro_WorkFeatures_10.png/300px-Macro_WorkFeatures_10.png 1.5x, /wiki/images/9/9d/Macro_WorkFeatures_10.png 2x" /></a></div>
</td>
<td>
<ul><li><b>Modif. Cutting Tab</b></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Select Object</span>&#160;: After selected your object and, First, one Object to cut and click 'Select Object' button,
<ul><li> The name of the object selected are displayed</li></ul></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Select Cut Line</span>&#160;: Second, one cutting Line and click 'Select Cut Line' button,
<ul><li> The name of the line selected are displayed</li></ul></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Select Ref. Plane</span>&#160;: Last, a reference Plane and click 'Select Ref. Plane' button!
<ul><li> The name of the plane selected are displayed</li></ul></li>
<li> <b>Angle</b>&#160;: Angle for cut (Defaut&#160;: 0.0)</li>
<li> <b>Thichness</b>&#160;: Thichness the cut (Defaut&#160;: 0.0)</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Reset</span>&#160;: Reset the values</li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Apply</span>&#160;: Apply the values</li></ul>
</td></tr></table>
<p><b>Check. Tab</b>
</p>
<table>
<tr>
<td><div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_WorkFeatures_11.png" class="image"><img alt="Macro WorkFeatures 11.png" src="200px-Macro_WorkFeatures_11.png" width="200" height="396" srcset="/wiki/images/thumb/e/e1/Macro_WorkFeatures_11.png/300px-Macro_WorkFeatures_11.png 1.5x, /wiki/images/e/e1/Macro_WorkFeatures_11.png 2x" /></a></div>
</td>
<td>
<ul><li><b>Check. Tab</b></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">are Parallel&#160;?</span>&#160;: Check if two faces or two Edges are Parallel:
<ul><li>Select the 2 faces/planes or 2 Edges/Lines and Click this button</li></ul></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">are Perpendicular&#160;?</span>&#160;: Check if two faces or two Edges are Perpendicular:
<ul><li>Select the 2 faces/planes or 2 Edges/Lines and Click this button</li></ul></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">are Coplanar&#160;?</span>&#160;: Check if two faces or two Edges are Coplanar:
<ul><li>Select the 2 faces/planes or 2 Edges/Lines and Click this button</li></ul></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Distance Clearance&#160;?</span>&#160;: Check for two Objects Clearance distance:
<ul><li>Quick measurements between parallel faces and similarly placed objects Select the 2 Objects and Click this button</li></ul></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Angle&#160;?</span>&#160;: Calculate angle from 2 objects:
<ul><li>Angle measurement between two Edges or two Planes</li>
<li>Select the 2 Edges and Click this button</li>
<li>or&#160;: Select the 2 Planes and Click this button</li>
<li>or&#160;: Select one Edge and one Plane and Click this button</li></ul></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Distance&#160;?</span>&#160;: Check for two Points distance:
<ul><li>Distances measurement and Delta values (on main Axes) between two Points</li>
<li>Select the 2 Points and Click this button</li></ul></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Length&#160;?</span>&#160;: Check for Line Length:
<ul><li>Length measurement and Delta values (on main Axes) for a Line</li>
<li>Select the Line and Click this button</li></ul></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Area&#160;?</span>&#160;: Check for surface Area:
<ul><li>Area measurement for a Plane or a set of Planes.</li>
<li>Select One or several Planes and Click this button</li></ul></li>
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">View</span>&#160;: Detect the position of the camera. The returned value is the value provided by the function getCameraOrientation().</li></ul>
</td></tr></table>
<h2><span class="mw-headline" id="Script">Script</span></h2>
<p>After downloading the file compressed here
<b><a rel="nofollow" class="external text" href="https://github.com/Rentlau/WorkFeature">Download the latest version on GitHub</a></b> ,
you must unzip the zip and copy all the files in your macro directory.
</p><p><b>PS:This macro is still in development please visit this page for commonly be sure to have the latest version.</b>
</p><p><br />
</p>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Work_Features_GitHub_00.png" class="image" title="Download in GitHub click the Download ZIP button"><img alt="Download in GitHub click the Download ZIP button" src="640px-Macro_Work_Features_GitHub_00.png" width="640" height="415" srcset="/wiki/images/thumb/1/17/Macro_Work_Features_GitHub_00.png/960px-Macro_Work_Features_GitHub_00.png 1.5x, /wiki/images/1/17/Macro_Work_Features_GitHub_00.png 2x" /></a></div></div>
<div style="clear:both"></div>
<p><br />
Install the macro <a rel="nofollow" class="external text" href="https://github.com/FreeCAD/FreeCAD-addons/blob/master/addons_installer.FCMacro">addons_installer</a> for install easily WorkFeatures and other interesting macros
</p><p>Here for <a href="How_to_install_macros.html" title="How to install macros">How to install macros</a> detailed
</p>
<h2><span class="mw-headline" id="Examples">Examples</span></h2>
<h3><span class="mw-headline" id="Cutting_tools">Cutting tools</span></h3>
<p><b>Setting of the Cutting tools:</b> Select an object to cut, a cutting line and a reference Plane.
Angle is an angle between the cutting Plane and the Ref. Plane.
Thickness is the wide of the of the cutting Plane.
</p>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CuttingSettings.jpg" class="image"><img alt="" src="338px-CuttingSettings.jpg" width="338" height="250" srcset="/wiki/images/thumb/b/b9/CuttingSettings.jpg/507px-CuttingSettings.jpg 1.5x, /wiki/images/thumb/b/b9/CuttingSettings.jpg/676px-CuttingSettings.jpg 2x" /></a></div></div>
<div class="gallerytext">
<p>Here we have selected a cylinder.
</p>
</div>
</div></li>
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CuttingResult.jpg" class="image"><img alt="" src="330px-CuttingResult.jpg" width="330" height="250" srcset="/wiki/images/thumb/1/1b/CuttingResult.jpg/495px-CuttingResult.jpg 1.5x, /wiki/images/thumb/1/1b/CuttingResult.jpg/660px-CuttingResult.jpg 2x" /></a></div></div>
<div class="gallerytext">
<p>The result will be&#160;: the cylinder is then cut in two parts!
</p>
</div>
</div></li>
</ul>
</center>
<div style="clear:both"></div>
<center>
<p><b>Example the practice</b>
</p>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Work_Features_Cutting_01.png" class="image"><img alt="" src="351px-Macro_Work_Features_Cutting_01.png" width="351" height="250" srcset="/wiki/images/thumb/6/66/Macro_Work_Features_Cutting_01.png/526px-Macro_Work_Features_Cutting_01.png 1.5x, /wiki/images/thumb/6/66/Macro_Work_Features_Cutting_01.png/701px-Macro_Work_Features_Cutting_01.png 2x" /></a></div></div>
<div class="gallerytext">
<p>Select the <b>Tab <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Plane</span></b>
</p>
</div>
</div></li>
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Work_Features_Cutting_02.png" class="image"><img alt="" src="351px-Macro_Work_Features_Cutting_02.png" width="351" height="250" srcset="/wiki/images/thumb/2/2e/Macro_Work_Features_Cutting_02.png/526px-Macro_Work_Features_Cutting_02.png 1.5x, /wiki/images/thumb/2/2e/Macro_Work_Features_Cutting_02.png/701px-Macro_Work_Features_Cutting_02.png 2x" /></a></div></div>
<div class="gallerytext">
<p>and click the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Plane</span> button<br /> (you can change the dimensions of the plane (<b>Default: 10 x 10</b>)).
</p>
</div>
</div></li>
</ul>
</center>
<div style="clear:both"></div>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Work_Features_Cutting_03.png" class="image"><img alt="" src="351px-Macro_Work_Features_Cutting_03.png" width="351" height="250" srcset="/wiki/images/thumb/8/87/Macro_Work_Features_Cutting_03.png/526px-Macro_Work_Features_Cutting_03.png 1.5x, /wiki/images/thumb/8/87/Macro_Work_Features_Cutting_03.png/701px-Macro_Work_Features_Cutting_03.png 2x" /></a></div></div>
<div class="gallerytext">
<p>click you work object. The plane is created tangent of the object (here a cylinder)
</p>
</div>
</div></li>
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Work_Features_Cutting_04.png" class="image"><img alt="" src="351px-Macro_Work_Features_Cutting_04.png" width="351" height="250" srcset="/wiki/images/thumb/b/b9/Macro_Work_Features_Cutting_04.png/526px-Macro_Work_Features_Cutting_04.png 1.5x, /wiki/images/thumb/b/b9/Macro_Work_Features_Cutting_04.png/701px-Macro_Work_Features_Cutting_04.png 2x" /></a></div></div>
<div class="gallerytext">
<p>click the Tab <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Modif</span>, and <br /><b>1&#160;:</b> click your object for cutting<br /><b>2&#160;:</b> click the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Select object</span> button (here the cylinder and then name is displayed)
</p>
</div>
</div></li>
</ul>
</center>
<div style="clear:both"></div>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Work_Features_Cutting_05.png" class="image"><img alt="" src="351px-Macro_Work_Features_Cutting_05.png" width="351" height="250" srcset="/wiki/images/thumb/b/bf/Macro_Work_Features_Cutting_05.png/526px-Macro_Work_Features_Cutting_05.png 1.5x, /wiki/images/thumb/b/bf/Macro_Work_Features_Cutting_05.png/701px-Macro_Work_Features_Cutting_05.png 2x" /></a></div></div>
<div class="gallerytext">
<p><b>3&#160;:</b> click your line for cutting your cylinder<br /><b>4&#160;:</b> click the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Select Cut Line</span> (then name is displayed)
</p>
</div>
</div></li>
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Work_Features_Cutting_06.png" class="image"><img alt="" src="351px-Macro_Work_Features_Cutting_06.png" width="351" height="250" srcset="/wiki/images/thumb/e/e1/Macro_Work_Features_Cutting_06.png/526px-Macro_Work_Features_Cutting_06.png 1.5x, /wiki/images/thumb/e/e1/Macro_Work_Features_Cutting_06.png/701px-Macro_Work_Features_Cutting_06.png 2x" /></a></div></div>
<div class="gallerytext">
<p><b>5&#160;:</b> click the work plane<br /><b>6&#160;:</b> click the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Select Ref. Plane</span> button (then name is displayed)
</p>
</div>
</div></li>
</ul>
</center>
<div style="clear:both"></div>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Work_Features_Cutting_07.png" class="image"><img alt="" src="351px-Macro_Work_Features_Cutting_07.png" width="351" height="250" srcset="/wiki/images/thumb/5/58/Macro_Work_Features_Cutting_07.png/526px-Macro_Work_Features_Cutting_07.png 1.5x, /wiki/images/thumb/5/58/Macro_Work_Features_Cutting_07.png/701px-Macro_Work_Features_Cutting_07.png 2x" /></a></div></div>
<div class="gallerytext">
<p>click the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Apply</span> button
</p>
</div>
</div></li>
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Work_Features_Cutting_08.png" class="image"><img alt="" src="351px-Macro_Work_Features_Cutting_08.png" width="351" height="250" srcset="/wiki/images/thumb/1/14/Macro_Work_Features_Cutting_08.png/526px-Macro_Work_Features_Cutting_08.png 1.5x, /wiki/images/thumb/1/14/Macro_Work_Features_Cutting_08.png/701px-Macro_Work_Features_Cutting_08.png 2x" /></a></div></div>
<div class="gallerytext">
<p>The operation is completed and all operations are preserved.
</p>
</div>
</div></li>
</ul>
</center>
<div style="clear:both"></div>
<p><br />
</p>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Work_Features_Cutting_09.png" class="image"><img alt="" src="351px-Macro_Work_Features_Cutting_09.png" width="351" height="250" srcset="/wiki/images/thumb/8/89/Macro_Work_Features_Cutting_09.png/526px-Macro_Work_Features_Cutting_09.png 1.5x, /wiki/images/thumb/8/89/Macro_Work_Features_Cutting_09.png/701px-Macro_Work_Features_Cutting_09.png 2x" /></a></div></div>
<div class="gallerytext">
<p>you can also give Angle and Thickness for your cut.
</p>
</div>
</div></li>
</ul>
</center>
<div style="clear:both"></div>
<p><br />
</p>
<h3><span class="mw-headline" id="Concentric_constraint_between_two_non_cylindrical_parts">Concentric constraint between two non cylindrical parts</span></h3>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 535px"><div style="width: 535px">
<div class="thumb" style="width: 530px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Concentric_Constraint_Between_two_non_cylindrical_parts.gif" class="image"><img alt="" src="Concentric_Constraint_Between_two_non_cylindrical_parts.gif" width="500" height="500" /></a></div></div>
<div class="gallerytext">
<p>How to Constraint Between two non cylindrical parts.<br /><b>1&#160;:</b> The original object to modify.<br /><b>2&#160;:</b> Objective center two square tubes.<br /><b>3&#160;:</b> Select the first object and in the menu <b>Axis 1/2</b> click "Object(s)" X, Y, Z Axes.<br /><b>4&#160;:</b> Same procedure for the second object.<br /><b>5&#160;:</b> Click on button <b>Draw style</b> and onto "Wireframe",<br /><b>6&#160;:</b> for clarify the view.<br /><b>7&#160;:</b> Select the object to center and his axis created.<br /><b>8&#160;:</b> Click the button <b>Draft Move</b><br /><b>9&#160;:</b> and select the first axis to move on the second axis.<br /><b>10&#160;:</b> Restore normal view with on button <b>Draw style</b> and onto <b>As is</b>.<br /><b>11&#160;:</b> Click the first object moved and correct the position with "Combo view &gt; Data &gt; Placement".<br /><b>12&#160;:</b> Select the object created by WorkFeature (contener axis) and delete it.<br /><b>13&#160;:</b> The object weshed.<br /><b>14&#160;:</b> The result.
</p>
</div>
</div></li>
</ul>
</center>
<div style="clear:both"></div>
<p><br />
</p>
<h3><span class="mw-headline" id="Rotation_Object">Rotation Object</span></h3>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 535px"><div style="width: 535px">
<div class="thumb" style="width: 530px;"><div style="margin:92px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:WorkFeature_Rotation_Object.gif" class="image"><img alt="" src="500px-WorkFeature_Rotation_Object.gif" width="500" height="346" srcset="/wiki/images/f/f2/WorkFeature_Rotation_Object.gif 1.5x" /></a></div></div>
<div class="gallerytext">
<p>Click the image for see the animation.<br />
</p>
</div>
</div></li>
</ul>
</center>
<div style="clear:both"></div>
<p><br />
</p>
<h2><span class="mw-headline" id="Links">Links</span></h2>
<p>The forum discussion <a rel="nofollow" class="external text" href="http://forum.freecadweb.org/viewtopic.php?f=22&amp;t=9056">MACRO:Work Feature 2014_12</a>
</p>
<h2><span class="mw-headline" id="Latest_version">Latest version</span></h2>
<p>Icons&#160;:
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:WF_wf.png" class="image"><img alt="WF wf.png" src="WF_wf.png" width="64" height="64" /></a>
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:WF_centerObjectsPlanes.png" class="image"><img alt="WF centerObjectsPlanes.png" src="WF_centerObjectsPlanes.png" width="64" height="64" /></a>
</p><p>Sources&#160;:
</p><p>08/03:2105&#160;: <a rel="nofollow" class="external text" href="http://github.com/Rentlau/WorkFeature.git">WF_2015_03_08</a>
- Circle cut added
- Are Parallel, Are Perpendicular, Are Coplanar added
</p><p>17/02/2015&#160;: <a rel="nofollow" class="external text" href="https://github.com/Rentlau/WorkFeature.git">WF_2015_02_17</a>
- Circle and Ellipse Tab added
- Cutting tab added
</p><p>25/01/2015&#160;: <a rel="nofollow" class="external text" href="http://forum.freecadweb.org/download/file.php?id=10937&amp;sid=b770dec5362ae499adb4173547ef445f">WF_2015_01_25.zip</a> add Object Cylinder Cube
</p><p>18/01/2015&#160;: <a rel="nofollow" class="external text" href="http://forum.freecadweb.org/download/file.php?id=10799">WF_2015_01_18.tar.gz</a> add plane and face to view
</p><p>28/12/2014&#160;: <a rel="nofollow" class="external text" href="http://forum.freecadweb.org/download/file.php?id=10347">WorkFeatures_2014_12_28.zip</a>
</p><p>27/12/2014&#160;: <a rel="nofollow" class="external text" href="http://forum.freecadweb.org/download/file.php?id=10325">WF_2014_12_27.zip</a>
</p><p><br />
</p>
<div style="clear:both"></div>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Macro_WorkFeatures&amp;oldid=253141">http://www.freecadweb.org/wiki/index.php?title=Macro_WorkFeatures&amp;oldid=253141</a>"</div>
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
</div>
</div>
<div id="mw-navigation">
<h2>Navigation menu</h2>
</body></html>