discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Design in BlockSCAD for a box w/ a lid which can be cut out using a CNC

WF
William F. Adams
Mon, May 2, 2022 2:04 PM

This is also being discussed at:https://old.reddit.com/r/openscad/comments/ugh383/design_in_blockscad_for_a_box_w_a_lid_which_can/
You can see the design in BlockSCAD at: https://www.blockscad3d.com/community/projects/1380449
A matching OpenSCAD file wired up for the Customizer and w/ the projection() command added is at:

https://github.com/WillAdams/Design_Into_3D/blob/master/blindmiter_boxjoint/Design%20into%203D_%20Box%20with%20Lid.scad
and I describe how to import the geometry into a CAM tool to set up toolpaths to cut it out here:
https://community.carbide3d.com/t/making-a-parametric-pencil-case-box/44936
Really wish that was easier, but I'm about at the point where it seems to me that the way to do this is to program in some other tool and to import the parameters using the JSON file which they are stored in and write out the design in some other format than SVG or DXF.
I did work up a technique for doing this sort of thing to make an SVG:
https://tug.org/TUGboat/tb40-2/tb125adams-3d.pdf
(which has been discussed here before)
but it looks like I'll need to up my game to get anything easier/better --- unless I'm missing something?
Exporting to an STL won't work because I can't find a workable CAM tool which will do G-Code for V and roundover tools --- unless someone knows of something.
Things which might help here:
 - is there a 3D version of the DXF format? - could colour-coding of SVGs be added export from OpenSCAD? - could it be made possible to layer intersecting DXFs or SVGs so that the manual re-arranging wouldn't be necessary? - could there be a way to export open geometry --- all I need for this is a line --- from OpenSCAD in a DXF or SVG?
There was an ingenious technique for scripting output using PowerShell recently:
https://github.com/crozone/openscad-trotec-export

but I'd really like to see a technique for this in OpenSCAD which doesn't rely on external tools.
William

This is also being discussed at:https://old.reddit.com/r/openscad/comments/ugh383/design_in_blockscad_for_a_box_w_a_lid_which_can/ You can see the design in BlockSCAD at: https://www.blockscad3d.com/community/projects/1380449 A matching OpenSCAD file wired up for the Customizer and w/ the projection() command added is at: https://github.com/WillAdams/Design_Into_3D/blob/master/blindmiter_boxjoint/Design%20into%203D_%20Box%20with%20Lid.scad and I describe how to import the geometry into a CAM tool to set up toolpaths to cut it out here: https://community.carbide3d.com/t/making-a-parametric-pencil-case-box/44936 Really wish that was easier, but I'm about at the point where it seems to me that the way to do this is to program in some other tool and to import the parameters using the JSON file which they are stored in and write out the design in some other format than SVG or DXF. I did work up a technique for doing this sort of thing to make an SVG: https://tug.org/TUGboat/tb40-2/tb125adams-3d.pdf (which has been discussed here before) but it looks like I'll need to up my game to get anything easier/better --- unless I'm missing something? Exporting to an STL won't work because I can't find a workable CAM tool which will do G-Code for V and roundover tools --- unless someone knows of something. Things which might help here:  - is there a 3D version of the DXF format? - could colour-coding of SVGs be added export from OpenSCAD? - could it be made possible to layer intersecting DXFs or SVGs so that the manual re-arranging wouldn't be necessary? - could there be a way to export open geometry --- all I need for this is a line --- from OpenSCAD in a DXF or SVG? There was an ingenious technique for scripting output using PowerShell recently: https://github.com/crozone/openscad-trotec-export but I'd really like to see a technique for this in OpenSCAD which doesn't rely on external tools. William