Built a simple clip to attach LED lightstrips (Philips Hue, Govee, any variation really) to my desk, which is 4040 extrusion at its core.
Clips into the extrusion via rotation locking , and light strip is held in via friction.
Most 4040-type extrusion T-slot has a depth of 4.1-4.4mm. This, machining tolerances from distributors and with printer tolerances mean you may need to go larger or smaller for your given printer/t-slot combination. I've designed 4.0-4.5mm versions, in 0.05mm steps, so you can test and print which one works for your situation.
In my example photos - the silver profile is 8020.net's 40-4040, while the black is 40-8040-UL. Both fit great with 4.40mm and are a bit too snug with 4.35mm.
I've had luck printing PLA and PLA+/ProPLA at 0.2 and 0.3mm layer height, with 2-4 perimiters, and rectiliner/gyroid infill. All have worked great. The key is generally speaking speed, which can have a big impact on tolerances. Other filaments can work great too, PLA is simply inexpensive, easy, and stiff enough for my use case.
Otherwise, these print quickly, use very little filament, and don't sustain much force once installed, so it's pretty flexible with print parameters.
The author marked this model as their own original creation.