Box Creator Script

Show off your FreeCAD projects here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
christi
Posts: 203
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Box Creator Script

Post by christi »

Here is a script that creates a box with interlocked notches

Image
Image
Last edited by christi on Fri Jan 24, 2020 8:26 pm, edited 1 time in total.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Box Creator Script

Post by Kunda1 »

Image

Nice! is it python3 compatible ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Box Creator Script

Post by triplus »

christi wrote: Wed Oct 24, 2018 3:58 pm Here is a script that creates a box with interlocked notches

https://github.com/chbergmann/boxcreator
Thanks for sharing!
Kunda1 wrote: Wed Oct 24, 2018 6:45 pm Nice! is it python3 compatible ?
Hint: There is a FreeCAD Py3 AppImage available. ;)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Box Creator Script

Post by Kunda1 »

triplus wrote: Wed Oct 24, 2018 10:20 pm Hint: There is a FreeCAD Py3 AppImage available.
I'm asking in regards to https://forum.freecadweb.org/viewtopic.php?f=22&t=30636
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
christi
Posts: 203
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Box Creator Script

Post by christi »

Yes, it works in FreeCAD 0.17 and 0.18 with python 3.6
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Box Creator Script

Post by Kunda1 »

christi wrote: Thu Oct 25, 2018 4:26 pm Yes, it works in FreeCAD 0.17 and 0.18 with python 3.6
@christi fantastic, would you please make a PR to FreeCAD-macros ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
mfasano
Posts: 122
Joined: Wed Apr 11, 2018 12:31 pm

Re: Box Creator Script

Post by mfasano »

I thought about the possibility of a cabinetry workbench, You could specify different kinds of joints like dovetail, mortis and tenon, biscuit joints, etc. There would be dialog boxes like yours for each kind where you would specify the parameters of the joint, and Freecad would make it. This looks like a start for that.
User avatar
christi
Posts: 203
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Box Creator Script

Post by christi »

mfasano, feel free to use the BoxCreator code. It is now part of the official FreeCAD-macros repository:
https://github.com/FreeCAD/FreeCAD-macr ... or.FCMacro
User avatar
roerich_64
Veteran
Posts: 1465
Joined: Thu May 21, 2015 7:00 pm
Location: Ostfriesland

Re: Box Creator Script

Post by roerich_64 »

Hi,

does this great tool work on FC 0.19 with Py2 / Py3?

BR
Walter
Die Liebe wird siegen, denn sie ist unzerstörbar :) ;)
User avatar
christi
Posts: 203
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Box Creator Script

Post by christi »

roerich_64 wrote: Wed May 22, 2019 10:28 pm does this great tool work on FC 0.19 with Py2 / Py3?
I had to fix something to make it work in 0.19
check out from https://github.com/chbergmann/FreeCAD-m ... BoxCreator
Post Reply