Woodworking - getDimensions

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Woodworking - getDimensions

Post by onekk »

What do you think of one of my last work, for a customer in Southern Africa, he has to cut cabinets, and have asked me to a design program to make drawers chest, fully paramteric (it is driven by ini files containing parameters, that could be loaded by a simple qt dialog at program start):

This is the cabinet visualized
cabinet.png
cabinet.png (8.43 KiB) Viewed 2709 times
These are the Draft files prior to be exported as DXF
drafts.png
drafts.png (5.89 KiB) Viewed 2709 times
Not too difficult, some hours of programmings and some thousands lines of code.

He was satisfied.


Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
dprojects
Posts: 721
Joined: Mon Mar 06, 2017 6:02 pm
Location: Poland
Contact:

Re: Woodworking - getDimensions

Post by dprojects »

onekk wrote: Wed Dec 22, 2021 5:57 pm He was satisfied.
This is the most important thing. You can write billions lines of code, according to all coding best practices and it means nothing if the goal is not achieved. There are many ways to achieve the same goal. If You are happy and the client is happy, it means everything is fine, no matter what.

Thanks
Darek
github.com/dprojects

workbench for woodworking is available at: github.com/dprojects/Woodworking
zohozer
Posts: 119
Joined: Mon Jul 28, 2014 8:35 pm

Re: Woodworking - getDimensions

Post by zohozer »

It is possible to add Grain Direction? Also columns for edges on four sides with 1,2,3,4 numbers to sort the edgeband order required?
User avatar
dprojects
Posts: 721
Joined: Mon Mar 06, 2017 6:02 pm
Location: Poland
Contact:

Re: Woodworking - getDimensions

Post by dprojects »

zohozer wrote: Mon Jan 10, 2022 12:42 am It is possible to add Grain Direction? Also columns for edges on four sides with 1,2,3,4 numbers to sort the edgeband order required?
Maybe yes, maybe not. I don't know what is Grain Direction. This "columns for edges on four sides with 1,2,3,4 numbers to sort the edgeband order required" sounds to me totally cosmic. Explain me more and give example. You can add any FreeCAD demo example file. I am not so familiar with all the FreeCAD transformations and possibilities.

EDIT:

You mentioned about very useful thing and this is very good issue ! Last time when I was making furniture to my garage it was plain white color so I didn't have to worry about the Grain Direction. Also lately after GUI add I was thinking what could be also added and I totally forget about it. However, this is important and for my previous projects the man at cutting chipboards service asked me very often about Grain Direction. Even chipboards have veneer with Grain Direction, so such option for sure would be added value to this tool.

As a workaround currently You can use constrain mode for that purpose and generate 2 reports. You can use constrain name at sketch to describe how the Grain Direction should go. I know it is little odd and better would be to have more nice looking thing but there is little problem with storing information for edge or object at FreeCAD. Only one place to store it is constrain name field at sketch.

However I have to check more deeply all the FreeCAD objects properties tree to see if there is better properties for cube and pad to store information about the Grain Direction.

Regarding the Edge Size the best way would be to add some sort of spreadsheet example (FreeCAD project with that) to see if You have in mind exactly the same final look as I have. The edge veneer can be calculated by toggle visibility already. In Poland we can buy in rolls of 20 meters. Also the cutting chipboard service allows You to order veneered edges. So the cost is always not so exactly matched. However, I would like to have it calculated better as well. I don't know if You mean that or something else?

Thanks
Darek
github.com/dprojects

workbench for woodworking is available at: github.com/dprojects/Woodworking
User avatar
dprojects
Posts: 721
Joined: Mon Mar 06, 2017 6:02 pm
Location: Poland
Contact:

Re: Woodworking - getDimensions

Post by dprojects »

zohozer wrote: Mon Jan 10, 2022 12:42 am It is possible to add Grain Direction?
FreeCAD not support descriptions, notes or any custom text for objects. However, You can make little trick and use group report customization for that and group Your wood parts according to the grain direction. I added more clear description to the documentation:
https://github.com/dprojects/getDimensi ... -color-etc

Thanks for the issue because it is very important thing.
zohozer wrote: Mon Jan 10, 2022 12:42 am Also columns for edges on four sides with 1,2,3,4 numbers to sort the edgeband order required?
This one need to be clarified little more. I don't understand what kind of report view You expect.

