beevabeeva / getDimensions

FreeCAD macro to get chipboards dimensions to cut

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

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.

TechDraw report example in English language:

en

engroup

TechDraw report example in Polish language:

pl

Main features

  • 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.

Download

Install

Just open the macro under the FreeCAD.

Default settings

ds001

Usage - quickstart

  • 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.

Printing

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.

Known issues

  • 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.

Features

Arrays:

  • This macro supports arrays made of cube (thanks jaisejames).

  • Project example (3D model view):

    arrays001

  • Project example (objects view):

    arrays002

  • Automatically generated report "toPrint" for project above:

    arrays003

    arrays004

Toggle Visibility Feature:

  • 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.

    tvf001

    tvf002

  • You can generate different reports at the same furniture project. Just rename the TechDraw page "toPrint" to store it and prevent from overwrite.

Label Type Feature:

  • Search "Label Type Feature" part in the "default settings" section in the macro code.
  • Set "sLTF" variable to exact value You want.

Create name list

  • To create list of names just set "sLTF" variable to "n" and run macro:

    ltf001

Create quantity report

  • To create quantity report just set "sLTF" variable to "q" and run macro:

    ltf002

Create group report

  • 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:

    ltf003

  • Now You can generate TechDraw page "toPrint" with the macro:

    ltf004

Summary for Edge Size Feature:

  • 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:

    sesf001

    sesf002

  • Turn off parts You do not want to calculate (e.g. press "space" on "Array" group):

    sesf003

  • and run the macro (the edge size is different now):

    sesf004

Screenshots

001 002 003
004 005 006

Contact

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

License

MIT

About

FreeCAD macro to get chipboards dimensions to cut

License:MIT License


Languages

Language:Python 100.0%