Macros recipes

From FreeCAD Documentation
Jump to navigation Jump to search
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎svenska • ‎čeština • ‎русский
Text-x-python.png Macros

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

Part CheckGeometry.svg 3D View operations

Draft FlipDimension.svg Animation

Applications-python.svg Code and scripting

Arch MeshToShape.svg Conversion

Workbench Draft.svg Draft Workbench and 2D

Drawing-orthoviews.svg Drawing Workbench

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

Workbench FEM.svg Fem Workbench

Std Windows.svg Gui

Part Measure Linear.svg Info and measurements

Draft VisGroup.svg Libraries

Bound-expression.svg Mathematical functions

Part Primitives.svg Object creation

Std TransformManip.svg Object transformation

Part FaceColors.svg Object visibility, view properties and textures

Workbench PartDesign.svg PartDesign Workbench

View.svg Printer 3D

Preferences-raytracing.svg Raytracing

Spreadsheet.svg Spreadsheet Workbench

Arch Survey.svg Utility

Bulb.svg Wizards

Arch Equipment.svg Woodworking

Std FreeCADWebsite.svg Other interesting macros created by FreeCAD users

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.