Difference between revisions of "Custom macros"

From Wiki.OSArch
(Creates FreeCAD Custom Macros)
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
 
== FreeCAD Custom Macros ==
 
== FreeCAD Custom Macros ==
This is a list with examples of FreeCAD files that includes Page Layouts made with TechDraw Workbench for Architecture projects. You can download these files for studying to replicate or to develop your own workflow.
+
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.
[https://wiki.freecadweb.org/TechDraw_Workbench TechDraw WB] is a module of FreeCAD originally for mechanical design drawings. There are some features for Architecture, but TechDraw has little control on them. This is the reason why it is necessary to document workflows that allow to elaborate drawings for a more complex technical documentation, commonly used in areas of AEC industry. In the future, FreeCAD developers will improve and optimize these workflows in new FreeCAD versions.
 
  
=== FreeCAD files ===
+
Here you can find a list of FreeCAD Macros useful for AEC projects.
 +
 
 +
=== 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.
 
 
|-
 
|-
 
|}
 
|}
 +
 +
=== External references ===
 +
* [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