FreeCAD Macros: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
(Added a Category to the Page)
 
(One intermediate revision by one other user not shown)
Line 24: Line 24:
*[[PVC Pipe and Fittings Library]] macro
*[[PVC Pipe and Fittings Library]] macro
*[[FreeCAD Module Part List Generator]]
*[[FreeCAD Module Part List Generator]]
*[[File:Simple_Copy_New_File.FCMacro.zip]]


=FreeCAD Source=
=FreeCAD Source=
Line 30: Line 31:
== Macros of interest ==
== Macros of interest ==
* [[FreeCAD_Macros/Automatic_Light_Gauge_Steel_Frame_Creator_And_Panelizer_Macro]]
* [[FreeCAD_Macros/Automatic_Light_Gauge_Steel_Frame_Creator_And_Panelizer_Macro]]
[[Category: FreeCAD]] [[Category: FreeCAD Macros]] [[Category: Ergonomics and Productivity]]

Latest revision as of 17:50, 16 July 2022

About

  • Macros are Python programs in FreeCAD that can be used to add functionality or shortcuts to FreeCAD.
  • Useful for rapid workflow: if you have a bunch of steps to communicate through the user interface - just activate a macro instead to save you time.
  • Sometimes these programs require supporting data files, such as CSVs or PNGs - or whatever supporting data that the macro requires.

Examples

Set yourself up for rapid rotation of objects:

FreeCAD.DraftWorkingPlane.alignToPointAndAxis(FreeCAD.Vector(0,0,0), FreeCAD.Vector(-0.0,-1.0,-0.0), 0) FreeCADGui.Snapper.setGrid(init=True)

Adding Downloaded Macros

  • To add a macro to FreeCAD - find the Macros directory by going to FreeCAD->File->Preferences->Macros - which shows the macros directory such as /home/marcin/.FreeCAD
  • Download a macro
  • Drag and drop the macro into the Macros directory
  • Drag and drop any supporting data files into the same directory

Installing and Running Macros

Macros Under Development

FreeCAD Source

Macros of interest