Main Menu

search

You are here

FreeCAD: Create a Macro

[last updated: 2024-02-25]
FreeCAD home page
FreeCAD Python macro's and scripts
FreeCAD Macros
-----

  • Create a Macro (by direct-entry or downloading):
    • In a drawing session:
      click Macro (top menu bar)
      select Macros ...
      Already-defined macros will be listed with a .FCMacro extension
    • To create a new macro:
      click Create (far right menu)
      enter desired filename (without extension)
      click OK
    • Notice that there will be a new tab created at the bottom of the drawing window with the filename of the macro you're creating.

    --------------------------------------------------------

  • Create a Macro (by recording):
    • In a drawing session (at start page?):
      Click Macro (top menu bar)
      Click Macro recording
      Enter desired name for new macro
      (path can be left at default)
      Click record
    • Move mouse, click, etc, to go through the steps you want to be included in your macro.
    • When done, click Macro (top menu bar)
      Click stop recording.

    --------------------------------------------------------

  • import/download macro from wherever...

    https://wiki.freecad.org/Macros_recipes
    macros you can install/study ...
    --------------------------------------------------------

  • ... continue with editing and saving ...

eof