Macros recipes: Difference between revisions

From FreeCAD Documentation
m (icon)
(add EasyAlias macro)
(35 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

<translate>
<!--T:94-->
{|class="fcinfobox wikitable ct" height=100% style="width: 230px; float: right; margin-left: 1em" |
{|class="fcinfobox wikitable ct" height=100% style="width: 230px; float: right; margin-left: 1em" |
| class="ctTitle" style="font-weight: bold; font-size: 125%;" | [[Image:Text-x-python.png|32px]] Macros
| class="ctTitle" style="font-weight: bold; font-size: 125%;" | [[Image:Text-x-python.png|32px]] Macros
Line 7: Line 6:
| class="ctToc"|<br/>__TOC__
| class="ctToc"|<br/>__TOC__
|}
|}
<translate>

<!--T:95-->
<!--T:95-->
This page contains [[macros|macros]] that add functionality to a FreeCAD installation.
This page contains [[macros|macros]] that add functionality to a FreeCAD installation.
Line 15: Line 14:


== Categories == <!--T:96-->
== Categories == <!--T:96-->

</translate>
</translate>
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
<translate>
<translate>

===[[File:Part_CheckGeometry.svg]] 3D View operations=== <!--T:97-->
===[[File:Part_CheckGeometry.svg]] 3D View operations=== <!--T:97-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:98-->
<!--T:98-->
* {{MacroLink|Icon=Macro_Rotate_View_view_90_Degrees.png|Macro Rotate View|Macro Rotate View}}: This macro rotates the current view by 90° to the left. Only works if you are in Top view.
* {{MacroLink|Icon=Macro_Rotate_View_view_90_Degrees.png|Macro Rotate View|Macro Rotate View}}: This macro rotates the current view by 90° to the left. Only works if you are in Top view.
Line 40: Line 43:
* {{MacroLink|Icon=Macro HiddenAlls.png|Macro HiddenAlls|Macro Hidden Alls objects}}: This macro check hidden all object in the document (Visibility=False).
* {{MacroLink|Icon=Macro HiddenAlls.png|Macro HiddenAlls|Macro Hidden Alls objects}}: This macro check hidden all object in the document (Visibility=False).
* {{MacroLink|Icon=Macro If Selected Stay If Not Then Delete.png|Macro If Selected Stay If Not Then Delete|Macro If Selected Stay If Not Then Delete}} :All object not selected hare deletted !!.
* {{MacroLink|Icon=Macro If Selected Stay If Not Then Delete.png|Macro If Selected Stay If Not Then Delete|Macro If Selected Stay If Not Then Delete}} :All object not selected hare deletted !!.
* {{MacroLink|Icon=Macro SelectVisible2.png|Macro_Toggle_Visibility2|Macro Toggle Visibility2}}: Set of two macro, macro '''1:''' hidden the objects not selected, macro '''2:''' displayed alls objects, macro with the original visibility.
* {{MacroLink|Icon=Macro SelectVisible2.png|Macro_Toggle_Visibility2_1-2|Macro Toggle Visibility2 1-2}}: Set of two macro, macro '''1:Macro_Toggle_Visibility2_1-2''' hidden the objects not selected, macro '''2:Macro_Toggle_Visibility2_2-2''' displayed alls objects, macro with the original visibility.
* {{MacroLink|Icon=Macro_VisibleAlls2.png|Macro_Toggle_Visibility2_2-2|Macro Toggle Visibility2 2-2}}: Set of two macro, macro '''1:Macro_Toggle_Visibility2_1-2''' hidden the objects not selected, macro '''2:Macro_Toggle_Visibility2_2-2''' displayed alls objects, macro with the original visibility.
* {{MacroLink|Icon=SelectVisible.png|Macro SelectVisible|Macro SelectVisible}}: All visible objects in the tree will be selected.
* {{MacroLink|Icon=SelectVisible.png|Macro SelectVisible|Macro SelectVisible}}: All visible objects in the tree will be selected.
* {{MacroLink|Icon=Macro_Manage_Navigational_Styles1.png|Macro_Manage_Navigational_Style|Macro Manage Navigational Style1}}: This pair of macros allow you to alter the Navigation Style to 'CAD'.
* {{MacroLink|Icon=Macro_Manage_Navigational_Styles1.png|Macro_Manage_Navigational_Style|Macro Manage Navigational Style1}}: This pair of macros allow you to alter the Navigation Style to 'CAD'.
Line 53: Line 57:
* {{MacroLink|Icon=Macro_Mouse_over_cb.png|Macro Mouse over cb|Macro Mouse over cb}}: this macro display all elements below cursor (elements covered by other elements will also be displayed)
* {{MacroLink|Icon=Macro_Mouse_over_cb.png|Macro Mouse over cb|Macro Mouse over cb}}: this macro display all elements below cursor (elements covered by other elements will also be displayed)
* {{MacroLink|Icon=Macro_FC_element_selector.png|Macro FC element selector|Macro FC element selector}}: this macro display all elements below cursor same "Macro Mouse over cb" with GUI (elements covered by other elements will also be displayed)
* {{MacroLink|Icon=Macro_FC_element_selector.png|Macro FC element selector|Macro FC element selector}}: this macro display all elements below cursor same "Macro Mouse over cb" with GUI (elements covered by other elements will also be displayed)

</translate>
</translate>
</div>
</div>
Line 60: Line 65:


===[[File:Draft_FlipDimension.svg]] Animation=== <!--T:99-->
===[[File:Draft_FlipDimension.svg]] Animation=== <!--T:99-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:100-->
<!--T:100-->
* {{MacroLink|Icon=Macro_crank_simul.png|Macro crank simul|Macro crank simul}}: Rotation rod and piston
* {{MacroLink|Icon=Macro_crank_simul.png|Macro crank simul|Macro crank simul}}: Rotation rod and piston
Line 71: Line 78:
* {{MacroLink|Icon=Macro_Assemblage_Imprimante_3D.png|Macro Assemblage Imprimante 3D|Macro Assemblage Imprimante 3D}}: Simulation of movements of a 3D printer
* {{MacroLink|Icon=Macro_Assemblage_Imprimante_3D.png|Macro Assemblage Imprimante 3D|Macro Assemblage Imprimante 3D}}: Simulation of movements of a 3D printer
* {{MacroLink|Icon=Macro_Constraint_Draft.png|Macro Constraint Draft|Constraint Draft}}: Simple example animation Draft wires by use the Expressions for associate many wires and simulate or verify the movement. Here the circle rotation create the movement for all objects connected (This macro run with FreeCAD version 0.16)
* {{MacroLink|Icon=Macro_Constraint_Draft.png|Macro Constraint Draft|Constraint Draft}}: Simple example animation Draft wires by use the Expressions for associate many wires and simulate or verify the movement. Here the circle rotation create the movement for all objects connected (This macro run with FreeCAD version 0.16)

</translate>
</translate>
</div>
</div>
Line 79: Line 87:


===[[File:Applications-python.svg]] Code and Scripting=== <!--T:101-->
===[[File:Applications-python.svg]] Code and Scripting=== <!--T:101-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:102-->
<!--T:102-->
* {{MacroLink|Icon=Macro MessageBox.png|Macro MessageBox|Macro MessageBox}}: shows how to give information to the user through the GUI.
* {{MacroLink|Icon=Macro MessageBox.png|Macro MessageBox|Macro MessageBox}}: shows how to give information to the user through the GUI.
Line 100: Line 110:


===[[File:Arch_MeshToShape.svg]] Conversion=== <!--T:103-->
===[[File:Arch_MeshToShape.svg]] Conversion=== <!--T:103-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:104-->
<!--T:104-->
* {{MacroLink|Icon=Macro_Extract_Wires_from_Mesh.png|Macro Extract Wires from Mesh|Macro Extract Wires from Mesh}}: Extracts boundary wires from selected meshes
* {{MacroLink|Icon=Macro_Extract_Wires_from_Mesh.png|Macro Extract Wires from Mesh|Macro Extract Wires from Mesh}}: Extracts boundary wires from selected meshes
Line 110: Line 122:
* {{MacroLink|Icon=Macro FCWire To Volume.png|Macro FCWire To Volume|Macro FCWire To Volume}}: This macro create boolean operation with the objects selected just select the wires give the thickness and click "Create"
* {{MacroLink|Icon=Macro FCWire To Volume.png|Macro FCWire To Volume|Macro FCWire To Volume}}: This macro create boolean operation with the objects selected just select the wires give the thickness and click "Create"
* {{MacroLink|Icon=Macro_DeepCopy.png|Macro_DeepCopy|Macro DeepCopy}}: Make a compound out of a part with a copy of all its shapes.
* {{MacroLink|Icon=Macro_DeepCopy.png|Macro_DeepCopy|Macro DeepCopy}}: Make a compound out of a part with a copy of all its shapes.

</translate>
</translate>
</div>
</div>
Line 118: Line 131:


===[[File:Drawing-orthoviews.svg]] Drawing Workbench=== <!--T:105-->
===[[File:Drawing-orthoviews.svg]] Drawing Workbench=== <!--T:105-->

</translate>
</translate>
The [[Drawing Workbench|Drawing Workbench]] is considered obsolete since FreeCAD 0.17. Consider using the [[TechDraw Workbench|TechDraw Workbench]] instead.
The [[Drawing Workbench|Drawing Workbench]] is considered obsolete since FreeCAD 0.17. Consider using the [[TechDraw Workbench|TechDraw Workbench]] instead.
Line 123: Line 137:
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:106-->
<!--T:106-->
* {{MacroLink|Icon=Macro_Automatic_drawing.png|Macro Automatic drawing|Macro Automatic drawing}}: allows the user to get the view of his object in a drawing with 4 different position (front,top,iso,right). Needs some modification to be perfectly effective
* {{MacroLink|Icon=Macro_Automatic_drawing.png|Macro Automatic drawing|Macro Automatic drawing}}: allows the user to get the view of his object in a drawing with 4 different position (front,top,iso,right). Needs some modification to be perfectly effective
Line 129: Line 144:
* {{MacroLink|Icon=Macro_CartoucheFC_2.png|Macro CartoucheFC 2|Macro CartoucheFC 2}}: This GUI macro to fill simply all fields of the cartridge '''model 2''' of the plan implementation worksheet FreeCAD.
* {{MacroLink|Icon=Macro_CartoucheFC_2.png|Macro CartoucheFC 2|Macro CartoucheFC 2}}: This GUI macro to fill simply all fields of the cartridge '''model 2''' of the plan implementation worksheet FreeCAD.
* {{MacroLink|Icon=Macro_Normal_Vector.png|Macro Normal Vector|Macro Normal Vector}}: Get the normal vector of a preselected face for creating a drawing view normal to that face
* {{MacroLink|Icon=Macro_Normal_Vector.png|Macro Normal Vector|Macro Normal Vector}}: Get the normal vector of a preselected face for creating a drawing view normal to that face

</translate>
</translate>
</div>
</div>
Line 137: Line 153:


===[[File:Draft_BSpline.svg]] Dxf 2D Draft=== <!--T:107-->
===[[File:Draft_BSpline.svg]] Dxf 2D Draft=== <!--T:107-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:108-->
<!--T:108-->
* {{MacroLink|Icon=Macro Rectellipse.png|Macro Rectellipse|Macro Rectellipse}}: creates a parametric rectellipse
* {{MacroLink|Icon=Macro Rectellipse.png|Macro Rectellipse|Macro Rectellipse}}: creates a parametric rectellipse
Line 153: Line 171:
* {{MacroLink|Icon=Macro_Compound_Plus.png|Macro_Compound_Plus|Macro Compound Plus}}: Draf command set in a small macro for the 2D sketch example: work with the DXF files.
* {{MacroLink|Icon=Macro_Compound_Plus.png|Macro_Compound_Plus|Macro Compound Plus}}: Draf command set in a small macro for the 2D sketch example: work with the DXF files.
* {{MacroLink|Icon=Macro Dxf To Shape.png|Macro Dxf To Shape|Macro Dxf To Shape}}: Macro utility for create unique wire with many wires, the type wire created is selected to MakeWire, Bspline, BsplineCurve, BsplineCurve + Arc, Polygon, Bezier curve
* {{MacroLink|Icon=Macro Dxf To Shape.png|Macro Dxf To Shape|Macro Dxf To Shape}}: Macro utility for create unique wire with many wires, the type wire created is selected to MakeWire, Bspline, BsplineCurve, BsplineCurve + Arc, Polygon, Bezier curve

</translate>
</translate>
</div>
</div>
Line 161: Line 180:


===[[File:Fem_ResultDisplacement.svg]] Fem=== <!--T:109-->
===[[File:Fem_ResultDisplacement.svg]] Fem=== <!--T:109-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:110-->
<!--T:110-->
* {{MacroLink|Icon=Macro_GMSH.png|Macro GMSH|Macro GMSH}}: Create FEM Meshes by GMSH Mesh Generator
* {{MacroLink|Icon=Macro_GMSH.png|Macro GMSH|Macro GMSH}}: Create FEM Meshes by GMSH Mesh Generator
* {{MacroLink|Icon=Text-x-python.png|Macro_export_transient_FEM_results|Macro export transient FEM results}}: This macro exports multiple FEM result objects from a transient analysis to the VTK format and generates a PVU file which can be used to load the results directly into ParaView for post-processing.
</translate>
</translate>
</div>
</div>
Line 174: Line 196:


===[[File:Part_Measure_Clear_All.svg]] Info and measures=== <!--T:111-->
===[[File:Part_Measure_Clear_All.svg]] Info and measures=== <!--T:111-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:112-->
<!--T:112-->
* {{MacroLink|Icon=FCInfo.png|Macro FCInfo|Macro FCInfo}}: Gives a series of information about the selected shape and can display a conversion of length, inclination (degrees, radian, grade) shape, surface, volume and the weight of the form in the density selected in various international and Anglo-Saxon units
* {{MacroLink|Icon=FCInfo.png|Macro FCInfo|Macro FCInfo}}: Gives a series of information about the selected shape and can display a conversion of length, inclination (degrees, radian, grade) shape, surface, volume and the weight of the form in the density selected in various international and Anglo-Saxon units
Line 187: Line 211:
* {{MacroLink|Icon=Macro_MeasureCircle.png|Macro MeasureCircle|Macro MeasureCircle}}: Compute the radius of a circle by 3 points or a circular edge.
* {{MacroLink|Icon=Macro_MeasureCircle.png|Macro MeasureCircle|Macro MeasureCircle}}: Compute the radius of a circle by 3 points or a circular edge.
* {{MacroLink|Icon=Macro CenterOfMass.png|Macro CenterOfMass|Macro CenterOfMass}}: Gives the total mass and the center of mass of multiple objects selected with the density chosen.
* {{MacroLink|Icon=Macro CenterOfMass.png|Macro CenterOfMass|Macro CenterOfMass}}: Gives the total mass and the center of mass of multiple objects selected with the density chosen.
* {{MacroLink|Macro SimpleProperties|Macro SimpleProperties}}: Display in a concise way basic physical properties of an object (volume, bound box dimensions, ...)
* {{MacroLink|Icon=Macro_SimpleProperties.png|Macro SimpleProperties|Macro SimpleProperties}}: Display in a concise way basic physical properties of an object (volume, bound box dimensions, ...)

</translate>
</translate>
</div>
</div>
Line 196: Line 221:


===[[File:Draft_VisGroup.svg]] Libraries=== <!--T:113-->
===[[File:Draft_VisGroup.svg]] Libraries=== <!--T:113-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:114-->
<!--T:114-->
* {{MacroLink|Icon=Macro_screw_maker1_2.png|Macro screw maker1_2|Macro screw maker1_2}}: This macro creates a screw with or without thread, according to ISO standards ([http://forum.freecadweb.org/viewtopic.php?f=22&t=6088#p48519 screw_maker1_6.py.zip with Pyside support]). [http://forum.freecadweb.org/viewtopic.php?f=22&t=6558&start=30#p95929 (Screw Maker 2.0 - new version!)]
* {{MacroLink|Icon=Macro_screw_maker1_2.png|Macro screw maker1_2|Macro screw maker1_2}}: This macro creates a screw with or without thread, according to ISO standards ([http://forum.freecadweb.org/viewtopic.php?f=22&t=6088#p48519 screw_maker1_6.py.zip with Pyside support]). [http://forum.freecadweb.org/viewtopic.php?f=22&t=6558&start=30#p95929 (Screw Maker 2.0 - new version!)]
Line 211: Line 238:


===[[File:Bound-expression.svg]] Mathematical functions=== <!--T:115-->
===[[File:Bound-expression.svg]] Mathematical functions=== <!--T:115-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:116-->
<!--T:116-->
* {{MacroLink|Icon=Macro_3D_Parametric_Curve.png|Macro 3D Parametric Curve|Macro 3D Parametric Curve}}: Draw a function described by parametric equations x(t), y(t) and z(t).
* {{MacroLink|Icon=Macro_3D_Parametric_Curve.png|Macro 3D Parametric Curve|Macro 3D Parametric Curve}}: Draw a function described by parametric equations x(t), y(t) and z(t).
Line 220: Line 249:
* {{MacroLink|Icon=WF_wf.png|Macro WorkFeatures|Macro WorkFeatures}}: Tool utility : Tab > Wire > Curves And Surfaces {{KEY|Launch Curves and Surfaces Menu ...}}
* {{MacroLink|Icon=WF_wf.png|Macro WorkFeatures|Macro WorkFeatures}}: Tool utility : Tab > Wire > Curves And Surfaces {{KEY|Launch Curves and Surfaces Menu ...}}
equations.
equations.

</translate>
</translate>
</div>
</div>
Line 228: Line 258:


===[[File:IFC.svg]] Multifunctional=== <!--T:117-->
===[[File:IFC.svg]] Multifunctional=== <!--T:117-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:118-->
<!--T:118-->
* {{MacroLink|Icon=WF_wf.png|Macro WorkFeatures|Macro WorkFeatures}}: Tool utility to create plans of the axes, planes from 3 points, axes on a form, information on the coordinates of the shape and many other useful features to facilitate the creation of your project. This utility is up next in the combo view.
* {{MacroLink|Icon=WF_wf.png|Macro WorkFeatures|Macro WorkFeatures}}: Tool utility to create plans of the axes, planes from 3 points, axes on a form, information on the coordinates of the shape and many other useful features to facilitate the creation of your project. This utility is up next in the combo view.
Line 241: Line 273:


===[[File:Workbench_Image.svg]] Object creation=== <!--T:119-->
===[[File:Workbench_Image.svg]] Object creation=== <!--T:119-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:120-->
<!--T:120-->
* {{MacroLink|Icon=Macro_makeCube.png|Macro Make Cube|Macro Make Cube}}: creates a [http://en.wikipedia.org/wiki/Cuboid rectangular cuboid] from 4 points
* {{MacroLink|Icon=Macro_makeCube.png|Macro Make Cube|Macro Make Cube}}: creates a [http://en.wikipedia.org/wiki/Cuboid rectangular cuboid] from 4 points
* {{MacroLink|Icon=Macro_Solid_Sweep.png|Macro Solid Sweep|Macro Solid Sweep}}: creates a solid by sweeping a 2D profile along a trajectory previously selected in the 3D view. The 2D elements can be created through the regular tools in FreeCAD's GUI.
* {{MacroLink|Icon=Macro_Solid_Sweep.png|Macro Solid Sweep|Macro Solid Sweep}}: creates a solid by sweeping a 2D profile along a trajectory previously selected in the 3D view. The 2D elements can be created through the regular tools in FreeCAD's GUI.
* {{MacroLink|Icon=Macro_Geodesic_Dome.svg|Macro Geodesic Dome|Macro Geodesic Dome}}: This macro creates a geodesic dome shell
* {{MacroLink|Icon=Macro_Geodesic_Dome.svg|Macro Geodesic Dome|Macro Geodesic Dome}}: This macro creates a geodesic dome shell
* {{MacroLink|Icon=Pyramidicon.svg|Macro Pyramid|Macro Pyramid}}: This macro creates a parametric pyramid. All parameters are customizable just like with Part Cone.
* {{MacroLink|Icon=Dodecahedron.svg|Macro Polyhedrons|Macro Polyhedrons}}: This macro creates parametric polyhedrons (dodecahedron, icosahedron, tetrahedron, ...). Customizable via radius or side.
* {{MacroLink|Icon=Macro_Line_Length.png|Macro Line Length|Macro Line Length}}: Create a line giving coordinate XYZ length and angle to plane X Y
* {{MacroLink|Icon=Macro_Line_Length.png|Macro Line Length|Macro Line Length}}: Create a line giving coordinate XYZ length and angle to plane X Y
* {{MacroLink|Icon=Macro_Cut_Line.png|Macro cutLine|Macro Cut Line}}: Cut a line and create x points, giving the number of points, create line or not, create points or not, create bicolor or not on choice.
* {{MacroLink|Icon=Macro_Cut_Line.png|Macro cutLine|Macro Cut Line}}: Cut a line and create x points, giving the number of points, create line or not, create points or not, create bicolor or not on choice.
Line 261: Line 297:
* {{MacroLink|Icon=Part_Prism_Apothem.svg|Macro Apothem Based Prism GUI|Macro Apothem Based Prism GUI}}: A GUI dialog that creates an Apothem, (inradius) Based Prism from user input.
* {{MacroLink|Icon=Part_Prism_Apothem.svg|Macro Apothem Based Prism GUI|Macro Apothem Based Prism GUI}}: A GUI dialog that creates an Apothem, (inradius) Based Prism from user input.
* {{MacroLink|Icon=FCSpring_Helix_Variable.png|Macro FCSpring Helix Variable|Macro FCSpring Helix Variable}}: This macro create one spring truncate, the troncature is adjustable on the all coil to choice.
* {{MacroLink|Icon=FCSpring_Helix_Variable.png|Macro FCSpring Helix Variable|Macro FCSpring Helix Variable}}: This macro create one spring truncate, the troncature is adjustable on the all coil to choice.
* {{MacroLink|Icon=FCSpring_On_Surface.png|Macro_FCSpring On Surface|Macro FCSpring On Surface}}: This macro create one spring (helix) on the surface of the object (solide).
* {{MacroLink|Macro Guitar fretboard|Macro Guitar fretboard}}: Guitar Fretboard Maker
* {{MacroLink|Icon=Macro_Guitar_fretboard.png|Macro Guitar fretboard|Macro Guitar fretboard}}: Guitar Fretboard Maker
* {{MacroLink|Macro Guitar Nut|Macro Guitar Nut}}: Guitar Nut Maker
* {{MacroLink|Icon=Cam-groover-icon-32x32.png|Macro FCCamGroover|Macro FCCamGroover}}: Creates grooved cylinder for cam.
* {{MacroLink|Icon=Cam-groover-icon-32x32.png|Macro FCCamGroover|Macro FCCamGroover}}: Creates grooved cylinder for cam.
* {{MacroLink|Macro Site From Contours|Macro Site From Contours}}: creates an Arch Site from a series of contour lines
* {{MacroLink|Icon=Macro_Site_From_Contours.png|Macro Site From Contours|Macro Site From Contours}}: creates an Arch Site from a series of contour lines
* {{MacroLink|Icon=FCHoneycombMakerIcon.png|Macro FCHoneycombMaker|Macro FCHoneycombMaker}}: Creates parametric honeycomb grid.

</translate>
</translate>
</div>
</div>
Line 272: Line 312:


===[[File:Workbench_PartDesign.svg]] Object transformation=== <!--T:121-->
===[[File:Workbench_PartDesign.svg]] Object transformation=== <!--T:121-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:122-->
<!--T:122-->
* {{MacroLink|Macro ArrayCopy|Macro ArrayCopy}}: copies the selected object several times, on an array grid
* {{MacroLink|Icon=Macro_ArrayCopy.png|Macro ArrayCopy|Macro ArrayCopy}}: copies the selected object several times, on an array grid
* {{MacroLink|Macro FlattenWire|Macro FlattenWire}}: flattens draft wires that are not planar to their median Z coordinate
* {{MacroLink|Icon=Macro_FlattenWire.png|Macro FlattenWire|Macro FlattenWire}}: flattens draft wires that are not planar to their median Z coordinate
* {{MacroLink|Macro FlattenWire3Points|Macro FlattenWire3Points}}: flattens draft wires that are not planar to a plane defined by 3 points
* {{MacroLink|Icon=Macro_FlattenWire3Points.png|Macro FlattenWire3Points|Macro FlattenWire3Points}}: flattens draft wires that are not planar to a plane defined by 3 points
* {{MacroLink|Macro JointWire|Macro JointWire}}: allows to find and joint all non connected edge to the closest non connected one using a line
* {{MacroLink|Icon=Macro_JointWire.png|Macro JointWire|Macro JointWire}}: allows to find and joint all non connected edge to the closest non connected one using a line
* {{MacroLink|Macro Remove parametric history|Macro Remove parametric history}}: removes all parametric associativity from an object, leaving it as a "dumb" shape
* {{MacroLink|Icon=Macro_Remove_parametric_history.png|Macro Remove parametric history|Macro Remove parametric history}}: removes all parametric associativity from an object, leaving it as a "dumb" shape
* {{MacroLink|Macro SuperWire|Macro SuperWire}}: Forces the creation of a Wire from lines and arcs that don't necessarily touch each other. Use this if normal wire operation fails
* {{MacroLink|Icon=Macro_SuperWire.png|Macro SuperWire|Macro SuperWire}}: Forces the creation of a Wire from lines and arcs that don't necessarily touch each other. Use this if normal wire operation fails
* {{MacroLink|Macro HealArcs|Macro HealArcs}}: Sometimes arcs are transformed into BSplines, for example when scale operations have been applied to them. This macro recreates valid arcs from them. Useful before exporting to dxf
* {{MacroLink|Icon=Macro_HealArcs.png|Macro HealArcs|Macro HealArcs}}: Sometimes arcs are transformed into BSplines, for example when scale operations have been applied to them. This macro recreates valid arcs from them. Useful before exporting to dxf
* {{MacroLink|Icon=Macro_CloneConvert‎.png|Macro CloneConvert‎|Macro CloneConvert}}: Creates a clone of the object and the converted in the chosen position and size (inch, mm, m, µm...). The base object is recognized in mm (FreeCAd base)
* {{MacroLink|Icon=Macro_CloneConvert‎.png|Macro CloneConvert‎|Macro CloneConvert}}: Creates a clone of the object and the converted in the chosen position and size (inch, mm, m, µm...). The base object is recognized in mm (FreeCAd base)
* {{MacroLink|Macro Image Scaling|Macro Image Scaling}}: Macro for easy scaling drawings, graphics, diagram, blueprint and similar 2D images in Image workbench.
* {{MacroLink|Icon=Image_Scaling.svg|Macro Image Scaling|Macro Image Scaling}}: Macro for easy scaling drawings, graphics, diagram, blueprint and similar 2D images in Image workbench.
* {{MacroLink|Macro MatrixTransform|Macro MatrixTransform}}: apply linear space transformations to distort shapes. E.g., non-uniform scaling, shearing, mirroring, axes swapping.
* {{MacroLink|Icon=Macro_MatrixTransform.png|Macro MatrixTransform|Macro MatrixTransform}}: apply linear space transformations to distort shapes. E.g., non-uniform scaling, shearing, mirroring, axes swapping.
* {{MacroLink|Icon=Macro_Connect_And_Sweep.png|Macro Connect And Sweep|Macro Connect And Sweep}}: This macro easily creates a connection between two objects, an object and a point or between two points (the center of the objects are the starting and ending points of the sweep) can be selected form a configurable ellipse polygon circle
* {{MacroLink|Icon=Macro_Connect_And_Sweep.png|Macro Connect And Sweep|Macro Connect And Sweep}}: This macro easily creates a connection between two objects, an object and a point or between two points or the selected line, wire, edge (the center of the objects are the starting and ending points of the sweep) can be selected form a configurable ellipse polygon circle
* {{MacroLink|Icon=Part_Section‎.png|Macro Section|Macro Section}}: (parametric): alternative implementation of Part Section tool, more suitable for making sweep paths.
* {{MacroLink|Icon=Part_Section‎.png|Macro Section|Macro Section}}: (parametric): alternative implementation of Part Section tool, more suitable for making sweep paths.
* {{MacroLink|Icon=Macro_Overlap.png|Macro Overlap|Macro Overlap}}: (parametric): Boolean operation. Similar to Part Common, but with custom overlap count threshold.
* {{MacroLink|Icon=Macro_Overlap.png|Macro Overlap|Macro Overlap}}: (parametric): Boolean operation. Similar to Part Common, but with custom overlap count threshold.

</translate>
</translate>
</div>
</div>
Line 297: Line 340:


===[[File:View.svg]] Printer 3D=== <!--T:123-->
===[[File:View.svg]] Printer 3D=== <!--T:123-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:124-->
<!--T:124-->
* {{MacroLink|Macro 3d Printer Slicer|Macro 3d Printer Slicer}}: Exports current design to slicer software or CAM software.
* {{MacroLink|Icon=Macro_3d_Printer_Slicer.png|Macro 3d Printer Slicer|Macro 3d Printer Slicer}}: Exports current design to slicer software or CAM software.

</translate>
</translate>
</div>
</div>
Line 310: Line 356:


===[[File:Preferences-raytracing.svg]] Raytracing=== <!--T:125-->
===[[File:Preferences-raytracing.svg]] Raytracing=== <!--T:125-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:126-->
<!--T:126-->
* {{MacroLink|Macro FreeCAD to Kerkythea|Macro FreeCAD to Kerkythea}}: Export from FreeCAD to Kerkythea
* {{MacroLink|Icon=Macro_FreeCAD_to_Kerkythea.png|Macro FreeCAD to Kerkythea|Macro FreeCAD to Kerkythea}}: Export from FreeCAD to Kerkythea

</translate>
</translate>
</div>
</div>
Line 323: Line 372:


===[[File:Spreadsheet.svg]] Spreadsheet Workbench=== <!--T:127-->
===[[File:Spreadsheet.svg]] Spreadsheet Workbench=== <!--T:127-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:128-->
<!--T:128-->
* {{MacroLink|Icon=aliasmanager_icon.png|Macro Alias Manager|Macro Alias Manager}}: helps managing aliases inside FreeCAD Spreadsheet workbench. It is able to create, delete, move aliases and create a 'part family' group of files.
* {{MacroLink|Icon=aliasmanager_icon.png|Macro Alias Manager|Macro Alias Manager}}: helps managing aliases inside FreeCAD Spreadsheet workbench. It is able to create, delete, move aliases and create a 'part family' group of files.
* {{MacroLink|Icon=easy-alias-icon.png|Macro EasyAlias|Macro EasyAlias}}: Quickly create aliases in FreeCAD Spreadsheet workbench. It uses the labels from one column to create aliases for adjacent cells in the next column to the right, e.g. labels from Column A become aliases for the cells in Column B.
* {{MacroLink|Macro SpreadsheetTools|Macro Spreadsheet Tools}}: This macro helps managing cells inside FreeCAD Spreadsheet workbench.
* {{MacroLink|Icon=Macro_SpreadsheetTools.png|Macro SpreadsheetTools|Macro Spreadsheet Tools}}: This macro helps managing cells inside FreeCAD Spreadsheet workbench.
* {{MacroLink|Icon=Macro FCTreeView.png|Macro FCTreeView|Macro FCTreeView}}: Macro for list all objects in the project in one list without hierarchy, options sort by name, label, visibility, group, by length option search by name, label .... without case sensitive or with case sensitive and select all objects displayed in the macro window.
* {{MacroLink|Icon=Macro FCTreeView.png|Macro FCTreeView|Macro FCTreeView}}: Macro for list all objects in the project in one list without hierarchy, options sort by name, label, visibility, group, by length option search by name, label .... without case sensitive or with case sensitive and select all objects displayed in the macro window.
* {{MacroLink|Icon=Macro_FCSpreadsheet_Extract.png|Macro FCSpreadSheet Extract|Macro FCSpreadSheet Extract}}: This macro save the data in a csv file with the formula or in a xml file.
* {{MacroLink|Icon=Macro_FCSpreadsheet_Extract.png|Macro FCSpreadSheet Extract|Macro FCSpreadSheet Extract}}: This macro save the data in a csv file with the formula or in a xml file.

</translate>
</translate>
</div>
</div>
Line 339: Line 392:


===[[File:Arch_Survey.svg]] Utility=== <!--T:129-->
===[[File:Arch_Survey.svg]] Utility=== <!--T:129-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:130-->
<!--T:130-->
* {{MacroLink|Icon=CenterFace.png|Macro CenterFace|Macro CenterFace}}: This macro red trace (editable) the center face (mass) with 1 point and print the coordinates
* {{MacroLink|Icon=CenterFace.png|Macro CenterFace|Macro CenterFace}}: This macro red trace (editable) the center face (mass) with 1 point and print the coordinates
* {{MacroLink|Icon=Macro_Center_Align_Objects_with_Faces_or_Edges.png|Macro Center Align Objects with Faces or Edges|Macro Center Align Objects with Faces or Edges}}: This macro covers the following constraints: - Concentric constraint among non cylindrical parts; - Constraint on center Faces and/or Edges. It works also with the new Body and App::Part containers, as well as with STEP hierarchy.
* {{MacroLink|Icon=Macro_Center_Align_Objects_with_Faces_or_Edges.png|Macro Center Align Objects with Faces or Edges|Macro Center Align Objects with Faces or Edges}}: This macro covers the following constraints: - Concentric constraint among non cylindrical parts; - Constraint on center Faces and/or Edges. It works also with the new Body and App::Part containers, as well as with STEP hierarchy.
* {{MacroLink|Icon=Macro_Easy_Cutouts_for_Enclosures.png|Macro Easy cutouts for Enclosure Design|Macro Easy cutouts for Enclosure Design}}: This macro makes Cutouts for Enclosures in a very handy way
* {{MacroLink|Icon=Macro_Easy_Cutouts_for_Enclosures.png|Macro Easy cutouts for Enclosure Design|Macro Easy cutouts for Enclosure Design}}: This macro makes Cutouts for Enclosures in a very handy way
* {{MacroLink|Macro MacroMenu|Macro MacroMenu}}: Add the macros found in the macros folder to the Macros menu of FreeCAD
* {{MacroLink|Icon=Macro_MacroMenu.png|Macro MacroMenu|Macro MacroMenu}}: Add the macros found in the macros folder to the Macros menu of FreeCAD
* {{MacroLink|Icon=Force_Recompute.png|Macro ForceRecompute|Macro ForceRecompute}}: Forces manual recompute of model
* {{MacroLink|Icon=Force_Recompute.png|Macro ForceRecompute|Macro ForceRecompute}}: Forces manual recompute of model
* {{MacroLink|Macro Recompute Profiler|Macro Recompute Profiler}}: measures time it takes to recompute each object in a project
* {{MacroLink|Icon=Macro_Recompute_Profiler.png|Macro Recompute Profiler|Macro Recompute Profiler}}: measures time it takes to recompute each object in a project
* {{MacroLink|Macro Shake Sketch|Macro Shake Sketch}}: Shake a sketch in order to discover its unconstrained parts.
* {{MacroLink|Icon=Macro_Shake_Sketch.png|Macro Shake Sketch|Macro Shake Sketch}}: Shake a sketch in order to discover its unconstrained parts.
* {{MacroLink|Icon=Replace_Part.png|Macro Replace Part in Assembly|Macro Replace Part in Assembly}}: Replaces a part (simple copy) in an "Assembly" with another Part (simple copy).
* {{MacroLink|Icon=Replace_Part.png|Macro Replace Part in Assembly|Macro Replace Part in Assembly}}: Replaces a part (simple copy) in an "Assembly" with another Part (simple copy).
* {{MacroLink|Icon=Macro_Toggle_Drawstyle.png|Macro Toggle Drawstyle|Macro Toggle Drawstyle}}: This macro toggles the Drawstyle of the selected object
* {{MacroLink|Icon=Macro_Toggle_Drawstyle.png|Macro Toggle Drawstyle|Macro Toggle Drawstyle}}: This macro toggles the Drawstyle of the selected object
* {{MacroLink|Icon=Macro_Toggle_Drawstyle_Optimized.png|Macro Toggle Drawstyle Optimized|Macro Toggle Drawstyle Optimized}}: This macro toggles the Drawstyle of the selected object (same Macro Toggle Drawstyle above optimized all language)
* {{MacroLink|Macro HighlightCommon|Macro HighlightCommon}}: Highlight common parts.
* {{MacroLink|Icon=Macro_HighlightCommon.png|Macro HighlightCommon|Macro HighlightCommon}}: Highlight common parts.
* {{MacroLink|Icon=HighlightDifference.png|Macro HighlightDifference|Macro HighlightDifference}}: Compute the difference between two shapes.
* {{MacroLink|Icon=HighlightDifference.png|Macro HighlightDifference|Macro HighlightDifference}}: Compute the difference between two shapes.
* {{MacroLink|Macro cross section|Macro cross section}}: displays an interactively slidable cross-section.
* {{MacroLink|Icon=Macro_cross_section.png|Macro cross section|Macro cross section}}: displays an interactively slidable cross-section.
* {{MacroLink|Macro Print_SceneGraph|Macro Print_SceneGraph}}: prints the SceneGraph.
* {{MacroLink|Icon=Macro_Print_SceneGraph.png|Macro Print_SceneGraph|Macro Print_SceneGraph}}: prints the SceneGraph.
* {{MacroLink|Icon=BoundBoxTracing.png|Macro BoundingBox Tracing|Macro BoundingBox Tracing}}: This macro red trace (editable) around the BoundingBox with 6 rectangles
* {{MacroLink|Icon=BoundBoxTracing.png|Macro BoundingBox Tracing|Macro BoundingBox Tracing}}: This macro red trace (editable) around the BoundingBox with 6 rectangles
* {{MacroLink|Macro Arch Axis System Repartition|Macro Arch Axis System Repartition}}: This macro help you to create an Arch Axis System along a line with a
* {{MacroLink|Icon=Macro_Arch_Axis_System_Repartition.png|Macro Arch Axis System Repartition|Macro Arch Axis System Repartition}}: This macro help you to create an Arch Axis System along a line with a
* {{MacroLink|Icon=Macro Perpendicular To Wire.png|Macro Perpendicular To Wire|Macro Perpendicular To Wire}}: This macro positioned your object perpendicularly to wire selected.
* {{MacroLink|Icon=Macro Perpendicular To Wire.png|Macro Perpendicular To Wire|Macro Perpendicular To Wire}}: This macro positioned your object perpendicularly to wire selected.
* {{MacroLink|Macro merge duplicate materials|Macro merge duplicate materials}}: Merges materials that have the same base name (with different numeral endings like 001, 002,...) into one.
* {{MacroLink|Icon=Macro_merge_duplicate_materials.png|Macro merge duplicate materials|Macro merge duplicate materials}}: Merges materials that have the same base name (with different numeral endings like 001, 002,...) into one.
* {{MacroLink|Macro Unbind Numpad Shortcuts|Macro Unbind Numpad Shortcuts}}: rebinds standard view commands from digit keys to Ctrl+digit, so that they don't spin the view by accident when entering numbers.
* {{MacroLink|Icon=Macro_Unbind_Numpad_Shortcuts.png|Macro Unbind Numpad Shortcuts|Macro Unbind Numpad Shortcuts}}: rebinds standard view commands from digit keys to Ctrl+digit, so that they don't spin the view by accident when entering numbers.
* {{MacroLink|Macro findConfigFiles|Macro findConfigFiles}}: finds user config files system.cfg and user.cfg, copies folder location to system clipboard, instructs user on renaming these files in order to reset FreeCAD settings, and opens folder with default file browser.
* {{MacroLink|Icon=Macro_findConfigFiles.png|Macro findConfigFiles|Macro findConfigFiles}}: finds user config files system.cfg and user.cfg, copies folder location to system clipboard, instructs user on renaming these files in order to reset FreeCAD settings, and opens folder with default file browser.
* {{MacroLink|Icon=Snip.png|Macro Snip|Macro Snip}}: Easily post screenshots to the FreeCAD forum.
* {{MacroLink|Icon=SketchUnmap.svg|Macro SketchUnmap|Macro SketchUnmap}}: unmap a sketch from its current support and makes its placement absolute, eventually creating a locating datum plane.
* {{MacroLink|Icon=SketchUnmap.svg|Macro SketchUnmap|Macro SketchUnmap}}: unmap a sketch from its current support and makes its placement absolute, eventually creating a locating datum plane.
* {{MacroLink|Macro PlacementAbsolufy|Macro PlacementAbsolufy}}: reset Part containers to global origin while maintaining objects absolute position.
* {{MacroLink|Icon=Macro_PlacementAbsolufy.png|Macro PlacementAbsolufy|Macro PlacementAbsolufy}}: reset Part containers to global origin while maintaining objects absolute position.
* {{MacroLink|Macro StraightenObject|Macro StraightenObject}}: re-align object(s) with FreeCAD coordinate system according reference face/edge
* {{MacroLink|Macro SplitPropEditor|Macro SplitPropEditor}}: temporarily split the property editor from the combo view to a separated dock widget
* {{MacroLink|Icon=Macro_StraightenObject.png|Macro StraightenObject|Macro StraightenObject}}: re-align object(s) with FreeCAD coordinate system according reference face/edge
* {{MacroLink|Icon=Macro_Visibility_Manager.png|Macro_Visibility_Manager|Macro_Visibility_Manager}}: manage visibility of document objects by type or individually

</translate>
</translate>
</div>
</div>
Line 373: Line 433:


===[[File:Bulb.svg]] Wizards=== <!--T:131-->
===[[File:Bulb.svg]] Wizards=== <!--T:131-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:132-->
<!--T:132-->
* {{MacroLink|Macro Sheet Metal Unfolder|Macro Sheet Metal Unfolder}}: Creates an unfolded part from a sheet-metal-part.
* {{MacroLink|Icon=Macro_Sheet_Metal_Unfolder.png|Macro Sheet Metal Unfolder|Macro Sheet Metal Unfolder}}: Creates an unfolded part from a sheet-metal-part.
* {{MacroLink|Macro Unroll Ruled Surface|Macro Unroll Ruled Surface}}: allows to unroll ruled surfaces and to draw them on a page.
* {{MacroLink|Icon=Macro_Unroll_Ruled_Surface.png|Macro Unroll Ruled Surface|Macro Unroll Ruled Surface}}: allows to unroll ruled surfaces and to draw them on a page.
* {{MacroLink|Macro Unfold Box|Macro Unfold Box}}: allows to unfold the surfaces of a box of any shape and to draw them on a page.
* {{MacroLink|Icon=Macro_Unfold_Box.png|Macro Unfold Box|Macro Unfold Box}}: allows to unfold the surfaces of a box of any shape and to draw them on a page.
* {{MacroLink|Macro Airfoil Import & Scale|Macro Airfoil Import & Scale}}: Imports and scales a .dat airfoil to desired chord length.
* {{MacroLink|Icon=Macro_Airfoil_Import_&_Scale.png|Macro Airfoil Import & Scale|Macro Airfoil Import & Scale}}: Imports and scales a .dat airfoil to desired chord length.
* {{MacroLink|Icon=GW_Dim.png|Macro Geneva Wheel|Macro Geneva Wheel}}: Allows the user to create a Geneva wheel mechanism from scratch. Must edit values within the Macro to alter the size of the object.
* {{MacroLink|Icon=GW_Dim.png|Macro Geneva Wheel|Macro Geneva Wheel}}: Allows the user to create a Geneva wheel mechanism from scratch. Must edit values within the Macro to alter the size of the object.
* {{MacroLink|Icon=GW_Dim.png|Macro Geneva Wheel GUI|Macro Geneva Wheel GUI}}: A GUI front end that allows the user to create a Geneva wheel mechanism from scratch.
* {{MacroLink|Icon=GW_Dim.png|Macro Geneva Wheel GUI|Macro Geneva Wheel GUI}}: A GUI front end that allows the user to create a Geneva wheel mechanism from scratch.
* {{MacroLink|Icon=Cabinets32.png|Macro Cabinets32|Macro Cabinets32}}: creates side and top/bottom walls for a cabinet with drilled holes for connection parts of manufacturer Hettich.
* {{MacroLink|Icon=Macro_Cabinets32.png|Macro Cabinets32|Macro Cabinets32}}: creates side and top/bottom walls for a cabinet with drilled holes for connection parts of manufacturer Hettich.
* {{MacroLink|Macro Half_turn_stairs|Macro Half_turn_stairs}}: Creates a half turn (left/right) stair from a Data-file.
* {{MacroLink|Icon=Macro Half_turn_stairs.png|Macro Half turn stairs|Macro Half turn stairs}}: Creates a half turn (left/right) stair from a Data-file.
* {{MacroLink|Icon=Macro_Half_Hull_Model.png|Macro Half-Hull Model|Macro Half-Hull Model}}: This macro generates both three dimensional [http://en.wikipedia.org/wiki/Half_hull_model_ship half-hull] and full-hull models from a series of 2D line drawings.
* {{MacroLink|Icon=Macro_Half_Hull_Model.png|Macro Half-Hull Model|Macro Half-Hull Model}}: This macro generates both three dimensional [http://en.wikipedia.org/wiki/Half_hull_model_ship half-hull] and full-hull models from a series of 2D line drawings.
* {{MacroLink|Macro Stairs|Macro Stairs}}: Create stair helix, create your stair nosing select and run the macro.
* {{MacroLink|Icon=Macro_Stairs.png|Macro Stairs|Macro Stairs}}: Create stair helix, create your stair nosing select and run the macro.
* {{MacroLink|Icon=Gearworkbech.png|Macro FCGear|Macro FCGear}}: Additional Workbench to create different types of gears, involute gear, involute rack, cycloide gear, bevel gear.
* {{MacroLink|Icon=Gearworkbech.png|Macro FCGear|Macro FCGear}}: Additional Workbench to create different types of gears, involute gear, involute rack, cycloide gear, bevel gear.
* {{MacroLink|Macro Corner shapes wizard|Macro Corner shapes wizard}}: pops up a dialog asking for the dimensions of your corner piece, then creates the object in the document and creates a page view with top, front and lateral views of the piece
* {{MacroLink|Icon=Macro_Corner_shapes_wizard.png|Macro Corner shapes wizard|Macro Corner shapes wizard}}: pops up a dialog asking for the dimensions of your corner piece, then creates the object in the document and creates a page view with top, front and lateral views of the piece
* {{MacroLink|Icon=Macro_Corner_shapes_wizard.png|Macro_Corner_shapes_wizard/update|Macro Corner shapes wizard/update}}: pops up a dialog asking for the dimensions of your corner piece, then creates the object in the document and creates a page view with top, front and lateral views of the piece
* {{MacroLink|Icon=PropertyMemo.png|Macro PropertyMemo|Macro PropertyMemo}}: This little macro create one Property additional (memo or other text) for you object (only Draft)
* {{MacroLink|Icon=PropertyMemo.png|Macro PropertyMemo|Macro PropertyMemo}}: This little macro create one Property additional (memo or other text) for you object (only Draft)
* {{MacroLink|Icon=Macro Fonts Win10 PYMP.png|Macro Fonts Win10 PYMP|Macro Fonts Win10 PYMP}}: This little macro is dedicate to users of Windows 10. The explorer fonts for use the ShapeString is empty and this little macro can help you see aesily the font to use.
* {{MacroLink|Icon=Macro Fonts Win10 PYMP.png|Macro Fonts Win10 PYMP|Macro Fonts Win10 PYMP}}: This little macro is dedicate to users of Windows 10. The explorer fonts for use the ShapeString is empty and this little macro can help you see aesily the font to use.
* {{MacroLink|Macro Rubik Cube|Macro Rubik Cube}}: Display a Rubik Cube and interactively do slice rotations.
* {{MacroLink|Icon=Macro_Rubik_Cube.png|Macro Rubik Cube|Macro Rubik Cube}}: Display a Rubik Cube and interactively do slice rotations.
* {{MacroLink|Macro Megaminx|Macro Megaminx}}: Display a Megaminx and interactively do slice rotations.
* {{MacroLink|Icon=Macro_Megaminx.png|Macro Megaminx|Macro Megaminx}}: Display a Megaminx and interactively do slice rotations.


</translate>
</translate>
Line 402: Line 465:


===[[File:Std_FreeCADWebsite.png|32px]] Other interesting macros created by FreeCAD users=== <!--T:133-->
===[[File:Std_FreeCADWebsite.png|32px]] Other interesting macros created by FreeCAD users=== <!--T:133-->

</translate>
</translate>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<translate>
<translate>

<!--T:134-->
<!--T:134-->
* [[Image:2364.png|24px]] [https://github.com/microelly2?tab=repositories By microelly2] : freeCAD_macro, geodata, Animation, freecad-nurbs, PieMenu, and more.
* [[Image:2364.png|24px]] [https://github.com/microelly2?tab=repositories By microelly2] : freeCAD_macro, geodata, Animation, freecad-nurbs, PieMenu, and more.
* [[Image:Text-x-python.png|24px]] [https://github.com/hamish2014?tab=repositories By hamish2014]: FreeCAD_assembly2, FreeCAD_drawing_dimensioning, and more.
* [[Image:Text-x-python.png|24px]] [https://github.com/hamish2014?tab=repositories By hamish2014]: FreeCAD_assembly2, FreeCAD_drawing_dimensioning, and more.
* [[Image:Text-x-python.png|24px]] [https://github.com/triplus?tab=repositories By triplus]: IconThemes, ShortCuts, NavigationIndicator, TabBar, Launcher, PersistentToolbars, PieMenu, and more.
* [[Image:Text-x-python.png|24px]] [https://github.com/triplus?tab=repositories By triplus]: IconThemes, ShortCuts, NavigationIndicator, TabBar, Launcher, PersistentToolbars, PieMenu, and more.
* [[Image:681.jpg|24px]] [https://github.com/wood-galaxy By rockn]: FreeCAD-Timber, FreeCAD-addons, FreeCAD-library, FreeCAD-StructuresBois, and more.
* [[Image:681.jpg|24px]] [https://github.com/j-wiedemann?tab=repositories By rockn]: FreeCAD-Timber, FreeCAD-addons, FreeCAD-library, FreeCAD-StructuresBois, and more.
* [[Image:Text-x-python.png|24px]] [https://github.com/oddtopus?tab=repositories By oddtopus]: flamingo (workbench for metal structures).
* [[Image:Text-x-python.png|24px]] [https://github.com/oddtopus?tab=repositories By oddtopus]: flamingo (workbench for metal structures).
* [[Image:Text-x-python.png|24px]] [https://github.com/dprojects/getDimensions By dprojects]: getDimensions FreeCAD macro to get chipboards dimensions to cut (woodworking).
* [[Image:Text-x-python.png|24px]] [https://github.com/dprojects/getDimensions By dprojects]: getDimensions FreeCAD macro to get chipboards dimensions to cut (woodworking).
* [[Image:Text-x-python.png|24px]] [https://github.com/Siardeni/FreeCADTools By Siardeni]: workbench for create metal profiles, square tubing, z profile, palette, rotation, drawing, and more.
* [[Image:Text-x-python.png|24px]] [https://github.com/Siardeni/FreeCADTools By Siardeni]: workbench for create metal profiles, square tubing, z profile, palette, rotation, drawing, and more.
* [[Image:Text-x-python.png|24px]] [https://github.com/realthunder/FreeCAD_assembly3#installation By realthunder]: Assembly3 workbench, and more.
* [[Image:Text-x-python.png|24px]] [https://github.com/realthunder/FreeCAD_assembly3#installation By realthunder]: Assembly3 workbench, and more.

</translate>
</translate>
</div>
</div>
</div>
</div>

<translate>
<translate>



Revision as of 18:57, 7 February 2020

Macros

This page contains macros that add functionality to a FreeCAD installation.

If you wrote a macro, and want to include it in the categories in this page, see macro documentation to learn about properly documenting the macro.

Categories

3D View operations

Animation

Code and Scripting

  • Macro MessageBox: shows how to give information to the user through the GUI.
  • Qt Example: example of using Qt commands, their connections, extraction and data assignment.
  • Macro Python Assistant Window: This macro provides a cut/copy/paste workspace for Python code, it is segmented so different sections can be selected and it is persistent between FreeCAD sessions.
  • Macro Build Utility: This macro provides a utility to assemble a project from sub-project files using the Merge Project facility.
  • Macro Global Variable Watcher: This macro facilitates the user selecting global variables and monitoring their values.
  • Macro clone explicit: creates a copy of each selected object and sets its properties to an expression linking to the original object, making it an explicit and editable clone.

Conversion

Drawing Workbench

The Drawing Workbench is considered obsolete since FreeCAD 0.17. Consider using the TechDraw Workbench instead.

  • Macro Automatic drawing: allows the user to get the view of his object in a drawing with 4 different position (front,top,iso,right). Needs some modification to be perfectly effective
  • Macro CartoucheFC: This GUI macro to fill simply all fields of the cartridge of the plan implementation worksheet FreeCAD, the format of the date and the symbol of the projection mode adapt to the EU region or US selected.
  • Macro CartoucheFC Full: This GUI macro to fill simply all fields of the cartridge templates_Full of the plan implementation worksheet FreeCAD, the format of the date and the symbol of the projection mode adapt to the EU region or US selected.
  • Macro CartoucheFC 2: This GUI macro to fill simply all fields of the cartridge model 2 of the plan implementation worksheet FreeCAD.
  • Macro Normal Vector: Get the normal vector of a preselected face for creating a drawing view normal to that face

Dxf 2D Draft

Fem

  • Macro GMSH: Create FEM Meshes by GMSH Mesh Generator
  • Macro export transient FEM results: This macro exports multiple FEM result objects from a transient analysis to the VTK format and generates a PVU file which can be used to load the results directly into ParaView for post-processing.

Info and measures

  • Macro FCInfo: Gives a series of information about the selected shape and can display a conversion of length, inclination (degrees, radian, grade) shape, surface, volume and the weight of the form in the density selected in various international and Anglo-Saxon units
  • Macro FCInfo Alternate Linux: same as above, but for Linux
  • Macro FCInfoGlass: Gives a series of information about the selected shape and displayed in screen 3D
  • Macro FCInfoToMouse: Provide informations coordinates, length and angles in real time on the mouse in a bubble annotation displayed in the 3D screen
  • Macro Delta xyz: Gives the Delta values and the distance between 2 points
  • Macro ObjectInfo: User-friendly "Info" module created by a FreeCAD user
  • Macro Dump Objects: This macro generates a listing of all objects in the current document - the list can be in a window or on the Report view.
  • Macro MeasureCircle: Compute the radius of a circle by 3 points or a circular edge.
  • Macro CenterOfMass: Gives the total mass and the center of mass of multiple objects selected with the density chosen.
  • Macro SimpleProperties: Display in a concise way basic physical properties of an object (volume, bound box dimensions, ...)

Libraries

Mathematical functions

equations.

Multifunctional

  • Macro WorkFeatures: Tool utility to create plans of the axes, planes from 3 points, axes on a form, information on the coordinates of the shape and many other useful features to facilitate the creation of your project. This utility is up next in the combo view.

Object creation

  • Macro Make Cube: creates a rectangular cuboid from 4 points
  • Macro Solid Sweep: creates a solid by sweeping a 2D profile along a trajectory previously selected in the 3D view. The 2D elements can be created through the regular tools in FreeCAD's GUI.
  • Macro Geodesic Dome: This macro creates a geodesic dome shell
  • Macro Pyramid: This macro creates a parametric pyramid. All parameters are customizable just like with Part Cone.
  • Macro Polyhedrons: This macro creates parametric polyhedrons (dodecahedron, icosahedron, tetrahedron, ...). Customizable via radius or side.
  • Macro Line Length: Create a line giving coordinate XYZ length and angle to plane X Y
  • Macro Cut Line: Cut a line and create x points, giving the number of points, create line or not, create points or not, create bicolor or not on choice.
  • Macro CirclePlus: Create a circle or arc giving radius, diameter, circumference, area, startangle, endangle, arc, anglecenter, cord, arrow, center (point) on choice (same below but with GUI) plus create sector and face.
  • Macro Circle: Create a circle or arc giving radius, diameter, circumference, area, startangle, endangle, arc, anglecenter, cord, arrow, center (point) on choice (same above without GUI).
  • Macro Cut Circle: Cut a circle or arc and create x arcs, giving the number of cut.
  • Macro Triangle AH: This macro create one triangle creates a triangle by giving the head angle and the height of the triangle (the triangle of the head is positioned to the xyz coordinates 0.0)
  • Macro Texture: Create a project from a bmp image to create a texture easily
  • Macro Loft: Create a loft with a list of wire (specially created for Macro Texture see above)
  • Macro Circular Text: This macro create a text around a cylinder
  • Macro WireXYZ: This macro creates a Wire with the coordinates extracted from a file. The coordinates X Y Z are separated by a space.
  • Macro Repro Wire: This macro reproduce all element selected subobject wire or face.
  • Macro Apothem Based Prism GUI: A GUI dialog that creates an Apothem, (inradius) Based Prism from user input.
  • Macro FCSpring Helix Variable: This macro create one spring truncate, the troncature is adjustable on the all coil to choice.
  • Macro FCSpring On Surface: This macro create one spring (helix) on the surface of the object (solide).
  • Macro Guitar fretboard: Guitar Fretboard Maker
  • Macro Guitar Nut: Guitar Nut Maker
  • Macro FCCamGroover: Creates grooved cylinder for cam.
  • Macro Site From Contours: creates an Arch Site from a series of contour lines
  • Macro FCHoneycombMaker: Creates parametric honeycomb grid.

Object transformation

  • Macro ArrayCopy: copies the selected object several times, on an array grid
  • Macro FlattenWire: flattens draft wires that are not planar to their median Z coordinate
  • Macro FlattenWire3Points: flattens draft wires that are not planar to a plane defined by 3 points
  • Macro JointWire: allows to find and joint all non connected edge to the closest non connected one using a line
  • Macro Remove parametric history: removes all parametric associativity from an object, leaving it as a "dumb" shape
  • Macro SuperWire: Forces the creation of a Wire from lines and arcs that don't necessarily touch each other. Use this if normal wire operation fails
  • Macro HealArcs: Sometimes arcs are transformed into BSplines, for example when scale operations have been applied to them. This macro recreates valid arcs from them. Useful before exporting to dxf
  • Macro CloneConvert: Creates a clone of the object and the converted in the chosen position and size (inch, mm, m, µm...). The base object is recognized in mm (FreeCAd base)
  • Macro Image Scaling: Macro for easy scaling drawings, graphics, diagram, blueprint and similar 2D images in Image workbench.
  • Macro MatrixTransform: apply linear space transformations to distort shapes. E.g., non-uniform scaling, shearing, mirroring, axes swapping.
  • Macro Connect And Sweep: This macro easily creates a connection between two objects, an object and a point or between two points or the selected line, wire, edge (the center of the objects are the starting and ending points of the sweep) can be selected form a configurable ellipse polygon circle
  • Macro Section: (parametric): alternative implementation of Part Section tool, more suitable for making sweep paths.
  • Macro Overlap: (parametric): Boolean operation. Similar to Part Common, but with custom overlap count threshold.

Printer 3D

Raytracing

Spreadsheet Workbench

  • Macro Alias Manager: helps managing aliases inside FreeCAD Spreadsheet workbench. It is able to create, delete, move aliases and create a 'part family' group of files.
  • Macro EasyAlias: Quickly create aliases in FreeCAD Spreadsheet workbench. It uses the labels from one column to create aliases for adjacent cells in the next column to the right, e.g. labels from Column A become aliases for the cells in Column B.
  • Macro Spreadsheet Tools: This macro helps managing cells inside FreeCAD Spreadsheet workbench.
  • Macro FCTreeView: Macro for list all objects in the project in one list without hierarchy, options sort by name, label, visibility, group, by length option search by name, label .... without case sensitive or with case sensitive and select all objects displayed in the macro window.
  • Macro FCSpreadSheet Extract: This macro save the data in a csv file with the formula or in a xml file.

Utility

Wizards

  • Macro Sheet Metal Unfolder: Creates an unfolded part from a sheet-metal-part.
  • Macro Unroll Ruled Surface: allows to unroll ruled surfaces and to draw them on a page.
  • Macro Unfold Box: allows to unfold the surfaces of a box of any shape and to draw them on a page.
  • Macro Airfoil Import & Scale: Imports and scales a .dat airfoil to desired chord length.
  • Macro Geneva Wheel: Allows the user to create a Geneva wheel mechanism from scratch. Must edit values within the Macro to alter the size of the object.
  • Macro Geneva Wheel GUI: A GUI front end that allows the user to create a Geneva wheel mechanism from scratch.
  • Macro Cabinets32: creates side and top/bottom walls for a cabinet with drilled holes for connection parts of manufacturer Hettich.
  • Macro Half turn stairs: Creates a half turn (left/right) stair from a Data-file.
  • Macro Half-Hull Model: This macro generates both three dimensional half-hull and full-hull models from a series of 2D line drawings.
  • Macro Stairs: Create stair helix, create your stair nosing select and run the macro.
  • Macro FCGear: Additional Workbench to create different types of gears, involute gear, involute rack, cycloide gear, bevel gear.
  • Macro Corner shapes wizard: pops up a dialog asking for the dimensions of your corner piece, then creates the object in the document and creates a page view with top, front and lateral views of the piece
  • Macro Corner shapes wizard/update: pops up a dialog asking for the dimensions of your corner piece, then creates the object in the document and creates a page view with top, front and lateral views of the piece
  • Macro PropertyMemo: This little macro create one Property additional (memo or other text) for you object (only Draft)
  • Macro Fonts Win10 PYMP: This little macro is dedicate to users of Windows 10. The explorer fonts for use the ShapeString is empty and this little macro can help you see aesily the font to use.
  • Macro Rubik Cube: Display a Rubik Cube and interactively do slice rotations.
  • Macro Megaminx: Display a Megaminx and interactively do slice rotations.

Other interesting macros created by FreeCAD users

  • By microelly2 : freeCAD_macro, geodata, Animation, freecad-nurbs, PieMenu, and more.
  • By hamish2014: FreeCAD_assembly2, FreeCAD_drawing_dimensioning, and more.
  • By triplus: IconThemes, ShortCuts, NavigationIndicator, TabBar, Launcher, PersistentToolbars, PieMenu, and more.
  • By rockn: FreeCAD-Timber, FreeCAD-addons, FreeCAD-library, FreeCAD-StructuresBois, and more.
  • By oddtopus: flamingo (workbench for metal structures).
  • By dprojects: getDimensions FreeCAD macro to get chipboards dimensions to cut (woodworking).
  • By Siardeni: workbench for create metal profiles, square tubing, z profile, palette, rotation, drawing, and more.
  • By realthunder: Assembly3 workbench, and more.

How to use

See how to install macros for a full description, and customize toolbars to add the macros to a toolbar for easy access.

Installing many macros is equivalent to installing a new workbench; see how to install additional workbenches for this information.

Automatic installation

Starting with FreeCAD 0.17, use the Addon Manager in Tools → Addon manager to install a macro that has been included in the FreeCAD-macros repository.

Manual installation

If the Addon Manager is not used, the macro can be installed manually.

  • Copy the Python code from the corresponding macro page.
  • Open the macros menu Macro → Macros, press Create, and give it a name.
  • Paste the Python code that you copied.
  • Press the Save button, and restart FreeCAD.
  • To use it, open again the macros menu, select your new macro, and press Execute.

Add a macro to a custom toolbar

  • Go to Tools → Customize.
  • In the Macros tab, add a new macro name, and optionally define an icon and a keyboard shortcut.
  • In the Toolbars tab, create a new toolbar, and add your macro, taking it from the Macros category.