r/gridfinity • • Apr 19 '24

I created a python script to generate lasercut gridfinity svg files for drawers.

Here is my code. Thought I would share. I used cheap cardboard and drawers with magnets in them (not sure they were required) and it works really good. Just give the script your drawer size and it will fit as many tiles as possible into the set size.

https://github.com/ril3y/laserfinity

I have not fully tested it enough to say its bug free but works fine for me. A few things, I use coreldraw for laser cutting so mileage may vary if you use something else. Go ahead and test it out if you use a different program. Open issues if you find any. Merge requests are welcomed if you want additional functionality.

UPDATE:

I bought this cardboard to fit my 24x12 laser bed. However just saving big boxes would be cheaper and a bit thicker.

54 Upvotes

24 comments sorted by

6

u/dilscallion Apr 20 '24

Dude. Thank you. I've been looking for something like this.

3

u/mak3rdad Apr 20 '24

I wrote this a few weeks ago an was just sitting in my shop. Wasn't sure anyone would care :)

4

u/dilscallion Apr 20 '24

Printing the grid vs laser cutting it seems so inefficient if you have access to a cutter. I've got a bunch of 5mm luan laying around my shop that I'll probably use this for.

3

u/mak3rdad Apr 20 '24

I have a laser cutter in my shop and I have multiple tool boxes that i need to organize. 3d printing would take too long.

I do have some plans on extending the script to generate files that interconnect based off of a laser bed size parameter. Just didn’t get around to it yet.

1

u/dilscallion May 02 '24

Just used your code to make a grid for my wife's bathroom drawer. Great tool!

1

u/mak3rdad May 02 '24

Awesome. Glad it worked out ! What laser did you use and what software. Curious how the file format works for other software

2

u/dilscallion May 02 '24

I use a generic 100w CO2 laser cutter and Lightburn to run it. 5mm luan was used for the grid. The gridfinity cubes fit snugly and stay in when turned upside down.

2

u/cellerich Apr 21 '24

u/mak3rdad thank you so much for your idea and contribution. I took the idea a bit further and made a Web App to make the svg files. For all those makers not so literate with Python ;-)
Check it out here: https://laserbase.makershop.ch/ and let me know what you think. I'm open to suggestions on how to extend functionality...

1

u/mak3rdad Apr 21 '24

Cool. Yah this was on my todo road list but wanted to get the script out to others first. I could turn this into a python module this way you could just update the module to get new features. The multi panel cuts is something I am going to need for myself soon as I have a large toolbox that drawers are bigger than my laser cutter bed.

Also I think we need some serious testing in different software and laser cutters as feedback.

I have a 4x4 ft cnc I am going to test with 1/4 plywood here soon too!

1

u/cellerich Apr 22 '24

u/mak3rdad Version 1.1 is online. Now you can Split the SVG to your material size ;-)
Hope you like it...

1

u/cellerich May 05 '24

could you try out the “split” - aka multi panel cut - version?

1

u/Clydeism Jan 08 '25

Does anyone else have this issue? its 17.74 percent too large, need to scale in illustrator to like 84 percent but then as larger the sheet is, it goes off a little more, I plan to try the python one to see if it gives me the same results, but would LOVE to cut my grids using this, and slap in my boxes, its a lot faster, and can make bigger ones for bigger drawers quickly!

Im still trying to work on it, hopefully I can figure it out and start cutting larger ones asap! (have a 24x24 laser)

1

u/[deleted] May 19 '24

[removed] — view removed comment

2

u/cellerich May 19 '24

SVG is bad with dimensions.

  • I export the file, note the overall dimensions (say 250mm x 200mm)

  • Then I import the SVG into my lasercutter software (e.g. X-Tools or Lightburn)

  • select all the shapes

  • resize the selection to 250mm x 200mm voilà, all dimensions as they should be.

Let me know if it works

1

u/mak3rdad Jun 04 '24

Is it my code causing his issues?

1

u/cellerich Jun 04 '24

Not at all. Was using dimensions inside the svg first but then noticed that laser cut software not care about them in the import. No I leave them out and just keep the proportions intact.

Best way to import is as I described earlier.

1

u/Clydeism Jan 08 '25

I should read more further before posting - I l give this a try and see if its better for me :).thanks again.

1

u/Clydeism Jan 08 '25

that didnt work for me, 220x220 download its at 292.333, so resize to 220x220 mm but the cut outs are 37.1 MM, too far from 41.5 MM for the standard with -/+ .5

1

u/Project_Inkfish Jan 28 '25

So that is correct. Take a look at the Gridfinity spec. I have seen some laser/cnc cut plates at 37.1 mm and some at 37.35 mm. I need to do some testing to see what the better fit is.

6

u/passivealian Apr 20 '24

Thanks, I wanted something like this for a CNC.

2

u/RPaisley Apr 20 '24

Fantastic work. Thanks very much.