Thanks
Darek
github.com/dprojects

workbench for woodworking is available at: github.com/dprojects/Woodworking
zohozer
Posts: 119
Joined: Mon Jul 28, 2014 8:35 pm

Re: Woodworking - getDimensions

Post by zohozer »

dprojects wrote: Mon Jan 10, 2022 4:54 pm
zohozer wrote: Mon Jan 10, 2022 12:42 am Also columns for edges on four sides with 1,2,3,4 numbers to sort the edgeband order required?
This one need to be clarified little more. I don't understand what kind of report view You expect.
1,2,3,4 or Left, Right, Front, Back, it is the same. I am used with a Homag CNC machine that it is asociating a number for every side & top/bottom.

So, in the report besides the Quantity, Dimensions, Thickness, to have also four more additional columns like L,R,F,B and the cells to have the edge thickness and the kind of edge used.

My ideea is to be able to generate the BOM and labels straight in FreeCAD if possible, of course.

Some label examples that shows where and what kind of edges needs to have every part:

Image
Image
User avatar
dprojects
Posts: 721
Joined: Mon Mar 06, 2017 6:02 pm
Location: Poland
Contact:

Re: Woodworking - getDimensions

Post by dprojects »

zohozer wrote: Sat Jan 15, 2022 9:36 pm Homag CNC machine
This is interesting. I've created this macro to order chipboards at cutting chipboard service. I had to give all dimensions to cut there to order chipboars. To avoid mistakes I prefer to have it printed.

However, this sounds very interesting to support also CNC. I don't have CNC or 3D printer so I don't know what is needed for such machines. For sure many professional woodworking services use this type of machines to make furniture, so this kind of report will certainly be useful.
zohozer wrote: Sat Jan 15, 2022 9:36 pm My ideea is to be able to generate the BOM and labels straight in FreeCAD if possible, of course.
You mean Bill of Materials? The "Constraints - totally custom report" is not working for You?
https://github.com/dprojects/getDimensi ... s#edgeband

TechDraw page has limited width so there is no much room for so many columns. However, This is no problem to add new view.
The columns 1,2,3,4 should be empty? This should be something like all objects listing with additional 4 empty columns to write notes manually for each edge?

Thanks
Darek
github.com/dprojects

workbench for woodworking is available at: github.com/dprojects/Woodworking
zohozer
Posts: 119
Joined: Mon Jul 28, 2014 8:35 pm

Re: Woodworking - getDimensions

Post by zohozer »

dprojects wrote: Sun Jan 16, 2022 7:09 pm
You mean Bill of Materials? The "Constraints - totally custom report" is not working for You?
https://github.com/dprojects/getDimensi ... s#edgeband
I don't know how to use the "Constraints - totally custom report".
dprojects wrote: Sun Jan 16, 2022 7:09 pm TechDraw page has limited width so there is no much room for so many columns. However, This is no problem to add new view.
The columns 1,2,3,4 should be empty? This should be something like all objects listing with additional 4 empty columns to write notes manually for each edge?
The columns 1,2,3,4 should have a number like 2 for the tickness of the edgeband used and also the type of edgeband used (PL55 PVC) if that edge needs to be edgebanded. So maybe something like this: 2_PL55 PVC
zohozer
Posts: 119
Joined: Mon Jul 28, 2014 8:35 pm

Re: Woodworking - getDimensions

Post by zohozer »

A good source of inspiration would be the concepts presented in the JoinerCAD presentation videos:

JoinerCAD BOM custom template creation https://youtu.be/ArYxdcBWDAQ

JoinerCAD v2.0.0 - Own material creation https://youtu.be/CfcFob5tMdc

JoinerCAD channel https://www.youtube.com/channel/UCtaeys ... S5g/videos
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Woodworking - getDimensions

Post by onekk »

You could create a techdraw drawing with appropriate informations, even a complete sheet, if you want there are around some library that permit to create pdf, and as there is a pdf output maybe some of them are already installed and exposed with a python API.

If these library exist it is not difficult to code a document and create a pdf output.

Maybe I will investigate more later this day or tomorrow.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
Post Reply