# Clearing my desk with one parametric under-desk mount: power strip, headphones, controller

> One prompt gave me a screw-on power strip holder. Then I dragged five sliders to turn it into a controller tray and used two @feature edits to make a headphone hook and a clamp-on version for desks you cannot drill. That was four AI turns and two free edits in one CAD agent chat, and each holder fits what I actually own.

Page: https://printpal.io/guides/design-stories/parametric-under-desk-mount-cad-agent
Updated: 2026-11-29
Designed with: AI CAD agent
Reading time: 13 min

## Key takeaways

- **One prompt, then no more typing for the second holder.** Opus wrote a 117-line power strip holder in about a minute. I made the controller tray from it by dragging five sliders: no AI, and it re-rendered instantly.
- **Feature edits change one part and leave the rest alone.** "Turn the channel into a headphone hook, keep the plate and screw holes" did exactly that. Neither the plate code nor the screw-hole code changed by a single line.
- **The second edit swapped the mounting method instead.** A desk clamp with a captive M6 nut replaced the screw plate, with the hook carried over unchanged. Desk thickness became a new slider.
- **Sliders and Auto-improve can disagree.** With Auto-improve on, my slider-sized tray set off a 39-second refine pass, because it no longer matched the brief. Type the new values as a chat line instead and they are written into the code for free.
- **All four parts print on their side with no supports.** Estimates on a Bambu X1C range from 29 minutes and 20 g (one strip clip) to 3 hours and 148 g (the full-width controller tray).

## The plan: one profile, three jobs

Under my desk there is a power strip on the floor, a headset that lives on the desk, and a game controller that never has a home. Under-desk holders are among the most popular useful prints, but every download is sized for somebody else's strip, headphones or desk.

So I did not want three models. I wanted **one** mount the CAD agent writes once, with every size as a slider, that I could reshape into each holder. All three are the same idea: a flat part that fixes to the desk, and a cradle hanging below it. Only the cradle changes.

![A render of the underside of a wooden desk with two small blue clips holding a power strip, an orange headphone hook and a wide green controller tray hanging below it](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/lineup.webp)
*The goal, rendered from the session's OpenSCAD. Two 40 mm clips hold the strip (a stand-in box), then the headphone hook and the controller tray.*

Everything happened in one chat on **Claude Opus 5.5**, which the model picker describes as best for "mounts, enclosures and multi-feature parts". I switched on **Advanced mode**, which adds the code editor, the Params tab and the feature chips this story is about, and left **Auto-improve** on.

**One chat, four holders**

| Holder | How I made it | AI turns | Time |
|---|---|---|---|
| Power strip clip | First prompt | 1 | 1 min 3 s |
| Controller tray | Five sliders, then one typed line | 0 (+1 automatic refine) | instant (+39 s) |
| Headphone hook | `@feature` edit of the channel and lip | 1 | 2 min 7 s |
| Clamp-on headphone hook | `@feature` edit of the plate and screw holes | 1 | 2 min 33 s |

*Times are from the chat's own timers. Each AI turn on Opus costs 3x a Kimi message. The refine pass is explained below.*

> **Not printed yet** Nothing in this story has been printed yet. Times and grams are Bambu Studio estimates, and the fit checks are measurements of the files, not test prints.

## Holder 1: the power strip clip

I wrote the prompt for a strip 55 mm front to back and 40 mm tall, with every number in it. Two parts of it did most of the work later on. **"Keep the mounting plate, the channel and the lip as separate features"** gave me named parts to edit, and **"make every size a slider"** gave me something to drag.

**Prompt (AI CAD agent, Claude Opus 5.5 · 3x):**

