Overview
This module defines all standardized Gridfinity dimensions, tolerances, and feature parameters according to the official specification. It also includes presets for common printer bed sizes and bin configurations.Import
GF Constants Object
TheGF object contains all core Gridfinity specification values. It is defined as a const object for type safety.
Core Dimensions
Base grid cell size in millimeters. Each grid unit is 42mm × 42mm.
Vertical height increment in millimeters. Height units are multiples of 7mm.
Fit tolerance between parts. Bins are sized
w * CELL_SIZE - TOLERANCE.Corner Radii
Default corner radius for bin bodies (mm)
Corner radius for baseplate sockets (mm)
Base Configuration
Total height of the bin base in millimeters. This is the Z-height from the build plate to where the bin walls start.
Wall Thickness
Default wall thickness in millimeters. Ensures structural integrity while minimizing print time.
Default bottom thickness in millimeters.
Features
Height of the stacking lip feature (mm)
Standard magnet diameter (mm) - typically 6mm × 2mm neodymium magnets
Magnet hole depth (mm)
Distance from corner to magnet hole center (mm)
Screw diameter for baseplate mounting (mm) - typically M3
Clearance hole diameter for screws (mm)
Label shelf angle in degrees (45° slope)
Default label shelf width (mm)
Total baseplate height (mm)
Gap between cells in multi-cell bins (mm)
Usage Example
GRID_PRESETS
Predefined grid sizes for common 3D printer build plates.Printer Profiles
| Printer | Grid Size | Build Area | Notes |
|---|---|---|---|
| Bambu Lab A1 | 6×6 | 252×252mm | Default preset |
| Bambu Lab A1 Mini | 4×4 | 168×168mm | |
| Bambu Lab P1S/X1C/X1E | 6×6 | 256×256mm | |
| Creality H2D | 6×6 | 256×256mm | |
| 19” Rack Tray | 10×8 | 420×336mm | For rack mount |
| Custom | 8×8 | — | User-defined |
BIN_PRESETS
Common bin configurations for quick creation.BIN_GROUPS
Category tags for organizing bins.LAYOUT_TEMPLATES
Pre-configured multi-bin layouts for common use cases.Available Templates
- IKEA Alex Drawer (7×14) - Organizer for IKEA ALEX desk drawer
- Electronics Bench (6×6) - Electronics workspace with component bins
- Tool Wall (8×4) - Workshop tool organizer
- Server Rack 1U (10×8) - 19” rack tray for network equipment
