Difference between revisions of "Custom macros"

From Wiki.OSArch
m (add a description)
(→‎FreeCAD Custom Macros: deleting images)
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.
  
Line 10: Line 11:
 
! Description
 
! Description
 
|-
 
|-
| [[File:Freecad TechDrawWB.png|300px]]
+
|  
 
| [[File:FC Bathroom.fcstd|thumb]]  
 
| [[File:FC Bathroom.fcstd|thumb]]  
  
 
FreeCAD file with a 3D model of bathroom and 3 possible layouts made with TechDraw WB
 
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]]  
 
| [[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
 
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]]
 
| [[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.
 
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]]
 
| [[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.  
 
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]]
 
| [[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.  
 
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.  

Revision as of 11:05, 5 November 2023

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.

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

FreeCAD files

Project Description
File:FC Bathroom.fcstd

FreeCAD file with a 3D model of bathroom and 3 possible layouts made with TechDraw WB

File:FreeCAD House RenovationBlueprints.fcstd

FreeCAD file with layouts of a house renovation made with TechDraw WB

File:FurnitureCompound.fcstd

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 App Link objects. See below a description of this workflow.

File:Dlabel for Shape2d.fcstd

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:Dlabel on Shape2d V2.fcstd

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.

External references

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