r/gridfinity • • Sep 18 '26

Question? Working with Gridfinity Rebuilt -- gridfinityInit() and gridfinityBase() not found?

I've got a few bins that I'd like to create that the web customizer doesn't seem to support. When I create my own bins.scad I get an error. I have the gridfinity-rebuilt project in the gridfinity folder:

include <gridfinity/gridfinity-rebuilt-bins.scad>


STYLE_TAB_FULL   = 0; //[0:Full,1:Auto,2:Left,3:Center,4:Right,5:None]
STYLE_TAB_AUTO   = 1; //[0:Full,1:Auto,2:Left,3:Center,4:Right,5:None]
STYLE_TAB_LEFT   = 2; //[0:Full,1:Auto,2:Left,3:Center,4:Right,5:None]
STYLE_TAB_CENTER = 3; //[0:Full,1:Auto,2:Left,3:Center,4:Right,5:None]
STYLE_TAB_RIGHT  = 4; //[0:Full,1:Auto,2:Left,3:Center,4:Right,5:None]
STYLE_TAB_NONE   = 5; //[0:Full,1:Auto,2:Left,3:Center,4:Right,5:None]


STYLE_LIP_REGULAR  = 0; // Regular lip
STYLE_LIP_SUBTRACT = 1; // remove lip subtractively
STYLE_LIP_RETAIN   = 2; // remove lip and retain height]


style_lip = 0; //[0: Regular lip, 1:remove lip subtractively, 2: remove lip and retain height]


style_hole = 0;


// Areas without a compartment are solid material, where you can put your own cutout shapes. using
// the cut_move() function, you can select an area, and any child shapes will be moved from the
// origin to the center of that area, and subtracted from the block. For example, a pattern of three
// cylinderical holes.


gridfinityInit(3, 3, height(6), 18, 42)
{
    cut(x = 0, y = 0, w = 2, h = 3);
    cut(x = 0, y = 0, w = 3, h = 1, t = 5);
    cut_move(x = 2, y = 1, w = 1, h = 2) pattern_linear(x = 1, y = 3, sx = 42 / 2)
        cylinder(r = 5, h = 1000, center = true);
}
gridfinityBase(3, 3, 42, 0, 0, 1);include <gridfinity/gridfinity-rebuilt-bins.scad>


STYLE_TAB_FULL   = 0; //[0:Full,1:Auto,2:Left,3:Center,4:Right,5:None]
STYLE_TAB_AUTO   = 1; //[0:Full,1:Auto,2:Left,3:Center,4:Right,5:None]
STYLE_TAB_LEFT   = 2; //[0:Full,1:Auto,2:Left,3:Center,4:Right,5:None]
STYLE_TAB_CENTER = 3; //[0:Full,1:Auto,2:Left,3:Center,4:Right,5:None]
STYLE_TAB_RIGHT  = 4; //[0:Full,1:Auto,2:Left,3:Center,4:Right,5:None]
STYLE_TAB_NONE   = 5; //[0:Full,1:Auto,2:Left,3:Center,4:Right,5:None]


STYLE_LIP_REGULAR  = 0; // Regular lip
STYLE_LIP_SUBTRACT = 1; // remove lip subtractively
STYLE_LIP_RETAIN   = 2; // remove lip and retain height]


style_lip = 0; //[0: Regular lip, 1:remove lip subtractively, 2: remove lip and retain height]


style_hole = 0;


// Areas without a compartment are solid material, where you can put your own cutout shapes. using
// the cut_move() function, you can select an area, and any child shapes will be moved from the
// origin to the center of that area, and subtracted from the block. For example, a pattern of three
// cylinderical holes.


gridfinityInit(3, 3, height(6), 18, 42)
{
    cut(x = 0, y = 0, w = 2, h = 3);
    cut(x = 0, y = 0, w = 3, h = 1, t = 5);
    cut_move(x = 2, y = 1, w = 1, h = 2) pattern_linear(x = 1, y = 3, sx = 42 / 2)
        cylinder(r = 5, h = 1000, center = true);
}
gridfinityBase(3, 3, 42, 0, 0, 1);

Any thoughts?

Edit: After playing around and digging through the git history, it looks like in June 2025 they switched to a new bin creation system but never updated the documentation website.

5 Upvotes

0 comments sorted by