Macros recipes: Difference between revisions

From FreeCAD Documentation
No edit summary
(Moved Macro_Convert_021.)
 
(252 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{TOCright}}

{|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="ctToc"|<br/>__TOC__
|}
<translate>
<translate>

<!--T:95-->
<!--T:95-->
This page contains [[macros|macros]] that add functionality to a FreeCAD installation.
This page lists [[Macros|macros]] that can add functionality to a FreeCAD installation.


<!--T:158-->
<!--T:158-->
If you wrote a macro, and want to include it in the categories in this page, see '''[[macro documentation|macro documentation]]''' to learn about properly documenting the macro.
If you have written a macro and want to include it in one of the categories on this page, then go to [[Macro_documentation|Macro documentation]] to learn more about properly documenting a macro.


== Categories == <!--T:96-->
== Categories == <!--T:96-->
Line 19: Line 15:
<translate>
<translate>


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


</translate>
</translate>
Line 25: Line 21:
<translate>
<translate>


<!--T:98-->
<!--T:170-->
* {{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 [[Image:View-top.svg|Std_ViewTop|16px|link=Std_ViewTop]] [[Std_ViewTop|XY (top)]] view.
* {{MacroLink|Icon=Macro_Align_Face_Object_to_View.png|Macro_Align_Face_Object_to_View|Macro Align Face Object to View}}: This macro aligns the current view to a selected face.

* {{MacroLink|Icon=Macro_Rotate_View_with_Y_pointing_upwards_.png|Macro Rotate ViewAxonometric|Macro Rotate ViewAxonometric}}: This macro rotates the current view in ViewAxonometric.
<!--T:171-->
* {{MacroLink|Icon=Text_console_python.png|Macro Rotate View Free|Macro Rotate View Free}}: This macro is used in the Python console and rotates the current view in the angle and plane given.
* {{MacroLink|Icon=Macro_View_Rotation.png|Macro View Rotation|Macro View Rotation}}: Provides a GUI to permit rotation of view by precise amounts in all three directions.
* {{MacroLink|Icon=Macro_Align_View_to_Face.png|Macro_Align_View_to_Face|Macro Align View to Face}}: This macro aligns the current view to a selected face.

* {{MacroLink|Icon=Macro_Texture_Objects.png|Macro Texture Objects|Macro Texture Objects}}: This macro allows you to temporarily put a texture image on the selected objects.
<!--T:172-->
* {{MacroLink|Icon=Macro_Mouse_Cross.png|Macro Mouse Cross|Macro Mouse Cross}}: This small macro turns the arrow of the mouse in a precision cross.
* {{MacroLink|Icon=Centericon.png|Macro MoveToOrigin|Macro Move to Origin}}: This macro translates the Placement of an object so that a selected location becomes its new origin.
* {{MacroLink|Icon=Macro_Copy3DViewToClipboard.png|Macro_Copy3DViewToClipboard|Macro Copy3DViewToClipboard}}: Copy contents of 3DView resized 640, 480 px to clipboard.

* {{MacroLink|Icon=Macro_Align_View_to_Face.png|Macro Align View to Face|Macro Align View to Face}}: This macro aligns the current view to a selected face.
<!--T:173-->
* {{MacroLink|Icon=Macro_Align_Object_to_View.png|Macro Align Object to View|Macro Align Object to View}}: This macro align the selected object to the current View and set the coordinates Placement of the camera.
* {{MacroLink|Icon=FCCamera_00.png|Macro_FCCamera|Macro FCCamera}}: This macro can rotate the screen in a defined angle and the defined axis and creates a plan to face the screen to create a form in the specified plan positions the selected face facing the screen, to detect the position of the camera.
* {{MacroLink|Icon=Macro_Align_Camera_to_Working_Plane.png|Macro Align Camera to Working Plane|Macro Align Camera to Working Plane}}: This macro aligns the camera to the current [[Draft SelectPlane|Draft Working Plane]]

* {{MacroLink|Icon=Macro_Align_Working_Plane_to_Camera.png|Macro Align Working Plane to Camera|Macro Align Working Plane to Camera}}: This macro moves the current [[Draft SelectPlane|Draft Working Plane]] to the center of the current view
<!--T:174-->
* {{MacroLink|Icon=Macro Align Face Object to View.png|Macro Align Face Object to View|Macro Align Face Object to View}}: This macro align the face of the selected object to the current View (in case face hole the hole is placed to the view).
* {{MacroLink|Icon=Macro_Toggle_Views_Visibility.png|Macro Toggle Panels Visibility|Macro Toggle Panels Visibility}}: This macro toggles the visibility of various supporting panels in FreeCAD, allowing the main window to be viewed with all available screen space.
* {{MacroLink|Icon=Macro_Mouse_Cross.png|Macro_Mouse_Cross|Macro Mouse Cross}}: This small macro turns the arrow of the mouse in a precision cross.

* {{MacroLink|Icon=FCCamera_00.png|Macro FCCamera|Macro FCCamera}}: This macro can rotate the screen in a defined angle and the defined axis and creates a plan to face the screen to create a form in the specified plan positions the selected face facing the screen, to detect the position of the camera.
<!--T:175-->
* {{MacroLink|Icon=Macro SelectVisible.png|Macro_Toggle_Visibility|Macro Toggle Visibility}}: Set of three macro, macro '''1:''' hidden the objects not selected, macro '''2:''' displayed alls objects, macro '''3:''' hidden alls objects.
* {{MacroLink|Icon=Macro VisibleAlls.png|Macro VisibleAlls|Macro Visible Alls objects}}: This macro check visible all object in the document (Visibility=True).
* {{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 [[Image:View-top.svg|Std_ViewTop|16px|link=Std_ViewTop]] [[Std_ViewTop|XY (top)]] view.

* {{MacroLink|Icon=Macro HiddenAlls.png|Macro HiddenAlls|Macro Hidden Alls objects}}: This macro check hidden all object in the document (Visibility=False).
<!--T:176-->
* {{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_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=Text_console_python.png|Macro_Rotate_View_Free|Macro Rotate View Free}}: This macro is used in the Python console and rotates the current view in the angle and plane given.

* {{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.
<!--T:177-->
* {{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_Rotate_View_with_Y_pointing_upwards_.png|Macro_Rotate_ViewAxonometric|Macro Rotate ViewAxonometric}}: This macro rotates the current view in View Axonometric.

* {{MacroLink|Icon=Macro_Manage_Navigational_Styles2.png|Macro_Manage_Navigational_Style2|Macro Manage Navigational Style2}}: This pair of macros allow you to alter the Navigation Style to 'Inventor'.
<!--T:178-->
* {{MacroLink|Icon=Macro_Duplicate_Selection.png|Macro Duplicate Selection|Macro Duplicate Selection}}: This macro testing if one selection are duplicate , select the object IN THE 3D VIEW the "ForbiddenCursor" stay if the or one selection is duplicate, the macro stay resident.
* {{MacroLink|Icon=Macro_Screen_Wiki.png|Macro_Screen_Wiki|Macro Screen Wiki}}: This macro allows to save the 3D view in the desired format. The 3D view or the full 3D window of FreeCAD takes the desired dimensions.
* {{MacroLink|Icon=Macro_Copy3DViewToClipboard.png|Macro Copy3DViewToClipboard|Macro Copy3DViewToClipboard}}: Copy contents of 3DView resized 640, 480 px to clipboard .

* {{MacroLink|Icon=Macro Perpendicular To Wire.png|Macro Perpendicular To Wire|Macro Perpendicular To Wire}}: This macro positioned your object perpendicularly to wire selected.
<!--T:179-->
* {{MacroLink|Icon=Macro Rotate To Point.png|Macro Rotate To Point|Macro Rotate To Point}}: Macro for rotate on object on itself with the axis of rotation the boundbox center, center of mass or last point clicked
* {{MacroLink|Icon=Macro Select Hovering.png|Macro Select Hovering|Macro Select Hovering}}: this macro select a choice Face, Edge, Vertex hovering by the mouse.
* {{MacroLink|Icon=Snip.png|Macro_Snip|Macro Snip}}: Easily post screenshots to the FreeCAD forum.

* {{MacroLink|Icon=Macro ExpandTreeItem.png|Macro ExpandTreeItem|Macro ExpandTreeItem}}: this macro expand selected items in the tree view.. If not selection all item are expand/collapse
<!--T:180-->
* {{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_View_Rotation.png|Macro_View_Rotation|Macro View Rotation}}: Provides a GUI to permit rotation of view by precise amounts in all three directions.

* {{MacroLink|Icon=Macro_Screen_Wiki.png|Macro_Screen_Wiki|Macro_Screen_Wiki}}: Special macro for the Wiki Worker. This macro allows to save the 3D view in the desired format. The 3D view or the full 3D window of FreeCAD takes the desired dimensions.
<!--T:181-->
* {{MacroLink|Icon=GuiResetToolbars.svg|Macro GuiResetToolbars|Macro GuiResetToolbars}}: This macro resets the position of the toolbars.
* {{MacroLink|Icon=Zoom1_1.svg|Macro_Zoom1_1|Macro Zoom 1:1}}: 1:1 Zoom so objects appear their actual size on the screen.

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


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


</translate>
</translate>
Line 71: Line 69:
<translate>
<translate>


<!--T:100-->
<!--T:182-->
* {{MacroLink|Icon=Macro_crank_simul.png|Macro crank simul|Macro crank simul}}: Rotation rod and piston
* {{MacroLink|Icon=Macro_Animated_Constrain.png|Macro_Animated_Constrain|Macro Animated Constrain}}: Animate angle constrain in sketcher.

* {{MacroLink|Icon=Macro_Spring.png|Macro Spring|Macro Spring}}: Simulation of one spring
<!--T:183-->
* {{MacroLink|Icon=Macro_hinge.png|Macro hinge|Macro hinge}}: Open and close hinge
* {{MacroLink|Icon=Macro_Assembly.png|Macro Assembly|Macro Assembly}}: Assembly animate
* {{MacroLink|Icon=Animator.svg|Macro_Animator|Macro Animator}}: Animate your model by animating its properties with this feature Python object.

* {{MacroLink|Icon=Macro_Animated_Constrain.png|Macro Animated Constrain|Macro Animated Constrain}}: Animate angle constrain in sketcher
<!--T:184-->
* {{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)

<!--T:185-->
* {{MacroLink|Icon=Macro_Assembly.png|Macro_Assembly|Macro Assembly}}: Assembly animate.

<!--T:186-->
* {{MacroLink|Icon=Macro_Constraint_Draft.png|Macro_Constraint_Draft|Macro 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).

<!--T:187-->
* {{MacroLink|Icon=Macro_crank_simul.png|Macro_crank_simul|Macro crank simul}}: Rotation rod and piston.

<!--T:188-->
* {{MacroLink|Icon=Macro_hinge.png|Macro_hinge|Macro hinge}}: Open and close hinge.

<!--T:189-->
* {{MacroLink|Icon=Macro_Spring.png|Macro_Spring|Macro Spring}}: Simulation of one spring.


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

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


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


</translate>
</translate>
Line 93: Line 105:
<translate>
<translate>


<!--T:102-->
<!--T:190-->
* {{MacroLink|Icon=Macro MessageBox.png|Macro MessageBox|Macro MessageBox}}: shows how to give information to the user through the GUI.
* {{MacroLink|Icon=Macro_Build_Utility.png|Macro_Build_Utility|Macro Build Utility}}: This macro provides a utility to assemble a project from sub-project files using the Merge Project facility.

* {{MacroLink|Icon=MEPlan.png|Qt Example|Qt Example}}: example of using Qt commands, their connections, extraction and data assignment.
<!--T:191-->
* {{MacroLink|Icon=Macro_Python_Assistant_Window.png|Macro Python Assistant Window|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.
* {{MacroLink|Icon=Macro_Build_Utility.png|Macro Build Utility|Macro Build Utility}}: This macro provides a utility to assemble a project from sub-project files using the Merge Project facility.
* {{MacroLink|Icon=Macro_clone_explicit.png|Macro_clone_explicit|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.

* {{MacroLink|Icon=Macro_Global_Variable_Watcher.png|Macro Global Variable Watcher|Macro Global Variable Watcher}}: This macro facilitates the user selecting global variables and monitoring their values.
<!--T:192-->
* {{MacroLink|Icon=Macro_clone_explicit.png|Macro clone explicit|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.
* {{MacroLink|Icon=Editor_Assistant_Icon.svg|Macro_Editor_Assistant|Macro Editor Assistant}}: Extends the capabilities of FreeCAD's integrated Python editor.

<!--T:193-->
* {{MacroLink|Icon=Macro_Global_Variable_Watcher.png|Macro_Global_Variable_Watcher|Macro Global Variable Watcher}}: This macro facilitates the user selecting global variables and monitoring their values.

<!--T:194-->
* {{MacroLink|Icon=Macro_MessageBox.png|Macro_MessageBox|Macro MessageBox}}: Shows how to give information to the user through the GUI.

<!--T:195-->
* {{MacroLink|Icon=Macro_Print_SceneGraph.png|Macro_Print_SceneGraph|Macro Print SceneGraph}}: Prints the SceneGraph.

<!--T:196-->
* {{MacroLink|Icon=Macro_Python_Assistant_Window.png|Macro_Python_Assistant_Window|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.

</translate>
<!--THIS MACRO "Macro ZTest Over 128" SHOULD NOT BE TRANSLATED-->
* {{MacroLink|Icon=Macro_ZTest_Over_128.png|Macro_ZTest_Over_128|Macro ZTest Over 128}}: This macro is only used by programmers Test characters ASCII over 127.
<translate>

<!--T:197-->
* {{MacroLink|Icon=MEPlan.png|Qt_Example|Qt Example}}: Example of using Qt commands, their connections, extraction and data assignment.

<!--T:198-->
* [[Image:Text-x-python.png|24px]] [https://github.com/dprojects/scanObjects scanObjects]: Inspection tool for FreeCAD macro development and project debug.

<!--T:388-->
* {{MacroLink|Icon=TNP_solution.png|Macro_TNP_Solution|Macro TNP Solution}}: A basic example of how the Topological Naming Problem can be solved. The macro is intended for programmers only.


</translate>
</translate>
<!--NOT MODIFY THE POSITION OF THIS MACRO THIS MACRO "Macro ZTest Over 128" DO NOT HAVE TO BE TRANSLATED-->
* {{MacroLink|Icon=Macro_ZTest_Over_128.png|Macro ZTest Over 128|Macro ZTest Over 128}}: This macro is only used by programmers Test characters ASCII over 127.
</div>
</div>
</div>
</div>

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


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


</translate>
</translate>
Line 116: Line 152:
<translate>
<translate>


<!--T:104-->
<!--T:199-->
* {{MacroLink|Icon=Applications-python.svg|Macro_3DXML_import|Macro 3DXML import}}: Imports a 3DXML-ascii file into FreeCAD, limited functionality.
* {{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_MeshToPart.png|Macro MeshToPart|Macro MeshToPart}}: converts selected meshes to parts
<!--T:200-->
* {{MacroLink|Icon=PartToVRML.png|Macro PartToVRML|Macro PartToVRML}}: Converts selected parts to VRML meshes for small size and faster loading (VRML models Kicad and Blender compatible)
* {{MacroLink|Icon=Macro_FaceToSketch.png|Macro FaceToSketch|Macro FaceToSketch}}: Converts the selected Face to a single Sketch without constraints.
* {{MacroLink|Icon=Macro_Compound_Plus.png|Macro_Compound_Plus|Macro Compound Plus}}: Draft command set in a small macro for the 2D sketch example: work with the DXF files.

* {{MacroLink|Icon=FCBmpImportLogo.svg|Macro FCBmpImport|Macro FCBmpImport}}: Import Black and White BMP images into FreeCAD as sketch, wire, or solid or Grayscale BMP for lithophanes.
<!--T:201-->
* {{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_Creating_faces_from_a_DXF_file.png|Macro_Creating_faces_from_a_DXF_file|Macro Creating faces from a DXF file}}: This macro create face from a DXF file, the "Layer" are recognized separate and trained in groups.

<!--T:202-->
* {{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.

<!--T:203-->
* {{MacroLink|Icon=Macro_DXF_to_Face_and_Sketch.png|Macro_DXF_to_Face_and_Sketch|Macro DXF to Face and Sketch}}: This macro converts selected elements of imported DXF file to face and sketch.

<!--T:204-->
* {{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.

<!--T:205-->
* {{MacroLink|Icon=Macro_Extract_Wires_from_Mesh.png|Macro_Extract_Wires_from_Mesh|Macro Extract Wires from Mesh}}: Extracts boundary wires from selected meshes.

<!--T:206-->
* {{MacroLink|Icon=Macro_FaceToSketch.png|Macro_FaceToSketch|Macro FaceToSketch}}: Converts the selected Face to a single Sketch without constraints.

<!--T:207-->
* {{MacroLink|Icon=FCBmpImportLogo.svg|Macro_FCBmpImport|Macro FCBmpImport}}: Import Black and White BMP images into FreeCAD as sketch, wire, or solid or Grayscale BMP for lithophanes.

<!--T:208-->
* {{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".

<!--T:209-->
* {{MacroLink|Icon=Applications-python.svg|Macro_Iges_PyImporter|Macro Iges PyImporter}}: Imports an iges file with entity 128, for example an iges-file from FreeShip, into FreeCAD.

<!--T:210-->
* {{MacroLink|Icon=Macro_MeshToPart.png|Macro_MeshToPart|Macro MeshToPart}}: Converts selected meshes to parts.

<!--T:211-->
* {{MacroLink|Icon=MultiCopy-reduced.png|Macro_MultiCopy|Macro MultiCopy}}: MultiCopy allows the duplication (copy and paste) of multiple FreeCAD objects that can be labelled sequentially and in a custom manner.
* {{MacroLink|Icon=MultiCopy-reduced.png|Macro_MultiCopy|Macro MultiCopy}}: MultiCopy allows the duplication (copy and paste) of multiple FreeCAD objects that can be labelled sequentially and in a custom manner.

* {{MacroLink|Icon=Applications-python.svg|Macro_3DXML_import|Macro 3DXML import}}: Imports a 3DXML-ascii file into FreeCAD, limited functionality.
<!--T:212-->
* {{MacroLink|Icon=PartToVRML.png|Macro_PartToVRML|Macro PartToVRML}}: Converts selected parts to VRML meshes for small size and faster loading (VRML models Kicad and Blender compatible).


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

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


===[[File:Drawing-orthoviews.svg]] Drawing Workbench=== <!--T:105-->
===[[File:Workbench_Draft.svg|32px]] Draft Workbench and 2D=== <!--T:107-->

<!--T:165-->
The [[Drawing Workbench|Drawing Workbench]] is considered obsolete since FreeCAD 0.17. Consider using the [[TechDraw Workbench|TechDraw Workbench]] instead.


</translate>
</translate>
Line 143: Line 206:
<translate>
<translate>


<!--T:106-->
<!--T:213-->
* {{MacroLink|Icon=Macro_Align_Camera_to_Working_Plane.png|Macro_Align_Camera_to_Working_Plane|Macro Align Camera to Working Plane}}: This macro aligns the camera to the current [[Draft_SelectPlane|Draft Working Plane]].
* {{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_CartoucheFC.png|Macro CartoucheFC|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.
<!--T:214-->
* {{MacroLink|Icon=Macro_CartoucheFC_Full.png|Macro CartoucheFC Full|Macro CartoucheFC Full}}: This GUI macro to fill simply all fields of the cartridge [[Misc_templates_Full|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.
* {{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_Align_Working_Plane_to_Camera.png|Macro_Align_Working_Plane_to_Camera|Macro Align Working Plane to Camera}}: This macro moves the current [[Draft_SelectPlane|Draft Working Plane]] to the center of the current view.

* {{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
<!--T:215-->
* {{MacroLink|Icon=Macro_Draft_Circle_3_Points.png|Macro_Draft_Circle_3_Points|Macro Draft Circle 3 Points}}: Creates a circle from 3 selected points 2D orthogonal.

<!--T:216-->
* {{MacroLink|Icon=Macro_Draft_Circle_3_Points.png|Macro_Draft_Circle_3_Points_3D|Macro Draft Circle 3 Points 3D}}: Creates a circle from 3 selected points in the space 3D.

<!--T:389-->
* {{MacroLink|Icon=Applications-python.svg|Macro_Draft_Circle_Tangent|Macro Draft Circle Tangent}}: Makes tangents to Draft circles.

<!--T:217-->
* {{MacroLink|Icon=Macro_EdgesToArc.png|Macro_EdgesToArc|Macro EdgesToArc}}: Converts the selected Edges to a circular Arc if possible. Useful for restoring discretized arcs.

<!--T:218-->
* {{MacroLink|Icon=Macro_Ellipse-Center%2B2Points.png|Macro_Ellipse-Center+2Points|Macro Ellipse-Center+2Points}}: Makes an ellipse by selecting three points (in this order): center, major radius and minor radius.

<!--T:219-->
* {{MacroLink|Icon=Macro_FCConvertLines.png|Macro_FCConvertLines|Macro FC Convert Lines}}: This macro convert the object line, wire in line Dash, DashDot, DashDotDot, ZigZag and Hand with the dimensions given.

<!--T:220-->
* {{MacroLink|Icon=Macro_Make_Arc_3_Points.png|Macro_Make_Arc_3_Points|Macro Make Arc 3 Points}}: Creates a arc from 3 selected points.

<!--T:221-->
* {{MacroLink|Icon=Macro_Draft_Circle_3_Points.png|Macro_Make_Circle_3_Points|Macro Make Circle 3 Points}}: Creates a circle from 3 selected points, the points can be objects.

<!--T:222-->
* {{MacroLink|Icon=Macro_Rectellipse.png|Macro_Rectellipse|Macro Rectellipse}}: Creates a parametric rectellipse.


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

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


===[[File:Draft_BSpline.svg]] Dxf 2D Draft=== <!--T:107-->
===[[File:Workbench_FEM.svg|32px]] Fem Workbench=== <!--T:109-->


</translate>
</translate>
Line 163: Line 251:
<translate>
<translate>


<!--T:108-->
<!--T:228-->
* {{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.
* {{MacroLink|Icon=Macro Rectellipse.png|Macro Rectellipse|Macro Rectellipse}}: creates a parametric rectellipse

* {{MacroLink|Icon=Macro_Draft_Circle_3_Points.png|Macro Make Circle 3 Points|Macro Make Circle 3 Points}}: creates a circle on 3 selected points, the points can be objects (this example brings together the two examples below, all parameters simply settle on a graphic window).
<!--T:229-->
* {{MacroLink|Icon=Macro_Draft_Circle_3_Points.png|Macro Draft Circle 3 Points|Macro Draft Circle 3 Points}}: creates a circle from 3 selected points 2D orthogonal
* {{MacroLink|Icon=Macro_Draft_Circle_3_Points.png|Macro Draft Circle 3 Points 3D|Macro Draft Circle 3 Points 3D}}: creates a circle from 3 selected points in the space 3D
* {{MacroLink|Icon=Macro_GMSH.png|Macro_GMSH|Macro GMSH}}: Create FEM Meshes by GMSH Mesh Generator.
* {{MacroLink|Icon=Macro Make Arc 3 Points.png|Macro Make Arc 3 Points|Macro Make Arc 3 Points}}: creates a arc from 3 selected points
* {{MacroLink|Icon=Macro_Ellipse-Center%2B2Points.png|Macro Ellipse-Center+2Points|Macro Ellipse-Center+2Points}} Makes an ellipse by selecting three points (in this order): centre, major radius and minor radius
* {{MacroLink|Icon=Macro_FCConvertLines.png|Macro FCConvertLines|Macro FC Convert Lines}}: this macro convert the object line, wire in line Dash, DashDot, DashDotDot,ZigZag and Hand with the dimensions given.
* {{MacroLink|Icon=Macro_EdgesToArc.png|Macro EdgesToArc|Macro EdgesToArc}}: Converts the selected Edges to a circular Arc if possible. Useful for restoring discretized arcs.
* {{MacroLink|Icon=Macro_Creating_faces_from_a_DXF_file.png|Macro Creating faces from a DXF file|Macro Creating faces from a DXF file}}: This macro create face from a DXF file, the "Layer" are recognized separate and trained in groups.
* {{MacroLink|Icon=Macro_DXF_to_Face_and_Sketch.png|Macro DXF to Face and Sketch|Macro DXF to Face and Sketch}}: This macro converts selected elements of imported dxf to face and sketch.
* {{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


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

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


===[[File:Fem_ResultDisplacement.svg]] Fem=== <!--T:109-->
===[[File:Std_Windows.svg|32px]] Gui=== <!--T:230-->


</translate>
</translate>
Line 190: Line 269:
<translate>
<translate>


<!--T:110-->
<!--T:231-->
* {{MacroLink|Icon=Macro_GMSH.png|Macro GMSH|Macro GMSH}}: Create FEM Meshes by GMSH Mesh Generator
* {{MacroLink|Icon=GuiResetToolbars.svg|Macro_GuiResetToolbars|Macro GuiResetToolbars}}: This macro resets the position of the toolbars.

* {{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.
<!--T:232-->
* {{MacroLink|Icon=Macro_MacroMenu.png|Macro_MacroMenu|Macro MacroMenu}}: Add the macros found in the macros folder to the Macros menu of FreeCAD.

<!--T:233-->
* {{MacroLink|Macro_SplitPropEditor|Macro SplitPropEditor}}: Temporarily split the property editor from the combo view to a separated dock widget.

<!--T:234-->
* {{MacroLink|Icon=Macro_Toggle_Views_Visibility.png|Macro_Toggle_Panels_Visibility|Macro Toggle Panels Visibility}}: This macro toggles the visibility of various supporting panels in FreeCAD, allowing the main window to be viewed with all available screen space.

<!--T:395-->
* {{MacroLink|Icon=MacroToolbarManager_icon.svg|Macro_MacroToolbarManager|Macro MacroToolbarManager}}: Easily manage custom macro toolbars, allows to create, rename, and delete toolbars, add and remove the macros, edit shortcuts and icons, even includes a simple xpm icon maker tool.

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

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


===[[File:Part_Measure_Clear_All.svg]] Info and measures=== <!--T:111-->
===[[File:Part_Measure_Linear.svg|32px]] Info and measurements=== <!--T:111-->


</translate>
</translate>
Line 206: Line 296:
<translate>
<translate>


<!--T:112-->
<!--T:235-->
* {{MacroLink|Icon=BoundBoxTracing.png|Macro_BoundingBox_Tracing|Macro BoundingBox Tracing}}: This macro red trace (editable) around the BoundingBox with 6 rectangles.
* {{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 Alternate Linux|Macro FCInfo Alternate Linux}}: same as above, but for Linux
<!--T:236-->
* {{MacroLink|Icon=Macro_FCInfoGlass.png|Macro FCInfoGlass|Macro FCInfoGlass}}: Gives a series of information about the selected shape and displayed in screen 3D
* {{MacroLink|Icon=FCInfoToMouse.png|Macro FCInfoToMouse|Macro FCInfoToMouse}}: Provide informations coordinates, length and angles in real time on the mouse in a bubble annotation displayed in the 3D screen
* {{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_Delta_xyz.png|Macro Delta xyz|Macro Delta xyz}}: Gives the Delta values and the distance between 2 points
<!--T:237-->
* {{MacroLink|Icon=Macro_ObjectInfo.png|Macro ObjectInfo|Macro ObjectInfo}}: User-friendly "Info" module created by a FreeCAD user
* {{MacroLink|Icon=Macro_Dump_Objects.png|Macro Dump Objects|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.
* {{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_MeasureCircle.png|Macro MeasureCircle|Macro MeasureCircle}}: Compute the radius of a circle by 3 points or a circular edge.
<!--T:238-->
* {{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_SimpleProperties.png|Macro SimpleProperties|Macro SimpleProperties}}: Display in a concise way basic physical properties of an object (volume, bound box dimensions, ...)
* {{MacroLink|Icon=Macro_cross_section.png|Macro_cross_section|Macro cross section}}: Displays an interactively slidable cross-section.

<!--T:239-->
* {{MacroLink|Icon=Macro_Delta_xyz.png|Macro_Delta_xyz|Macro Delta xyz}}: Gives the Delta values and the distance between 2 points.

<!--T:240-->
* {{MacroLink|Icon=Macro_Dump_Objects.png|Macro_Dump_Objects|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.

<!--T:241-->
* {{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).

<!--T:242-->
* {{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.

<!--T:243-->
* {{MacroLink|Icon=FCInfo.png|Macro_FCInfo_Alternate_Linux|Macro FCInfo Alternate Linux}}: Same as above, but for Linux (obsolete).

<!--T:244-->
* {{MacroLink|Icon=FCInfoToolBar.png|Macro_FCInfo_ToolBar|Macro FCInfo ToolBar}}: Gives a series of information about the selected shape as FCInfo in a mini ToolBar.

<!--T:245-->
* {{MacroLink|Icon=Macro_FCInfoGlass.png|Macro_FCInfoGlass|Macro FCInfoGlass}}: Gives a series of information about the selected shape and displayed in screen 3D.

<!--T:246-->
* {{MacroLink|Icon=FCInfoToMouse.png|Macro_FCInfoToMouse|Macro FCInfoToMouse}}: Provides informations coordinates, length and angles in real time on the mouse in a bubble annotation displayed in the 3D screen.

<!--T:247-->
* {{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.

<!--T:248-->
* {{MacroLink|Icon=Macro_HighlightCommon.png|Macro_HighlightCommon|Macro HighlightCommon}}: Highlight common parts.

<!--T:249-->
* {{MacroLink|Icon=HighlightDifference.png|Macro_HighlightDifference|Macro HighlightDifference}}: Compute the difference between two shapes.

<!--T:250-->
* {{MacroLink|Icon=Macro_MeasureCircle.png|Macro_MeasureCircle|Macro MeasureCircle}}: Compute the radius of a circle by 3 points or a circular edge.

<!--T:251-->
* {{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).

<!--T:227-->
* {{MacroLink|Icon=Macro_Normal_Vector.png|Macro_Normal_Vector|Macro Normal Vector}}: Get the normal vector of a preselected face.

<!--T:252-->
* {{MacroLink|Icon=Macro_ObjectInfo.png|Macro_ObjectInfo|Macro ObjectInfo}}: User-friendly "Info" module created by a FreeCAD user.

<!--T:381-->
* [[Image:Text-x-python.png|24px]] [https://github.com/dprojects/Woodworking/blob/master/Tools/showSpaceModel.py Macro showSpaceModel]: Allows to calculate occupied space in 3D by the full model.

<!--T:382-->
* [[Image:Text-x-python.png|24px]] [https://github.com/dprojects/Woodworking/blob/master/Tools/showSpaceSelected.py Macro showSpaceSelected]: Allows to calculate occupied space in 3D by all selected elements.

<!--T:253-->
* {{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>
</div>
</div>

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


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


</translate>
</translate>
Line 231: Line 374:
<translate>
<translate>


<!--T:114-->
<!--T:254-->
* {{MacroLink|Icon=Macro_BOLTS.png|Macro_BOLTS|Macro BOLTS}}: The aim of BOLTS is to build a free and open-source standard parts library for CAD applications.
* {{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_BOLTS.png|Macro BOLTS|Macro BOLTS}}: The aim of BOLTS is to build a free and open-source standard parts library for CAD applications.
<!--T:255-->
* {{MacroLink|Icon=FreeCAD Doc.png|Macro PartsLibrary|Macro PartsLibrary}}: Starts the Parts library browser
* {{MacroLink|Icon=FreeCAD_Doc.png|Macro_PartsLibrary|Macro PartsLibrary}}: Starts the Parts library browser.

<!--T:256-->
* {{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!)]

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

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


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


</translate>
</translate>
Line 248: Line 395:
<translate>
<translate>


<!--T:116-->
<!--T:257-->
* {{MacroLink|Icon=Parametric_Curve_FP.svg|Macro Parametric_Curve_FP|Macro Parametric Curve FP}}: Feature python update of Macro 3D Parametric Curve.
* {{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).
<!--T:258-->
* {{MacroLink|Icon=Macro_Draw_2D_Function.png|Macro Draw 2D Function|Macro Draw 2D Function}}: draws a function described by an equation z=F(x)
* {{MacroLink|Icon=Macro_Draw_Parametric_2D_Function.png|Macro Draw Parametric 2D Function|Macro Draw Parametric 2D Function}}: Based on the above macro, but for parametric and optionally polar
* {{MacroLink|Icon=Macro_Draw_2D_Function.png|Macro_Draw_2D_Function|Macro Draw 2D Function}}: Draws a function described by an equation z=F(x).

* {{MacroLink|Icon=WF_wf.png|Macro WorkFeatures|Macro WorkFeatures}}: Tool utility : Tab > Wire > Curves And Surfaces {{KEY|Launch Curves and Surfaces Menu ...}}
<!--T:259-->
equations.
* {{MacroLink|Icon=Macro_Draw_Parametric_2D_Function.png|Macro_Draw_Parametric_2D_Function|Macro Draw Parametric 2D Function}}: Based on the above macro, but for parametric and optionally polar.

<!--T:260-->
* {{MacroLink|Icon=Parametric_Curve_FP.svg|Macro_Parametric_Curve_FP|Macro Parametric Curve FP}}: Feature Python update of Macro 3D Parametric Curve.


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

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


===[[File:IFC.svg]] Multifunctional=== <!--T:117-->
===[[File:Part_Primitives.svg|32px]] Object creation=== <!--T:119-->


</translate>
</translate>
Line 269: Line 419:
<translate>
<translate>


<!--T:118-->
<!--T:261-->
* {{MacroLink|Icon=AeroFoil.png|Macro_AeroFoil|Macro AeroFoil}}: AeroFoil creates airfoil curves and faces using pre-defined models, algebraic functions, and DAT or CSV Files.
* {{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.

<!--T:262-->
* {{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.

<!--T:263-->
* {{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.

<!--T:385-->
* {{MacroLink|Icon=Applications-python.svg|Macro_BSurf_from_grid|Macro BSurf from grid}}: Makes a B-spline surface through a grid of points.

<!--T:264-->
* {{MacroLink|Icon=Macro_Circle.png|Macro_Circle|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).

<!--T:265-->
* {{MacroLink|Icon=Macro_CirclePlus.png|Macro_CirclePlus|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.

<!--T:266-->
* {{MacroLink|Icon=Macro_Cut_Circle.png|Macro_Cut_Circle|Macro Cut Circle}}: Cut a circle or arc and create x arcs, giving the number of cut.

<!--T:267-->
* {{MacroLink|Icon=Macro_Cut_Line.png|Macro_Cut_Line|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.

<!--T:268-->
* {{MacroLink|Icon=Cam-groover-icon-32x32.png|Macro_FCCamGroover|Macro FCCamGroover}}: Creates grooved cylinder for cam.

<!--T:269-->
* {{MacroLink|Icon=FCCircularTextButtom.png|Macro_FCCircularText|Macro FCCircularText}}: This macro create a text around a cylinder.

<!--T:270-->
* {{MacroLink|Icon=FCHoneycombMakerIcon.png|Macro_FCHoneycombMaker|Macro FCHoneycombMaker}}: Creates parametric honeycomb grid.

<!--T:271-->
* {{MacroLink|Icon=FCSpring_Helix_Variable.png|Macro_FCSpring_Helix_Variable|Macro FCSpring Helix Variable}}: This macro creates one spring truncate, the troncature is adjustable on the all coil to choice.

<!--T:272-->
* {{MacroLink|Icon=FCSpring_On_Surface.png|Macro_FCSpring_On_Surface|Macro FCSpring On Surface}}: This macro creates one spring (helix) on the surface of the object (solide).

<!--T:274-->
* {{MacroLink|Icon=Macro_Geodesic_Dome.svg|Macro_Geodesic_Dome|Macro Geodesic Dome}}: This macro creates a geodesic dome shell.

<!--T:275-->
* {{MacroLink|Icon=Macro_Guitar_fretboard.png|Macro_Guitar_fretboard|Macro Guitar fretboard}}: Guitar Fretboard Maker.

<!--T:276-->
* {{MacroLink|Icon=Macro_Guitar_Nut.png|Macro_Guitar_Nut|Macro Guitar Nut}}: Guitar Nut Maker.

<!--T:361-->
* {{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.

<!--T:362-->
* {{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.

<!--T:277-->
* {{MacroLink|Icon=Hilbert_curve_icon.png|Macro_HilbertCurve|Macro HilbertCurve}}: Creates an Hilbert curve wire in 2 or 3 dimensions with many iterations.

<!--T:278-->
* {{MacroLink|Icon=Macro_Honeycomb.svg|Macro_Honeycomb|Macro Honeycomb}}: Creates a feature Python Honeycomb object compatible in and out of PartDesign.

<!--T:279-->
* {{MacroLink|Icon=ImportAirfoil.svg|Macro_ImportAirfoil|Macro ImportAirfoil}}: Airfoil coordinates import, then scale the airfoil, rotate, translate in the plane, translate along the span, select the plane and the main axis, and turn the geometry into a sketch.

<!--T:280-->
* {{MacroLink|Icon=Intersection_Icon.svg|Macro_Intersection|Macro Intersection}}: Finds the intersection between 2 or 3 selected edges/faces, works with Datum Planes and Datum Lines also. Creates a parametric feature Python object containing the shape of the intersection.

<!--T:281-->
* {{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.

<!--T:273-->
* {{MacroLink|Icon=FCCreaLoft.png|Macro_Loft|Macro Loft}}: Create a loft with a list of wire (specially created for [[Macro_Texture|Macro Texture]]).

<!--T:282-->
* {{MacroLink|Icon=Macro_makeCube.png|Macro_Make_Cube|Macro Make Cube}}: Creates a [http://en.wikipedia.org/wiki/Cuboid rectangular cuboid] from 4 points.

<!--T:391-->
* {{MacroLink|Icon=Applications-python.svg|Macro_Place_Image|Macro Place Image}}: Creates an [[Image_CreateImagePlane|ImagePlane]] and aligns it to an existing [[Draft_Rectangle|Draft Rectangle]].

<!--T:283-->
* {{MacroLink|Icon=Dodecahedron.svg|Macro_Polyhedrons|Macro Polyhedrons}}: This macro creates parametric polyhedrons (dodecahedron, icosahedron, tetrahedron, ...). Customizable via radius or side.

<!--T:284-->
* {{MacroLink|Icon=Pyramidicon.svg|Macro_Pyramid|Macro Pyramid}}: This macro creates a parametric pyramid. All parameters are customizable just like with Part Cone.

<!--T:285-->
* {{MacroLink|Icon=Macro_ReproWire.png|Macro_Repro_Wire|Macro Repro Wire}}: This macro reproduces all element selected subobject wire or face.

<!--T:286-->
* {{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.

<!--T:287-->
* {{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.

<!--T:367-->
* {{MacroLink|Icon=Macro_Stairs.png|Macro_Stairs|Macro Stairs}}: Create stair helix, create your stair nosing select and run the macro.

<!--T:288-->
* {{MacroLink|Icon=Macro_Triangle_AH.png|Macro_Triangle_AH|Macro Triangle AH}}: This macro creates a triangle by giving the head angle and the height of the triangle (the head of the triangle is positioned to the xyz coordinates 0.0).

<!--T:289-->
* {{MacroLink|Icon=Macro_WireXYZ.png|Macro_WireXYZ|Macro WireXYZ}}: This macro creates a Wire with the coordinates extracted from a file. The coordinates X Y Z are separated by a space.

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

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


===[[File:Workbench_Image.svg]] Object creation=== <!--T:119-->
===[[File:Std_TransformManip.svg|32px]] Object transformation=== <!--T:121-->


</translate>
</translate>
Line 284: Line 533:
<translate>
<translate>


<!--T:120-->
<!--T:290-->
* {{MacroLink|Icon=Macro_Align_Object_to_View.png|Macro_Align_Object_to_View|Macro Align Object to View}}: This macro align the selected object to the current View and set the coordinates Placement of the camera.
* {{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.
<!--T:291-->
* {{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=Macro_ArrayCopy.png|Macro_ArrayCopy|Macro ArrayCopy}}: Copies the selected object several times, on an array grid.

* {{MacroLink|Icon=Dodecahedron.svg|Macro Polyhedrons|Macro Polyhedrons}}: This macro creates parametric polyhedrons (dodecahedron, icosahedron, tetrahedron, ...). Customizable via radius or side.
<!--T:292-->
* {{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=Bevel.svg|Macro_Bevel|Macro Bevel}}: Bevels selected vertices, creates parametric feature Python object, compatible with all solids (except with round edges) including features in Part Design bodies.

* {{MacroLink|Icon=Macro CirclePlus.png|Macro CirclePlus|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.
<!--T:293-->
* {{MacroLink|Icon=Macro_Circle.png|Macro circle|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).
* {{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; and 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_Cut_Circle.png|Macro cutCircle|Macro Cut Circle}}: Cut a circle or arc and create x arcs, giving the number of cut.

* {{MacroLink|Icon=Macro_Triangle_AH.png|Macro triangleAH|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)
<!--T:294-->
* {{MacroLink|Icon=FCTexture.png|Macro FCTexture|Macro Texture}}: Create a project from a bmp image to create a texture easily
* {{MacroLink|Icon=FCCreaLoft.png|Macro FCCreaLoft|Macro Loft}}: Create a loft with a list of wire (specially created for Macro Texture see above)
* {{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=FCCircularTextButtom.png|Macro_FCCircularText|Macro Circular Text}}: This macro create a text around a cylinder
<!--T:295-->
* {{MacroLink|Icon=Macro_WireXYZ.png|Macro WireXYZ|Macro WireXYZ}}: This macro creates a Wire with the coordinates extracted from a file. The coordinates X Y Z are separated by a space.
* {{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=Macro_ReproWire.png|Macro ReproWire|Macro Repro Wire}}: This macro reproduce all element selected subobject wire or face.

* {{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.
<!--T:394-->
* {{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|Icon=Std_AxisCross_example.svg|Macro_Express_Placement|Macro Express Placement}}: Display and quickly edit a selected object's placement coordinates directly or via expressions.

* {{MacroLink|Icon=Macro_Guitar_fretboard.png|Macro Guitar fretboard|Macro Guitar fretboard}}: Guitar Fretboard Maker
<!--T:296-->
* {{MacroLink|Icon=Macro Guitar Nut.png|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=Macro_FlattenWire.png|Macro_FlattenWire|Macro FlattenWire}}: Flattens draft wires that are not planar to their median Z coordinate.

* {{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
<!--T:297-->
* {{MacroLink|Icon=FCHoneycombMakerIcon.png|Macro FCHoneycombMaker|Macro FCHoneycombMaker}}: Creates parametric honeycomb grid.
* {{MacroLink|Icon=Hilbert curve icon.png|Macro HilbertCurve|Macro HilbertCurve}}: Creates an Hilbert curve wire in 2 or 3 dimensions with many iterations.
* {{MacroLink|Icon=Macro_FlattenWire3Points.png|Macro_FlattenWire3Points|Macro FlattenWire3Points}}: Flattens draft wires that are not planar to a plane defined by 3 points.

* {{MacroLink|Icon=AeroFoil.png|Macro_AeroFoil|Macro AeroFoil}}: AeroFoil creates airfoil curves and faces using pre-defined models, algebraic functions, and DAT or CSV Files.
<!--T:298-->
* {{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.

<!--T:299-->
* {{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.

<!--T:300-->
* {{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.

<!--T:383-->
* [[Image:Text-x-python.png|24px]] [https://github.com/dprojects/Woodworking/blob/master/Tools/x_magicAngle.py Macro magicAngle]: Small GUI for the Draft.rotate function. Allows to rotate panels and even other more complicated objects, like construction profiles.

<!--T:301-->
* {{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.

<!--T:302-->
* {{MacroLink|Icon=Centericon.png|Macro_MoveToOrigin|Macro Move to Origin}}: This macro translates the Placement of an object so that a selected location becomes its new origin.

<!--T:386-->
* {{MacroLink|Icon=multiCuts.png|Macro_MultiCuts|Macro MultiCuts}}: This macro improves boolean cut hierarchy by automatic labeling and using copies for cut.

<!--T:303-->
* {{MacroLink|Icon=Macro_Overlap.png|Macro_Overlap|Macro Overlap}}: Boolean operation. Similar to [[Part_Common|Part Common]], but with custom overlap count threshold (parametric).

<!--T:304-->
* {{MacroLink|Icon=parametric_defeaturing.svg|Macro_Parametric_Defeaturing|Macro Parametric Defeaturing}}: Macro that provides parametric defeaturing inside and outside the [[PartDesign_Workbench|PartDesign Workbench]].

<!--T:305-->
* {{MacroLink|Icon=Macro_Perpendicular_To_Wire.png|Macro_Perpendicular_To_Wire|Macro Perpendicular To Wire}}: This macro positions an object perpendicularl to a selected wire.

<!--T:306-->
* {{MacroLink|Icon=Macro_PlacementAbsolufy.png|Macro_PlacementAbsolufy|Macro PlacementAbsolufy}}: Reset Part containers to global origin while maintaining objects absolute position.

<!--T:307-->
* {{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.

<!--T:308-->
* {{MacroLink|Icon=Macro_Rotate_To_Point.png|Macro_Rotate_To_Point|Macro Rotate To Point}}: Macro to rotate an object around the center of its boundbox, its center of mass, or the last clicked point.

<!--T:309-->
* {{MacroLink|Icon=Part_Section‎.png|Macro_Section|Macro Section}}: Alternative implementation of Part Section tool, more suitable for making sweep paths (parametric).

<!--T:310-->
* {{MacroLink|Icon=Macro_StraightenObject.png|Macro_StraightenObject|Macro StraightenObject}}: Re-align object(s) with FreeCAD coordinate system according reference face/edge.

<!--T:311-->
* {{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.

<!--T:312-->
* {{MacroLink|Icon=Wirefilter.svg|Macro_WireFilter|Macro WireFilter}}: Filter wires from a sketch to only use certain ones, also 2D offsets, scales, rearranges wire order.


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

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


===[[File:Workbench_PartDesign.svg]] Object transformation=== <!--T:121-->
=== [[File:Part_FaceColors.svg|32px]] Object visibility, view properties and textures === <!--T:313-->


</translate>
</translate>
Line 325: Line 623:
<translate>
<translate>


<!--T:122-->
<!--T:314-->
* [[Image:Text-x-python.png|24px]] [https://github.com/dprojects/Woodworking/blob/master/Tools/colorManager.py colorManager]: Allows to set face colors for all objects from a spreadsheet. Also you can browse colors for a manually selected face or object and see the effect in the 3D model in real-time.
* {{MacroLink|Icon=Macro_ArrayCopy.png|Macro ArrayCopy|Macro ArrayCopy}}: copies the selected object several times, on an array grid

* {{MacroLink|Icon=Bevel.svg|Macro Bevel|Macro Bevel}}: bevels selected vertices, creates parametric feature python object, compatible with all solids (except with round edges) including features in Part Design bodies.
<!--T:315-->
* {{MacroLink|Icon=Macro_FlattenWire.png|Macro FlattenWire|Macro FlattenWire}}: flattens draft wires that are not planar to their median Z coordinate
* {{MacroLink|Icon=Macro_FlattenWire3Points.png|Macro FlattenWire3Points|Macro FlattenWire3Points}}: flattens draft wires that are not planar to a plane defined by 3 points
* {{MacroLink|Icon=Workbench_Image.svg|Macro_Colorize|Macro Colorize}}: Easily set colors of faces, edges, and vertices, including individual transparency levels.

* {{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
<!--T:393-->
* {{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|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|Icon=EasyReflectorIcon.svg|Macro_EasyReflector|Macro EasyReflector}}: Easily managed textures with a parametric feature python object that persists between FreeCAD and Document sessions.

* {{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
<!--T:316-->
* {{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_HiddenAlls.png|Macro_HiddenAlls|Macro Hidden Alls objects}}: This macro check hidden all object in the document (Visibility=False).
* {{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|Icon=parametric_defeaturing.svg|Macro Parametric Defeaturing|Macro Parametric Defeaturing}}: Macro that provides parametric defeaturing inside and outside the [[PartDesign_Workbench|PartDesign Workbench]].
<!--T:317-->
* {{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=FCTexture.png|Macro_Texture|Macro Texture}}: Create a project from a bmp image to create a texture easily.
* {{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.
<!--T:318-->
* {{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_Texture_Objects.png|Macro_Texture_Objects|Macro Texture Objects}}: This macro allows you to temporarily put a texture image on the selected objects.

<!--T:319-->
* {{MacroLink|Icon=Macro_Toggle_Drawstyle.png|Macro_Toggle_Drawstyle|Macro Toggle Drawstyle}}: This macro toggles the Drawstyle of the selected object.

<!--T:320-->
* {{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 as Macro Toggle Drawstyle above but optimized for all languages).

<!--T:321-->
* {{MacroLink|Icon=Macro_SelectVisible.png|Macro_Toggle_Visibility|Macro Toggle Visibility}}: Set of three macro, macro '''1:''' hidden the objects not selected, macro '''2:''' displayed alls objects, macro '''3:''' hidden alls objects.

<!--T:322-->
* {{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.

<!--T:323-->
* {{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.

<!--T:324-->
* {{MacroLink|Icon=Macro_VisibleAlls.png|Macro_VisibleAlls|Macro Visible Alls objects}}: This macro check visible all object in the document (Visibility=True).

<!--T:325-->
* {{MacroLink|Icon=Macro_Visibility_Manager.png|Macro_Visibility_Manager|Macro Visibility Manager}}: Manage visibility of document objects by type or individually.

<!--T:326-->
* [[Image:Text-x-python.png|24px]] [https://github.com/dprojects/setTextures setTextures]: Allows to permanently store the URL of textures in a FreeCAD project and load stored textures.


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

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


===[[File:Workbench_PartDesign.svg]] PartDesign Workbench=== <!--T:166-->
===[[File:Workbench_PartDesign.svg|32px]] PartDesign Workbench=== <!--T:166-->


</translate>
</translate>
Line 357: Line 679:


<!--T:167-->
<!--T:167-->
* {{MacroLink|Icon=Workbench_PartDesign.svg|Macro PDWrapper|Macro PDWrapper}}: Encapsulates non-PartDesign solids for use in PartDesign Bodies, and more.
* {{MacroLink|Icon=Workbench_PartDesign.svg|Macro_PDWrapper|Macro PDWrapper}}: Encapsulates non-PartDesign solids for use in PartDesign Bodies, and more.
* {{MacroLink|Icon=Wirefilter.svg|Macro WireFilter|Macro WireFilter}}: Filter wires from a sketch to only use certain ones, also 2D offsets, scales, rearranges wire order


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

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


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


</translate>
</translate>
Line 373: Line 693:
<translate>
<translate>


<!--T:124-->
<!--T:327-->
* {{MacroLink|Icon=Macro_3d_Printer_Slicer.png|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.

* {{MacroLink|Icon=Macro_3d_Printer_Slicer_Individual_Parts.svg|Macro_3d_Printer_Slicer_Individual_Parts|Macro 3d Printer Slicer Individual Parts}}: This code, when run, will export the visible bodies at the top level (bodies deeper in the tree will be ignored) of the currently open design to individual STL files, and open them it in the slicing software that you use. This macro will look for Cura as the default but you can change it to any other slider by changing the SLICERAPP variable in the source code.
<!--T:328-->
* {{MacroLink|Icon=Macro_3d_Printer_Slicer_Individual_Parts.svg|Macro_3d_Printer_Slicer_Individual_Parts|Macro 3d Printer Slicer Individual Parts}}: This code, when run, will export the visible bodies at the top level (bodies deeper in the tree will be ignored) of the currently open design to individual STL files, and open them it in the slicing software that you use. This macro will look for Cura as the default but you can change it to any other slicer by changing the SLICERAPP variable in the source code.

<!--T:390-->
* {{MacroLink|Icon=Macro_3D_Printer_Workflow.png|Macro_3D_Printer_Workflow|Macro 3D Printer Workflow}}: Macro that creates an stl file with perfect rounding, i.e. without visible facets, from selected objects. It also allows to launch programs of your choice. For example to automate the FreeCAD -> Slicer -> printing workflow.


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

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


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


</translate>
</translate>
Line 391: Line 715:


<!--T:126-->
<!--T:126-->
* {{MacroLink|Icon=Macro_FreeCAD_to_Kerkythea.png|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.

<!--T:387-->
* {{MacroLink|Icon=Applications-python.svg|Macro_Z_Height_Map|Macro Z Height Map}}: Makes a grayscale heightmap in Z.


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

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


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


</translate>
</translate>
Line 406: Line 732:
<translate>
<translate>


<!--T:128-->
<!--T:329-->
* {{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.
<!--T:396-->
* {{MacroLink|Icon=Macro_SpreadsheetTools.png|Macro SpreadsheetTools|Macro Spreadsheet Tools}}: This macro helps managing cells inside FreeCAD Spreadsheet workbench.
* {{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=ConstraintToAlias.svg|Macro_ConstraintToAlias|Macro ConstraintToAlias}}: Allows to create a spreadsheet or add an alias to an existing spreadsheet from within the open sketch editor.

* {{MacroLink|Icon=Applications-python.svg|Macro Spreadsheet2html|Macro Spreadsheet2html}}: Exports a spreadsheet as styled html. Intended as support in transfering data to office suits.
<!--T:330-->
* {{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.

<!--T:331-->
* {{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.

<!--T:397-->
* {{MacroLink|Icon=FindAliasReferences.png|Macro_FindAliasReferences|Macro FindAliasReferences}}: Find all the expressions in open documents that contain the alias, or if the alias is not defined, then the value in the spreadsheet's selected cell(s).

<!--T:392-->
* {{MacroLink|Icon=Macro_Sketch_Constraint_From_Spreadsheet.svg|Macro_Sketch_Constraint_From_Spreadsheet|Macro Sketch Constraint From Spreadsheet}}: Quickly add a length constraint to a line or between 2 points using a spreadsheet cell alias or address.

<!--T:332-->
* {{MacroLink|Icon=Macro_SpreadsheetTools.png|Macro_SpreadsheetTools|Macro Spreadsheet Tools}}: This macro helps managing cells inside FreeCAD Spreadsheet workbench.

<!--T:333-->
* {{MacroLink|Icon=Applications-python.svg|Macro_Spreadsheet2html|Macro Spreadsheet2html}}: Exports a spreadsheet as styled html. Intended as support in transfering data to office suits.

<!--T:334-->
* [[Image:Text-x-python.png|24px]] [https://github.com/dprojects/sheet2export sheet2export]: Allows to export FreeCAD spreadsheet to file formats (.md, .html, .csv, .json).


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

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


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


</translate>
</translate>
Line 426: Line 771:
<translate>
<translate>


<!--T:130-->
<!--T:335-->
* {{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_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 set of parameters.

* {{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.
<!--T:398-->
* {{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_MacroMenu.png|Macro MacroMenu|Macro MacroMenu}}: Add the macros found in the macros folder to the Macros menu of FreeCAD
* {{MacroLink|Icon=Applications-python.svg|Macro_Convert_021|Macro Convert 021}}: Converts a FreeCAD file saved with a post-0.21 version back to 0.21 format.

* {{MacroLink|Icon=Force_Recompute.png|Macro ForceRecompute|Macro ForceRecompute}}: Forces manual recompute of model
<!--T:336-->
* {{MacroLink|Icon=Macro_Recompute_Profiler.png|Macro Recompute Profiler|Macro Recompute Profiler}}: measures time it takes to recompute each object in a project
* {{MacroLink|Icon=Macro_Duplicate_Selection.png|Macro_Duplicate_Selection|Macro Duplicate Selection}}: This macro testing if one selection are duplicate, select the object IN THE 3D VIEW the "ForbiddenCursor" stay if the or one selection is duplicate, the macro stay resident.
* {{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).
<!--T:337-->
* {{MacroLink|Icon=Macro_Toggle_Drawstyle.png|Macro Toggle Drawstyle|Macro Toggle Drawstyle}}: This macro toggles the Drawstyle of the selected object
* {{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_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|Icon=Macro_HighlightCommon.png|Macro HighlightCommon|Macro HighlightCommon}}: Highlight common parts.
<!--T:338-->
* {{MacroLink|Icon=HighlightDifference.png|Macro HighlightDifference|Macro HighlightDifference}}: Compute the difference between two shapes.
* {{MacroLink|Icon=Macro_ExpandTreeItem.png|Macro_ExpandTreeItem|Macro ExpandTreeItem}}: This macro expand selected items in the tree view. If not selection all item are expand/collapse.
* {{MacroLink|Icon=Macro_cross_section.png|Macro cross section|Macro cross section}}: displays an interactively slidable cross-section.

* {{MacroLink|Icon=Macro_Print_SceneGraph.png|Macro Print_SceneGraph|Macro Print_SceneGraph}}: prints the SceneGraph.
<!--T:339-->
* {{MacroLink|Icon=BoundBoxTracing.png|Macro BoundingBox Tracing|Macro BoundingBox Tracing}}: This macro red trace (editable) around the BoundingBox with 6 rectangles
* {{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=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.
<!--T:340-->
* {{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|Icon=Force_Recompute.png|Macro_ForceRecompute|Macro ForceRecompute}}: Forces manual recompute of model.
* {{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|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.
<!--T:341-->
* {{MacroLink|Icon=Snip.png|Macro Snip|Macro Snip}}: Easily post screenshots to the FreeCAD forum.
* {{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 are deleted!
* {{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=Macro_PlacementAbsolufy.png|Macro PlacementAbsolufy|Macro PlacementAbsolufy}}: reset Part containers to global origin while maintaining objects absolute position.
<!--T:342-->
* {{MacroLink|Macro SplitPropEditor|Macro SplitPropEditor}}: temporarily split the property editor from the combo view to a separated dock widget
* {{MacroLink|Macro_ImperialScales|Macro ImperialScales}}: Shows a list of US Imperial Arch scales list with the corresponding factor to apply to TechDraw pages or views.
* {{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
<!--T:343-->
* {{MacroLink|Macro TreeToAscii|Macro TreeToAscii}}: Prints model tree as "ASCII art" with custom pattern & style, and export to clipboard, file or embedded document
* {{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|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|Macro ImperialScales|Macro ImperialScales}}: Shows a list of US Imperial Arch scales list with the corresponding factor to apply to TechDraw pages or views
<!--T:384-->
* {{MacroLink|Icon=Pcbway.png|Macro_PCBWay|Macro PCBWay}}: Sends a selected object to [https://pcbway.com PCBWay] for manufacturing through CNC milling, laser cutting or 3D printing.

<!--T:344-->
* {{MacroLink|Icon=Pinger_Icon.svg|Macro_Pinger|Macro Pinger}}: Ping users on the forum with ease.

<!--T:345-->
* {{MacroLink|Icon=Macro_Recompute_Profiler.png|Macro_Recompute_Profiler|Macro Recompute Profiler}}: Measures time it takes to recompute each object in a project.

<!--T:346-->
* {{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).

<!--T:347-->
* {{MacroLink|Icon=Macro_Select_Hovering.png|Macro_Select_Hovering|Macro Select Hovering}}: This macro select a choice Face, Edge, Vertex hovering by the mouse.

<!--T:348-->
* {{MacroLink|Icon=SelectVisible.png|Macro_SelectVisible|Macro SelectVisible}}: All visible objects in the tree will be selected.

<!--T:349-->
* {{MacroLink|Icon=Macro_Shake_Sketch.png|Macro_Shake_Sketch|Macro Shake Sketch}}: Shake a sketch in order to discover its unconstrained parts.

<!--T:350-->
* {{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.

<!--T:351-->
* {{MacroLink|Macro_TreeToAscii|Macro TreeToAscii}}: Prints model tree as "ASCII art" with custom pattern & style, and export to clipboard, file or embedded document.

<!--T:352-->
* {{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.

<!--T:353-->
* {{MacroLink|Icon=WF_wf.png|Macro_WorkFeatures|Macro WorkFeatures}}: Tool utility to create points, axes, planes and many other useful features to facilitate the creation of your project.


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

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


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


</translate>
</translate>
Line 470: Line 846:
<translate>
<translate>


<!--T:132-->
<!--T:355-->
* {{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=Macro_Sheet_Metal_Unfolder.png|Macro Sheet Metal Unfolder|Macro Sheet Metal Unfolder}}: Creates an unfolded part from a sheet-metal-part.

* {{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.
<!--T:356-->
* {{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|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 [[Draft_ShapeString|ShapeString]] is empty and this little macro can help you see easily the font to use.
* {{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.
<!--T:357-->
* {{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=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|Icon=GenerateDrawing.svg|Macro_GenerateDrawing|Macro GenerateDrawing}}: Macro for automatic drawing generation with 3 normal projections and one isometric.

* {{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.
<!--T:358-->
* {{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_Stairs.png|Macro Stairs|Macro Stairs}}: Create stair helix, create your stair nosing select and run the macro.
* {{MacroLink|Icon=GenerateViews.svg|Macro_GenerateViews|Macro GenerateViews}}: Macro for automatic 2D views generation with 6 normal projections and one isometric.

* {{MacroLink|Icon=Gearworkbech.png|Macro FCGear|Macro FCGear}}: Additional Workbench to create different types of gears, involute gear, involute rack, cycloide gear, bevel gear.
<!--T:359-->
* {{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=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=PropertyMemo.png|Macro PropertyMemo|Macro PropertyMemo}}: This little macro create one Property additional (memo or other text) for you object (only Draft)
<!--T:360-->
* {{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_Rubik_Cube.png|Macro Rubik Cube|Macro Rubik Cube}}: Display a Rubik Cube and interactively do slice rotations.
* {{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=Macro_Megaminx.png|Macro Megaminx|Macro Megaminx}}: Display a Megaminx and interactively do slice rotations.
<!--T:363-->
* {{MacroLink|Icon=Macro_Megaminx.png|Macro_Megaminx|Macro Megaminx}}: Display a Megaminx and interactively do slice rotations.

<!--T:364-->
* {{MacroLink|Icon=PropertyMemo.png|Macro_PropertyMemo|Macro PropertyMemo}}: This macro creates an additional Property (memo or other text) for your object (works only with Draft objects).

<!--T:365-->
* {{MacroLink|Icon=Macro_Rubik_Cube.png|Macro_Rubik_Cube|Macro Rubik Cube}}: Display a Rubik Cube and interactively do slice rotations.

<!--T:366-->
* {{MacroLink|Icon=Macro_Sheet_Metal_Unfolder.png|Macro_Sheet_Metal_Unfolder|Macro Sheet Metal Unfolder}}: Creates an unfolded part from a sheet-metal-part.

<!--T:368-->
* {{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.

<!--T:369-->
* {{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.


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


=== [[File:Arch_Equipment.svg|32px]] Woodworking === <!--T:168-->

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

<!--T:370-->
* [[Image:Text-x-python.png|24px]] [https://github.com/dprojects/getDimensions getDimensions]: FreeCAD macro to get chipboards dimensions to cut (BOM, cutlist).

<!--T:371-->
* {{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.

<!--T:372-->
* {{MacroLink|Icon=Macro_Joint_Icon.svg|Macro_Joint|Macro Joint}}: Creates a variety of joints, such as mortise/tenon, box joints, dovetail joints, and snap joints.

<!--T:373-->
* [[Image:Text-x-python.png|24px]] [https://github.com/dprojects/Woodworking/blob/master/Tools/makeTransparent.py makeTransparent]: Switches all parts from non-transparent to transparent, and back, allowing you to preview pilot holes, countersinks and other joints.

</translate>
</div>
</div>
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
<translate>
<translate>
Line 502: Line 918:
<translate>
<translate>


<!--T:134-->
<!--T:374-->
* [[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.
<!--T:375-->
* [[Image:2364.png|24px]] [https://github.com/microelly2?tab=repositories By microelly2] : FreeCAD_macro, geodata, Animation, freecad-nurbs, PieMenu, and more.

<!--T:376-->
* [[Image:Text-x-python.png|24px]] [https://github.com/oddtopus?tab=repositories By oddtopus]: Flamingo (workbench for metal structures).

<!--T:377-->
* [[Image:Text-x-python.png|24px]] [https://github.com/realthunder/FreeCAD_assembly3#installation By realthunder]: Assembly3 Workbench, and more.

<!--T:378-->
* [[Image:681.jpg|24px]] [https://github.com/j-wiedemann?tab=repositories 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).
<!--T:379-->
* [[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.
<!--T:380-->
* [[Image:Text-x-python.png|24px]] [https://github.com/triplus?tab=repositories By triplus]: IconThemes, ShortCuts, NavigationIndicator, TabBar, Launcher, PersistentToolbars, PieMenu, and more.


</translate>
</translate>
Line 528: Line 955:


<!--T:161-->
<!--T:161-->
Use the [[Addon Manager|Addon Manager]] in {{MenuCommand|Tools → Addon manager}} to install a macro that has been included in the [https://github.com/FreeCAD/FreeCAD-macros FreeCAD-macros] repository. {{Version|0.17}}
Use the [[Std_AddonMgr|Addon Manager]] in {{MenuCommand|Tools → Addon manager}} to install a macro that has been included in the [https://github.com/FreeCAD/FreeCAD-macros FreeCAD-macros] repository. {{Version|0.17}}


=== Manual installation === <!--T:163-->
=== Manual installation === <!--T:163-->


<!--T:136-->
<!--T:136-->
If the [[Addon Manager|Addon Manager]] is not used, the macro can be installed manually.
If the [[Std_AddonMgr|Addon Manager]] is not used, the macro can be installed manually.
* Copy the [[Python|Python]] code from the corresponding macro page.
* Copy the [[Python|Python]] code from the corresponding macro page.
* Open the macros menu {{MenuCommand|Macro → Macros}}, press {{Button|Create}}, and give it a name.
* Open the macros menu {{MenuCommand|Macro → Macros}}, press {{Button|Create}}, and give it a name.

Latest revision as of 09:14, 15 March 2024

This page lists macros that can add functionality to a FreeCAD installation.

If you have written a macro and want to include it in one of the categories on this page, then go to Macro documentation to learn more about properly documenting a macro.

Categories

3D View operations

  • Macro FCCamera: This macro can rotate the screen in a defined angle and the defined axis and creates a plan to face the screen to create a form in the specified plan positions the selected face facing the screen, to detect the position of the camera.
  • Macro Mouse Cross: This small macro turns the arrow of the mouse in a precision cross.
  • Macro Rotate View Free: This macro is used in the Python console and rotates the current view in the angle and plane given.
  • Macro Screen Wiki: This macro allows to save the 3D view in the desired format. The 3D view or the full 3D window of FreeCAD takes the desired dimensions.
  • Macro Snip: Easily post screenshots to the FreeCAD forum.
  • Macro View Rotation: Provides a GUI to permit rotation of view by precise amounts in all three directions.
  • Macro Zoom 1:1: 1:1 Zoom so objects appear their actual size on the screen.

Animation

  • Macro Animator: Animate your model by animating its properties with this feature Python object.
  • Macro 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).

Code and scripting

  • Macro Build Utility: This macro provides a utility to assemble a project from sub-project files using the Merge Project facility.
  • 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.
  • 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.
  • Qt Example: Example of using Qt commands, their connections, extraction and data assignment.
  • scanObjects: Inspection tool for FreeCAD macro development and project debug.
  • Macro TNP Solution: A basic example of how the Topological Naming Problem can be solved. The macro is intended for programmers only.

Conversion

  • Macro Compound Plus: Draft command set in a small macro for the 2D sketch example: work with the DXF files.
  • Macro DeepCopy: Make a compound out of a part with a copy of all its shapes.
  • 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.
  • Macro FCBmpImport: Import Black and White BMP images into FreeCAD as sketch, wire, or solid or Grayscale BMP for lithophanes.
  • Macro FCWire To Volume: This macro create boolean operation with the objects selected just select the wires give the thickness and click "Create".
  • Macro Iges PyImporter: Imports an iges file with entity 128, for example an iges-file from FreeShip, into FreeCAD.
  • Macro MultiCopy: MultiCopy allows the duplication (copy and paste) of multiple FreeCAD objects that can be labelled sequentially and in a custom manner.
  • Macro PartToVRML: Converts selected parts to VRML meshes for small size and faster loading (VRML models Kicad and Blender compatible).

Draft Workbench and 2D

  • Macro EdgesToArc: Converts the selected Edges to a circular Arc if possible. Useful for restoring discretized arcs.
  • Macro FC Convert Lines: This macro convert the object line, wire in line Dash, DashDot, DashDotDot, ZigZag and Hand with the dimensions given.

Fem Workbench

  • 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.
  • Macro GMSH: Create FEM Meshes by GMSH Mesh Generator.

Gui

  • Macro MacroMenu: Add the macros found in the macros folder to the Macros menu of FreeCAD.
  • Macro SplitPropEditor: Temporarily split the property editor from the combo view to a separated dock widget.
  • Macro Toggle Panels Visibility: This macro toggles the visibility of various supporting panels in FreeCAD, allowing the main window to be viewed with all available screen space.
  • Macro MacroToolbarManager: Easily manage custom macro toolbars, allows to create, rename, and delete toolbars, add and remove the macros, edit shortcuts and icons, even includes a simple xpm icon maker tool.

Info and measurements

  • Macro CenterFace: This macro red trace (editable) the center face (mass) with 1 point and print the coordinates.
  • Macro CenterOfMass: Gives the total mass and the center of mass of multiple objects selected with the density chosen.
  • Macro Delta xyz: Gives the Delta values and the distance between 2 points.
  • 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 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).
  • 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 ToolBar: Gives a series of information about the selected shape as FCInfo in a mini ToolBar.
  • Macro FCInfoGlass: Gives a series of information about the selected shape and displayed in screen 3D.
  • Macro FCInfoToMouse: Provides informations coordinates, length and angles in real time on the mouse in a bubble annotation displayed in the 3D screen.
  • 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 Mouse over cb: This macro display all elements below cursor (elements covered by other elements will also be displayed).
  • Macro SimpleProperties: Display in a concise way basic physical properties of an object (volume, bound box dimensions, ...).

Libraries

  • Macro BOLTS: The aim of BOLTS is to build a free and open-source standard parts library for CAD applications.

Mathematical functions

Object creation

  • Macro AeroFoil: AeroFoil creates airfoil curves and faces using pre-defined models, algebraic functions, and DAT or CSV Files.
  • 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 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 Cut Circle: Cut a circle or arc and create x arcs, giving the number of cut.
  • 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 HilbertCurve: Creates an Hilbert curve wire in 2 or 3 dimensions with many iterations.
  • Macro Honeycomb: Creates a feature Python Honeycomb object compatible in and out of PartDesign.
  • Macro ImportAirfoil: Airfoil coordinates import, then scale the airfoil, rotate, translate in the plane, translate along the span, select the plane and the main axis, and turn the geometry into a sketch.
  • Macro Intersection: Finds the intersection between 2 or 3 selected edges/faces, works with Datum Planes and Datum Lines also. Creates a parametric feature Python object containing the shape of the intersection.
  • Macro Line Length: Create a line giving coordinate XYZ length and angle to plane X Y.
  • Macro Polyhedrons: This macro creates parametric polyhedrons (dodecahedron, icosahedron, tetrahedron, ...). Customizable via radius or side.
  • Macro Pyramid: This macro creates a parametric pyramid. All parameters are customizable just like with Part Cone.
  • Macro Repro Wire: This macro reproduces all element selected subobject wire or face.
  • 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 Stairs: Create stair helix, create your stair nosing select and run the macro.
  • Macro Triangle AH: This macro creates a triangle by giving the head angle and the height of the triangle (the head of the triangle is positioned to the xyz coordinates 0.0).
  • Macro WireXYZ: This macro creates a Wire with the coordinates extracted from a file. The coordinates X Y Z are separated by a space.

Object transformation

  • Macro Align Object to View: This macro align the selected object to the current View and set the coordinates Placement of the camera.
  • Macro ArrayCopy: Copies the selected object several times, on an array grid.
  • Macro Bevel: Bevels selected vertices, creates parametric feature Python object, compatible with all solids (except with round edges) including features in Part Design bodies.
  • Macro Center Align Objects with Faces or Edges: This macro covers the following constraints: Concentric constraint among non cylindrical parts; and Constraint on center Faces and/or Edges. It works also with the new Body and App::Part containers, as well as with STEP hierarchy.
  • 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 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 Express Placement: Display and quickly edit a selected object's placement coordinates directly or via expressions.
  • Macro FlattenWire: Flattens draft wires that are not planar to their median Z coordinate.
  • 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 Image Scaling: Macro for easy scaling drawings, graphics, diagram, blueprint and similar 2D images in Image workbench.
  • Macro JointWire: Allows to find and joint all non connected edge to the closest non connected one using a line.
  • Macro magicAngle: Small GUI for the Draft.rotate function. Allows to rotate panels and even other more complicated objects, like construction profiles.
  • Macro MatrixTransform: Apply linear space transformations to distort shapes. E.g., non-uniform scaling, shearing, mirroring, axes swapping.
  • Macro Move to Origin: This macro translates the Placement of an object so that a selected location becomes its new origin.
  • Macro MultiCuts: This macro improves boolean cut hierarchy by automatic labeling and using copies for cut.
  • Macro Rotate To Point: Macro to rotate an object around the center of its boundbox, its center of mass, or the last clicked point.
  • Macro Section: Alternative implementation of Part Section tool, more suitable for making sweep paths (parametric).
  • 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 WireFilter: Filter wires from a sketch to only use certain ones, also 2D offsets, scales, rearranges wire order.

Object visibility, view properties and textures

  • colorManager: Allows to set face colors for all objects from a spreadsheet. Also you can browse colors for a manually selected face or object and see the effect in the 3D model in real-time.
  • Macro Colorize: Easily set colors of faces, edges, and vertices, including individual transparency levels.
  • Macro EasyReflector: Easily managed textures with a parametric feature python object that persists between FreeCAD and Document sessions.
  • Macro Texture: Create a project from a bmp image to create a texture easily.
  • Macro Texture Objects: This macro allows you to temporarily put a texture image on the selected objects.
  • Macro Toggle Drawstyle Optimized: This macro toggles the Drawstyle of the selected object (same as Macro Toggle Drawstyle above but optimized for all languages).
  • Macro Toggle Visibility: Set of three macro, macro 1: hidden the objects not selected, macro 2: displayed alls objects, macro 3: hidden alls objects.
  • 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.
  • 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.
  • setTextures: Allows to permanently store the URL of textures in a FreeCAD project and load stored textures.

PartDesign Workbench

  • Macro PDWrapper: Encapsulates non-PartDesign solids for use in PartDesign Bodies, and more.

Printer 3D

  • Macro 3d Printer Slicer Individual Parts: This code, when run, will export the visible bodies at the top level (bodies deeper in the tree will be ignored) of the currently open design to individual STL files, and open them it in the slicing software that you use. This macro will look for Cura as the default but you can change it to any other slicer by changing the SLICERAPP variable in the source code.
  • Macro 3D Printer Workflow: Macro that creates an stl file with perfect rounding, i.e. without visible facets, from selected objects. It also allows to launch programs of your choice. For example to automate the FreeCAD -> Slicer -> printing workflow.

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 ConstraintToAlias: Allows to create a spreadsheet or add an alias to an existing spreadsheet from within the open sketch editor.
  • 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 FindAliasReferences: Find all the expressions in open documents that contain the alias, or if the alias is not defined, then the value in the spreadsheet's selected cell(s).
  • Macro Spreadsheet2html: Exports a spreadsheet as styled html. Intended as support in transfering data to office suits.
  • sheet2export: Allows to export FreeCAD spreadsheet to file formats (.md, .html, .csv, .json).

Utility

  • Macro Convert 021: Converts a FreeCAD file saved with a post-0.21 version back to 0.21 format.
  • Macro Duplicate Selection: This macro testing if one selection are duplicate, select the object IN THE 3D VIEW the "ForbiddenCursor" stay if the or one selection is duplicate, the macro stay resident.
  • Macro ExpandTreeItem: This macro expand selected items in the tree view. If not selection all item are expand/collapse.
  • 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.
  • Macro ImperialScales: Shows a list of US Imperial Arch scales list with the corresponding factor to apply to TechDraw pages or views.
  • Macro PCBWay: Sends a selected object to PCBWay for manufacturing through CNC milling, laser cutting or 3D printing.
  • Macro SketchUnmap: Unmap a sketch from its current support and makes its placement absolute, eventually creating a locating datum plane.
  • Macro TreeToAscii: Prints model tree as "ASCII art" with custom pattern & style, and export to clipboard, file or embedded document.
  • 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.
  • Macro WorkFeatures: Tool utility to create points, axes, planes and many other useful features to facilitate the creation of your project.

Wizards

  • Macro FCGear: Additional Workbench to create different types of gears, involute gear, involute rack, cycloide gear, bevel gear.
  • 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 easily the font to use.
  • Macro GenerateDrawing: Macro for automatic drawing generation with 3 normal projections and one isometric.
  • Macro GenerateViews: Macro for automatic 2D views generation with 6 normal projections and one isometric.
  • 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 Megaminx: Display a Megaminx and interactively do slice rotations.
  • Macro PropertyMemo: This macro creates an additional Property (memo or other text) for your object (works only with Draft objects).
  • Macro Unfold Box: Allows to unfold the surfaces of a box of any shape and to draw them on a page.

Woodworking

  • getDimensions: FreeCAD macro to get chipboards dimensions to cut (BOM, cutlist).
  • Macro Cabinets32: Creates side and top/bottom walls for a cabinet with drilled holes for connection parts of manufacturer Hettich.
  • Macro Joint: Creates a variety of joints, such as mortise/tenon, box joints, dovetail joints, and snap joints.
  • makeTransparent: Switches all parts from non-transparent to transparent, and back, allowing you to preview pilot holes, countersinks and other joints.

Other interesting macros created by FreeCAD users

  • By hamish2014: FreeCAD_assembly2, FreeCAD_drawing_dimensioning, and more.
  • By microelly2 : FreeCAD_macro, geodata, Animation, freecad-nurbs, PieMenu, and more.
  • By oddtopus: Flamingo (workbench for metal structures).
  • By rockn: FreeCAD-Timber, FreeCAD-addons, FreeCAD-library, FreeCAD-StructuresBois, and more.
  • By Siardeni: Workbench for create metal profiles, square tubing, z profile, palette, rotation, drawing, and more.
  • By triplus: IconThemes, ShortCuts, NavigationIndicator, TabBar, Launcher, PersistentToolbars, PieMenu, and more.

Usage

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

Use the Addon Manager in Tools → Addon manager to install a macro that has been included in the FreeCAD-macros repository. introduced in version 0.17

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.