> Design an under-desk holder for a power strip that screws to the underside of my desk. The profile is a C-shaped channel hanging below a flat mounting plate: the strip slides in from either end and rests on the channel floor, a short front lip stops it sliding out toward me, and the outlets face forward through the open front. The strip is 55 mm deep (front to back) and 40 mm tall, so make the inside of the channel 57 x 42 mm. The holder is 40 mm long; I will use two per strip. The mounting plate runs 20 mm past the back of the channel, with two countersunk holes for 4 mm wood screws in that flange. 3 mm walls, a 15 mm tall front lip and 3 mm fillets in the inside corners. Keep the mounting plate, the channel and the lip as separate features and make every size a slider, because I want to reuse this mount for other things later. It should print on its side with no supports.

*Asking for named features and sliders in the first prompt is what makes the rest of this story possible.*

### Attempt 1: A C-channel with a screw flange, in about a minute

Tool: AI CAD agent, Claude Opus 5.5 · 3x

Opus drew the whole holder as one 2D profile and extruded it along the length. That is the right call for this shape: the part prints on its side with the profile flat on the bed, so every wall is strong along its length and nothing overhangs. It even made the screw holes teardrop-shaped so they print on their side without support.

![The power strip clip built feature by feature in blue: the mounting plate, the channel floor and back wall, the front lip, the inside fillets and the two countersunk screw holes](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/v1-build-poster.webp)
Video: https://printpal.io/static/assets/img/guides/design-stories/desk-mount/v1-build.mp4
*Opus's code, built in the order of its five `@feature` markers.*

![The CAD agent with the finished power strip clip in the viewer, its 7 of 7 done checklist, and five feature chips: mounting_plate, channel, front_lip, inside_fillets and screw_holes](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/app-v1.webp)
*The result. The chips at the bottom are the five features I asked for.*

- **Time:** 1 min 3 s
- **Code:** 117 lines, 5 features
- **Size:** 40 × 83 × 48 mm
- **Sliders:** 12, plus a colour
- **Print:** 29 min, 20.6 g each

What worked:

- Every number from the prompt landed: 57 × 42 mm inside, 3 mm walls, 15 mm lip, 20 mm flange.
- The design brief listed validation targets (bbox, inside size, 2 holes, 4 fillets) before any code was written.
- Teardrop holes with a 90° countersink on the underside, so the screw heads sit flush.

What did not:

- The 4.5 mm holes suit 4 mm screws. If yours are bigger, change `screw_hole_diameter` first.
- Plate and channel walls are all 3 mm. That is fine for a strip, but I would add a millimetre for anything heavier.

![The CAD agent chat with the long power strip prompt and Opus thinking at 42 seconds, writing the module code with the derived depth and position values](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/thinking.webp)
*Thinking at 42 s. The plan and checklist come first, then the code.*

## Holder 2: a controller tray, made with sliders

A game controller is about 155 mm wide, 105 mm deep and 60 mm thick, so it needs the same shape at about three times the size. In the **Params** tab every number from the code is a slider with a typing box. I set the length to 170, the inside to 112 × 72 mm, the lip to 20 mm and the screw spacing to 120 mm so the screws sit near the ends.

![The Params tab with sliders at 170, 112, 72, 3, 3, 20, 20 and 3 for the key dimensions and the viewer showing the much larger tray](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/params.webp)
*The Params tab. Moving a slider re-renders in about 0.05 s, with no AI call.*

Slider changes run in the browser: OpenSCAD re-renders the part with the new values and nothing goes to the AI. Change the inside depth and the plate, flange and screw positions all follow, because Opus wrote them as formulas of the slider values instead of fixed numbers.

> **Sliders and Auto-improve** With **Auto-improve** on, the next render noticed the part was now 170 mm long against a brief that said 40, and ran a refine pass (39 seconds, a 2-line change). It did not undo my slider. It told me to "reset a stale holder_length slider (170) in the Params panel if the length stays wrong", and made the length code sturdier. Harmless, but it is an AI turn you did not ask for. **Switch off Auto-iterate before you start dragging**, or use the typed line below.

**desk_v1.scad · extrude_profile()**

