Difference between revisions of "Custom macros"

From Wiki.OSArch
m (add a description)
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
== FreeCAD Custom Macros ==
 
== FreeCAD Custom Macros ==
 
Macros are a convenient way to reproduce complex actions in FreeCAD. You simply record actions as you do them, then save those actions under a name, and replay them whenever you want. Since macros are in reality a list of Python commands, you can also edit them, and create very complex scripts.
 
Macros are a convenient way to reproduce complex actions in FreeCAD. You simply record actions as you do them, then save those actions under a name, and replay them whenever you want. Since macros are in reality a list of Python commands, you can also edit them, and create very complex scripts.
 +
 
Here you can find a list of FreeCAD Macros useful for AEC projects.
 
Here you can find a list of FreeCAD Macros useful for AEC projects.
  
=== FreeCAD files ===
+
=== FreeCAD Macros files ===
  
 
{| class="wikitable"
 
{| class="wikitable"
 
! Project
 
! Project
 
! Description
 
! Description
 +
! Macro
 
|-
 
|-
| [[File:Freecad TechDrawWB.png|300px]]
+
| [[File:EscaleraMacro.jpg|thumb]]
| [[File:FC Bathroom.fcstd|thumb]]
+
| FreeCAD macro file with a
 +
3D model of a parametric stair.
 +
|  
  
FreeCAD file with a 3D model of bathroom and 3 possible layouts made with TechDraw WB
 
|-
 
| [[File:2DDrawingFC01.png|300px]]
 
| [[File:FreeCAD_House_RenovationBlueprints.fcstd|thumb]]
 
  
FreeCAD file with layouts of a [https://wiki.osarch.org/index.php?title=Regard3D%2BBlender%2BFreeCAD_workflow house renovation] made with TechDraw WB
 
|-
 
| [[File:FC FurnitureCompound.png|300px]]
 
| [[File:FurnitureCompound.fcstd|thumb]]
 
FreeCAD file with a 3D object (furniture) linked to a 2D projection. You can turn on/off the 3D model and keep visible the 2D projection in the tridimensional space or in the TechDraw page. This workflow uses [https://wiki.freecadweb.org/Std_LinkMake App Link objects]. See [[Page_layouts_with_TechDraw_WB#Import_furniture_with_2D_drawing|below]] a description of this workflow.
 
|-
 
| [[File:Freecad dLabel.png|300px]]
 
| [[File:Dlabel for Shape2d.fcstd|thumb]]
 
  
FreeCAD file with a window object 2D projection, linked to a Draft label.  If you change the information or model of the window 3D object, the label in the 2D projection will update automatically.
 
|-
 
| [[File:FreecadDlabel.png|300px]]
 
| [[File:Dlabel on Shape2d V2.fcstd|thumb]]
 
New version of a FreeCAD file with a window object 2D projection, linked to a Draft label.  If you change the information or model of the window 3D object, the label in the 2D projection will update automatically.
 
 
|-
 
|-
 
|}
 
|}
Line 38: Line 25:
 
* [https://wiki.freecad.org/Macros TechDraw Macros page] in the FreeCAD wiki.
 
* [https://wiki.freecad.org/Macros TechDraw Macros page] in the FreeCAD wiki.
  
 +
 +
 +
{{Template:Software}}
 
{{FreeCAD_Documentation}}
 
{{FreeCAD_Documentation}}
 
[[Category:FreeCAD]]
 
[[Category:FreeCAD]]

Latest revision as of 23:03, 30 December 2023

FreeCAD Custom Macros[edit]

Macros are a convenient way to reproduce complex actions in FreeCAD. You simply record actions as you do them, then save those actions under a name, and replay them whenever you want. Since macros are in reality a list of Python commands, you can also edit them, and create very complex scripts.

Here you can find a list of FreeCAD Macros useful for AEC projects.

FreeCAD Macros files[edit]

Project Description Macro
EscaleraMacro.jpg
FreeCAD macro file with a

3D model of a parametric stair.


External references[edit]


This page describes a software project from our AEC Free Software directory
Icon FreeCAD.png This page is FreeCAD documentation. Full documentation is available at the FreeCAD documentation wiki. All articles in the OSArch wiki related to FreeCAD can be seen in the FreeCAD Category