Skip to content

Conversation

Copy link

Copilot AI commented Sep 13, 2025

This enhancement adds the ability to engrave custom text directly onto Gridfinity sliding lids, addressing the issue where labels can't be seen when the lid is closed.

New Features

Six new text parameters added to gridfinity_sliding_lid.scad:

  • sliding_lid_text_enabled - Enable/disable text on lid (default: false)
  • sliding_lid_text - Custom text content (default: "Gridfinity")
  • sliding_lid_text_size - Font size in mm (0 = auto-size)
  • sliding_lid_text_depth - Engraving depth in mm (default: 0.3)
  • sliding_lid_text_font - Font selection (default: "Aldo")
  • sliding_lid_text_position - Text alignment: left/center/right (default: "center")

Implementation

The text is rendered as engraved negative space on the lid surface using linear_extrude(). Key features include:

  • Automatic sizing: When text_size = 0, font size is automatically calculated to fit lid dimensions
  • Smart positioning: Text is properly centered vertically and aligned according to the position setting
  • Non-breaking: Feature is disabled by default, preserving all existing functionality
  • Compatible: Works with all existing sliding lid features (cutouts, lip styles, etc.)

Usage Example

sliding_lid_text_enabled = true;
sliding_lid_text = "SCREWS";
sliding_lid_text_size = 8;
sliding_lid_text_position = "center";

This allows users to identify bin contents even when sliding lids are closed, solving the visibility issue described in the original request.

Fixes #197.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Author

Copilot AI commented Sep 13, 2025

@ostat 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

Co-authored-by: ostat <2128234+ostat@users.noreply.github.com>
Copilot AI changed the title [WIP] [enhancement] add text on the lid Add text engraving functionality to sliding lids Sep 13, 2025
Copilot AI requested a review from ostat September 13, 2025 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[enhancement] add text on the lid

2 participants