```cpp
// before: translate, then extrude from 0 to holder_length
module extrude_profile() {
    translate([-holder_length / 2, 0, 0])
        rotate([90, 0, 90])
            linear_extrude(holder_length) children();
}

// after the Auto-improve pass: centred, so X is always ±holder_length / 2
module extrude_profile() {
    rotate([90, 0, 90])
        linear_extrude(height = holder_length, center = true) children();
}
```

**Sliders do not change the code.** They are overrides on top of it, so the file you download or keep editing still says 40 mm. To make the new sizes permanent, I typed them into the chat as one line:

**Prompt (AI CAD agent):**

> holder_length = 170, inner_depth = 112, inner_height = 72, lip_height = 20, screw_hole_spacing = 120

*Typed as a normal chat message.*

![The chat reply: Updated holder_length 40 to 170, inner_depth 57 to 112, inner_height 42 to 72, lip_height 15 to 20, screw_hole_spacing 20 to 120, with a NO-AI badge](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/noai.webp)
*The reply, tagged NO-AI: the code was patched in the browser, instantly and for free.*

Any message made only of `name = value` pairs, or a simple "set X to N", is applied this way without calling a model. I used the same trick to put the clip back to 40 mm before the next edit. The animation at the top of this page is those five values swept between the two holders, each frame rendered from the session's OpenSCAD.

Two things to watch with a big tray. It takes **3 hours and 148 g** to print at full width, and a 170 mm plate on two screws is a lever. If your controller does not need a full-width shelf, set `holder_length` to 40 and print two, the same way the strip is held.

## Holder 3: a headphone hook, with an @feature edit

A headphone hook is not a resized channel: the cradle is a different shape. This is what `@feature` edits are for. In Advanced mode, every `// @feature:` marker in the code becomes a chip above the chat. Click one and that part lights up in the viewer and its reference drops into your message.

![The CAD agent with the channel chip selected: the channel floor and back wall glow orange in the viewer with an @channel label, and @feature[channel] is typed in the message box](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/chip.webp)
*Clicking the `channel` chip highlights the floor and back wall and adds `@feature[channel]` to the message.*

I referenced the two features to replace and the two to keep. Saying what to keep matters. The agent sees the whole file every turn, and naming the parts that must not move is the clearest way to stop it "improving" them.

**Prompt (AI CAD agent, Claude Opus 5.5 · 3x):**

> @feature[channel] @feature[front_lip] Turn these into a headphone hook instead of a channel. A single 5 mm thick arm drops 60 mm from the back of the plate, then curves forward into a saddle 45 mm deep with a 12 mm raised tip at the front so the headband cannot slide off. Make the bottom of the saddle a smooth curve, at least 15 mm radius, so it does not crease the headband padding. Keep @feature[mounting_plate] and @feature[screw_holes] exactly as they are.

*The 15 mm minimum radius is there so the saddle does not crease the headband padding.*

### Attempt 2: The cradle swapped, the plate untouched

Tool: AI CAD agent, Claude Opus 5.5 · 3x

Opus replaced the channel and lip with a single `headphone_hook` feature: a 5 mm arm, a 45 mm saddle with an R17.5 bottom (it chose more than the 15 I asked for) and a 12 mm tip with rounded edges. It removed the four sliders that only made sense for a channel, and added `plate_depth` so the plate keeps its 83 mm without them.

![The headphone hook built feature by feature in blue: the mounting plate, the J-shaped hook arm and saddle, the fillets and the two screw holes](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/hook-build-poster.webp)
Video: https://printpal.io/static/assets/img/guides/design-stories/desk-mount/hook-build.mp4
*The hook version, built from its code.*

![The CAD agent viewer showing the headphone hook under the mounting plate, and an 8 of 8 done checklist ending with Edited model, +52 −34, 1,540 tris, 40 × 83 × 63 mm, 2 m 7 s](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/hook-app.webp)
*The checklist says the plate and screw holes are unchanged. The diff agrees.*

- **Time:** 2 min 7 s
- **Change:** +52 / −34 lines
- **Size:** 40 × 83 × 63 mm
- **Plate and screw-hole code:** unchanged
- **Print:** 30 min, 19.9 g

