Skip to main content

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

The GF object contains all core Gridfinity specification values. It is defined as a const object for type safety.
Source: src/gridfinity/constants.ts:1-29

Core Dimensions

42
required
Base grid cell size in millimeters. Each grid unit is 42mm × 42mm.
7
required
Vertical height increment in millimeters. Height units are multiples of 7mm.
0.5
required
Fit tolerance between parts. Bins are sized w * CELL_SIZE - TOLERANCE.

Corner Radii

3.75
required
Default corner radius for bin bodies (mm)
4.0
required
Corner radius for baseplate sockets (mm)

Base Configuration

4.75
required
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

1.2
required
Default wall thickness in millimeters. Ensures structural integrity while minimizing print time.
0.8
required
Default bottom thickness in millimeters.

Features

4.4
required
Height of the stacking lip feature (mm)
6
required
Standard magnet diameter (mm) - typically 6mm × 2mm neodymium magnets
2
required
Magnet hole depth (mm)
4.8
required
Distance from corner to magnet hole center (mm)
3
required
Screw diameter for baseplate mounting (mm) - typically M3
3.2
required
Clearance hole diameter for screws (mm)
45
required
Label shelf angle in degrees (45° slope)
12
required
Default label shelf width (mm)
6.4
required
Total baseplate height (mm)
0.5
required
Gap between cells in multi-cell bins (mm)

Usage Example

GRID_PRESETS

Predefined grid sizes for common 3D printer build plates.
Source: src/gridfinity/constants.ts:31-40

Printer Profiles

BIN_PRESETS

Common bin configurations for quick creation.
Source: src/gridfinity/constants.ts:42-50

BIN_GROUPS

Category tags for organizing bins.
Source: src/gridfinity/constants.ts:54-63

LAYOUT_TEMPLATES

Pre-configured multi-bin layouts for common use cases.
Source: src/gridfinity/constants.ts:67-73

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
Source: src/gridfinity/constants.ts:75-145 Example:

Dimension Calculations

Bin Outer Dimensions

Inner Cavity Dimensions

Multi-Cell Bins

For bins spanning multiple cells, each cell maintains its own base profile with gaps between them:
Source: src/gridfinity/binGeometry.ts:89-113