This is FreeCAD macro that read FreeCAD 3D model and gets chipboards dimensions to cut or any other wood parts but has been designed for chipboards 18 mm of thickness. This macro creates spreadsheet named "toCut" and also TechDraw page "toPrint" with all needed chipboards elements to cut for your woodworking project. They are grouped with same sizes to make cutting more easier. So, You know how many same elements You need to cut and You can easily calculate costs per square area.
- Support for English and Polish languages.
- Elements can be listed in millimeters, meters or inches.
- Square area can be listed in millimeters, meters or inches.
- Group elements by thickness.
- Toggle Visibility Feature allow turn off elements or even group of elements (folder).
- Label Type Feature allow to create different reports.
- Summary for edge size.
- Support for arrays made of cube.
- You can get this macro here: getDimensions.py
Just open the macro under the FreeCAD.
- Go to FreeCAD -> Part -> Create a cube solid -> Cube data (tab):
- Set "Length" to e.g. 500
- Set "Width" to e.g. 500
- Set "Height" to e.g. 18
NOTE: Now you should have chipboard 500 mm x 500 mm x 18 mm. You can create whatever you like using such chipboards. Even group them in folders.
- Run macro.
TechDraw page is automatically created and it is named "toPrint". You can print directly from the page named "toPrint" or just export this page to pdf file and print it later.
- Special characters (Polish) for chipboards (object cube names) not supported. However, You can change the names later manually in spreadsheet and the TechDraw view will be automatically updated with new names.
-
This macro supports arrays made of cube (thanks jaisejames).
-
Project example (3D model view):
-
Project example (objects view):
-
Automatically generated report "toPrint" for project above:
-
Search "Toggle Visibility Feature" part in the "default settings" section in the macro code.
-
Set "sTVF" variable to "on".
-
Now You can create any report You want just by toggle visibility items or group of items.
-
You can generate different reports at the same furniture project. Just rename the TechDraw page "toPrint" to store it and prevent from overwrite.
- Search "Label Type Feature" part in the "default settings" section in the macro code.
- Set "sLTF" variable to exact value You want.
-
For group mode "g", You need to have exact folder tree structure in Your furniture project. The idea behind it is that each element need to has parent folder and also grandparent folder. For exaple element named "Foot L" need to be in parent folder (e.g. named "Foot"). Also the "Foot" folder need to be in grandparent folder (e.g. named "White color"). See example:
-
Now You can generate TechDraw page "toPrint" with the macro:
-
Search "Toggle Visibility Feature" part in the "default settings" section in the macro code.
-
Set "sTVF" variable to "edge".
-
By default the feature "Summary for Edge Size Feature" calculate the whole edge and do not have to be turned on. But in the real world the edge size that needs to be covered is very often much smaller. For example You can skip any parts to calculate costs better. To do it, just make Your project Tree for better visibility management, e.g. You can do it for Array as well:
-
Turn off parts You do not want to calculate (e.g. press "space" on "Array" group):
-
and run the macro (the edge size is different now):
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Please add all comments and questions in FreeCAD forum topic related to this project available at: https://forum.freecadweb.org/viewtopic.php?f=22&t=21127
MIT