What worked:

- `mounting_plate_profile()` and `screw_holes()` are identical, line for line, to the clip's.
- The plate keeps its size and hole positions, so it uses the same screw holes in the desk.
- The "What changed" note said exactly what moved: the plate rose from Z 45 to 60 to sit on the longer arm.

What did not:

- A 40 mm wide hook is a lot wider than a headband. `holder_length` 25 would save filament.
- The arm meets the plate in front of the screw flange, so the screws are not in line with the load. That is fine for headphones, but not for heavy bags.

![Strip clip: Drag to compare the power strip clip and the headphone hook from the same camera](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/still-v1.webp)
![Headphone hook: Drag to compare the power strip clip and the headphone hook from the same camera](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/still-hook.webp)
*Same camera, same scale. Drag the handle: the plate and its two holes stay put, and only the part below changes.*

## No drill? Swap the plate for a clamp

Plenty of desks are rented, glass, or not yours to drill. So the second `@feature` edit did the opposite of the first: it replaced the **mounting** and kept the **cradle**.

**Prompt (AI CAD agent, Claude Opus 5.5 · 3x):**

> @feature[mounting_plate] @feature[screw_holes] For a desk I cannot drill, swap the screw-down plate for a clamp that slips over the front edge of the desk: a C-shaped clamp with a 25 mm opening for the desktop (make the desk thickness a slider), 40 mm deep jaws, and an M6 bolt that screws up through a captive hex nut in the lower jaw to tighten it against the underside. Leave @feature[headphone_hook] exactly as it is, hanging from the lower jaw.

*An M6 bolt and nut from any hardware store. The nut is trapped in the print, so nothing needs tapping.*

### Attempt 3: A C-clamp with a captive nut, and the hook carried over

Tool: AI CAD agent, Claude Opus 5.5 · 3x

The plate and screw holes became `desk_clamp` and `clamp_bolt`: a 6 mm spine, a 6 mm top jaw and a 10 mm bottom jaw thick enough to bury an M6 nut. The nut sits in a hex pocket that opens into the clamp gap, so tightening the bolt pulls the nut down onto 4.5 mm of plastic instead of out of it.

![The clamp-on headphone hook built feature by feature in blue: the C-clamp, the hook below it, the fillets and the bolt hole with its hex nut pocket](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/clamp-build-poster.webp)
Video: https://printpal.io/static/assets/img/guides/design-stories/desk-mount/clamp-build.mp4
*The clamp version. The hex pocket shows on top of the lower jaw.*

![The CAD agent viewer showing the C-clamp with the hook below and the checklist: captive M6 nut pocket, teardrop clearance hole, headphone hook unchanged, Edited model +66 −48, 40 × 46 × 101 mm, 2 m 33 s](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/clamp-app.webp)
*New chips: `desk_clamp` and `clamp_bolt`. The hook chip is the same one as before.*

- **Time:** 2 min 33 s
- **Change:** +66 / −48 lines
- **Size:** 40 × 46 × 101 mm
- **Hook values:** all unchanged
- **Print:** 40 min, 27.8 g

What worked:

- Every hook number (arm, drop, saddle, radius, tip) is the same as before.
- The brief told me to set `desk_thickness` a few mm over my real desk so the clamp slides on and the bolt takes up the gap.
- It prints on its end with no supports. The nut pocket is turned so its roof is a 5.9 mm bridge.

What did not:

- Five lines of hook code changed, to hang it from the jaw instead of the old plate. The shape is the same, but "exactly as it is" did not mean untouched code.
- The bolt tip presses straight on the desk. Stick a felt pad under it.
- You tighten the bolt from inside the hook. It has 55 mm of room, so a wing bolt or thumb screw is easier than a spanner.

**desk_clamp.scad · assembly**

