Box Creator Script

Show off your FreeCAD projects here!
User avatar
christi
Posts: 50
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Box Creator Script

Postby christi » Wed Oct 24, 2018 3:58 pm

Here is a script that creates a box with interlocked notches

https://github.com/chbergmann/boxcreator
User avatar
Kunda1
Posts: 5937
Joined: Thu Jan 05, 2017 9:03 pm

Re: Box Creator Script

Postby Kunda1 » Wed Oct 24, 2018 6:45 pm

Image

Nice! is it python3 compatible ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
triplus
Posts: 8798
Joined: Mon Dec 12, 2011 4:45 pm

Re: Box Creator Script

Postby triplus » Wed Oct 24, 2018 10:20 pm

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
Posts: 5937
Joined: Thu Jan 05, 2017 9:03 pm

Re: Box Creator Script

Postby Kunda1 » Thu Oct 25, 2018 12:08 am

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
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
christi
Posts: 50
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Box Creator Script

Postby christi » Thu Oct 25, 2018 4:26 pm

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

Re: Box Creator Script

Postby Kunda1 » Fri Oct 26, 2018 1:20 am

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 ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
mfasano
Posts: 51
Joined: Wed Apr 11, 2018 12:31 pm

Re: Box Creator Script

Postby mfasano » Mon Nov 26, 2018 2:22 pm

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: 50
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Box Creator Script

Postby christi » Sun Dec 02, 2018 7:02 am

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
Posts: 720
Joined: Thu May 21, 2015 7:00 pm

Re: Box Creator Script

Postby roerich_64 » Wed May 22, 2019 10:28 pm

Hi,

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

BR
Walter
User avatar
christi
Posts: 50
Joined: Wed Oct 24, 2018 7:03 am
Location: Karlsruhe, Germany
Contact:

Re: Box Creator Script

Postby christi » Tue May 28, 2019 8:55 pm

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