```cpp
color(holder_color)
difference() {
    union() {
        // @feature: desk_clamp
        extrude_profile() clamp_profile();
        // @feature: headphone_hook
        extrude_profile() hook_profile();
        // @feature: inside_fillets
        extrude_profile() fillets_profile();
    }
    // @feature: clamp_bolt
    clamp_bolt();
}
```

**desk_clamp.scad · clamp_bolt()**

```cpp
// M6 clearance hole + captive hex nut pocket opening into the clamp gap
module clamp_bolt() {
    translate([0, bolt_y, jaw_bottom_z - 0.01])
        linear_extrude(lower_jaw_thickness + 0.02)
            teardrop_2d(bolt_hole_diameter);
    // flat side faces +X so the pocket roof bridges when printed on end
    translate([0, bolt_y, jaw_top_z - nut_pocket_depth])
        linear_extrude(nut_pocket_depth + 0.01)
            rotate(30) circle(d = nut_pocket_width / cos(30), $fn = 6);
}
```

![The clamp-on hook with its jaw opening growing from 15 to 40 mm as a desk_thickness slider moves, then shrinking back](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/desk-thickness-poster.webp)
Video: https://printpal.io/static/assets/img/guides/design-stories/desk-mount/desk-thickness.mp4
*The new `desk_thickness` slider, from a 15 mm shelf to a 40 mm desktop. The hook does not move.*

![Screw-on hook: Drag to compare the screw-on headphone hook and the clamp-on version from the same camera](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/still-hook.webp)
![Clamp-on hook: Drag to compare the screw-on headphone hook and the clamp-on version from the same camera](https://printpal.io/static/assets/img/guides/design-stories/desk-mount/still-clamp.webp)
*Same camera, same scale. The hook is identical; the plate became a clamp.*

## Printing the holders

Every version is a profile extruded along its length, so they all print the same way: **on their side**, with the profile flat on the bed and the length going up. Layers then run along each wall, which is the strong direction for a hook or a clamp, and the only holes are teardrops that need no support.

**Bambu Studio estimates, X1 Carbon, 0.20 mm layers, PLA, 2 walls and 15% infill unless noted**

| Holder | Printed size | Time | Filament | Hardware |
|---|---|---|---|---|
| Power strip clip (print 2) | 48 × 83 × 40 mm | 29 min each | 20.6 g each | 4 × 4 mm wood screws |
| Controller tray | 78 × 138 × 170 mm | 3 h 3 min | 147.9 g | 2 × 4 mm wood screws |
| Headphone hook | 63 × 83 × 40 mm | 30 min | 19.9 g | 2 × 4 mm wood screws |
| Clamp-on hook | 101 × 46 × 40 mm | 40 min | 27.8 g | M6 × 20–30 bolt, M6 nut, felt pad |
| Clamp-on hook, 4 walls, 30% infill | 101 × 46 × 40 mm | 59 min | 45.9 g | as above |

*Sizes are as laid on the bed. The bolt only has to cross the 10 mm jaw and the few millimetres between the jaw and your desk, so length is not critical. A longer one just hangs lower into the hook, which has 55 mm of room.*

- **4** AI turns in the whole chat
- **2** free NO-AI edits
- **0** supports on any holder
- **0 lines** of plate code changed by the hook edit

- **Use more walls for the clamp.** The bolt squeezes the jaws apart, so I would print it with 4 walls and 30% infill (59 minutes, 46 g). PETG is a better choice than PLA under a desk that gets warm.
- **Two clips per strip.** Put them about 20 mm in from each end of the strip.
- **Screw into solid wood.** In a hollow-core or chipboard desk, short screws pull out. The clamp version is the safer choice there.

## Make it fit your desk

Most of the work is done by the first prompt's features and sliders. Here is what I would change for other things under a desk:

**Which version and which sliders**

| To hold | Start from | What to change |
|---|---|---|
| A different power strip | Strip clip | `inner_depth` and `inner_height`: your strip plus 2 mm |
| A laptop power brick | Strip clip | The inside size of the brick, plus a lower `lip_height` |
| Game controller or TV remote | Controller tray | `holder_length`, or print two short ones |
| A thick desk | Clamp-on hook | `desk_thickness`, a few mm over your desk |
| A bag or a second headset | Headphone hook | `saddle_depth` and `arm_drop`; also ask for a thicker arm |
| Cables along the desk edge | Strip clip | An `@feature` edit: a shallow open tray instead |

1. **Name the features in your first prompt.** Ask for the mounting, the cradle and the details as separate features. Those names become the chips, and the chips are what make later edits precise.
2. **Measure, then type the numbers.** Give the inside size of the thing you are holding, plus 1–2 mm. The agent will not guess your power strip.
3. **Drag sliders for sizes, edit features for shapes.** If the holder is the same shape, only bigger, use the sliders. If it is a different shape, like a hook instead of a channel, use an `@feature` edit.
4. **Say what to keep.** In every `@feature` edit, name the features that must not change. Then read the "What changed" note, which reports anything that moved.
5. **Make slider values permanent with one line.** Type `name = value, name = value` in the chat. It is written into the code with no AI, so it survives downloads and the next edit.
6. **Turn off Auto-iterate while you experiment.** A slider that takes the part away from the brief can start a refine pass. Switch it back on before you ask for the next real change.

**Design your own under-desk mount** Open the CAD agent, switch on Advanced mode, and describe the mount with its features and sizes. Then drag, edit and print. [Open the CAD agent](https://printpal.io/cad-agent)

## Sources and method

Made on November 29, 2026, in one CAD agent chat on a PrintPal Pro account, with Claude Opus 5.5, Advanced mode and Auto-improve on. The prompts are shown above, unedited. Times are from the chat's timers. The OpenSCAD for each version and the chat text were saved straight from the page, and the claims about what each edit changed come from line diffs between those files. Renders and animations are those files rendered with OpenSCAD's manifold backend: the build animations follow each file's `@feature` markers, and the slider sweeps re-render the file with the slider values passed as overrides. The lineup's desk and power strip are stand-in boxes. Bolt clearance was checked by casting a ray up the bolt axis through the clamp mesh. Print times and filament are Bambu Studio estimates for an X1 Carbon at 0.20 mm in PLA. Nothing has been printed. PrintPal makes the CAD agent.

- [PrintPal AI CAD agent](https://printpal.io/cad-agent)
- [OpenSCAD user manual: linear_extrude and offset](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/2D_to_3D_Extrusion)
- [OpenSCAD documentation](https://openscad.org/documentation.html)
- [Bambu Studio](https://bambulab.com/en/download/studio)

## More guides

- [Kimi K3.1 Pro vs Claude Opus 5.5 vs GPT-6 Astra: three real parts, nine CAD agent runs](https://printpal.io/guides/design-stories/kimi-vs-opus-vs-astra-cad-agent): I gave the three models in the CAD agent picker the same three prompts: a Gridfinity bin, a snap-fit Raspberry Pi 5 case and a screw-top jar. Then I checked every file against the real thing: the Gridfinity baseplate, the Pi 5 drawing and a simulated lid being screwed on.
- [Designing Hollis: one robot, two CAD agent models and an image-to-3D mesh](https://printpal.io/guides/design-stories/retro-robot-cad-agent-vs-image-to-3d): I gave the same concept art and the same prompt to the CAD agent on Claude Opus 5.5, then on GPT-6 Astra, then to the image-to-3D generator. Here is what each one built, how long it took, what it cost and which file I would actually print.
- [The best AI tools for 3D printing in 2026, stage by stage](https://printpal.io/guides/best-ai-tools-for-3d-printing): Where AI actually helps a 3D print today, from the model to the finished part, with the tool we would pick at each step, what it costs, and the steps where you are better off without AI.
- All design stories: https://printpal.io/guides/design-stories

- All guides: https://printpal.io/guides
- PrintPal for LLMs: https://printpal.io/llms.txt
