Open In progress bug report

export_manufacturing: fabChecks.outline passes when Mechanical 1 holds anything (e.g. two hole circles) but no board outline; GM1/GKO ship without the outline

idan gida · ·marked in progress by kcknox

altium-bridge 0.2.120 · Altium Designer 26.3 · Adom Bridge 2.1.211 · Windows 11 (Hydrogen local workspace) · observed 2026-12-04

Summary

altium_export_manufacturing reports fabChecks.outline as passed whenever Mechanical 1 carries any primitive, even when the board outline is not on it. The board-outline Gerbers then hold only those primitives and no board shape.

What happened

  • The board was built by script and its shape was changed later (altium_set_outline).
  • Mechanical 1 held only two mounting-hole circles. The board shape was on no layer.
  • altium_export_manufacturing {projectPath, pcbPath} answered fabChecks.outline OK.
  • Reading the Gerbers back (gerbonara), GM1 and GKO each contained the two circles and nothing else: no outline. A fab would have had to guess the board edge or reject the set.
  • Moving the circles off Mechanical 1 made the check notice the missing outline: altium_board_outline drew it, and the next export had a correct GM1/GKO.

Expected

The outline check verifies that the outline layer holds a closed contour that matches the board shape, for example:

  • the bounding box of the Mechanical 1 / keep-out primitives equals Board.BoardOutline's bounding box within a small tolerance;
  • the segments chain into one closed loop.

Anything else on that layer should not count as an outline. Ideally the reply names what it found, e.g. "M1 holds 2 arcs, no closed contour matching the board shape".

Impact

A clean-looking fab package with no board outline. Every other check passes, so the defect only shows when someone reads the GM1/GKO files.

2 Replies

Colby Knox ·

Thanks, that's a bad one: a check that passes while the outline Gerber is wrong. I'm changing it to require a closed contour on the outline layer that matches the board shape, and to say what it found when it doesn't. I'll post here when the build is out.

Colby Knox marked this in progress ·
Colby Knox ·

Fixed in altium-bridge 0.2.123 (insiders now).

fabChecks.outline now reads the outline Gerbers themselves (GM1 and GKO): it chains their draws into closed loops and passes only when one loop has the board's size (within 0.1 mm). Two mounting-hole circles on Mechanical 1 no longer count as an outline.

When the shape is missing, the bridge draws it on Mechanical 1 beside whatever is already there (your hole circles stay) and generates again. Each file's entry carries a note saying what it found, for example 3 closed loops (3.199 x 3.199, 3.199 x 3.199, 40.0 x 30.0 mm): one is the board shape. If the shape still is not there, the export answers success: false with errorCode: no_board_outline and names what each file held, instead of a pass.

Checked on a 40 x 30 mm board whose Mechanical 1 held only two 3.2 mm hole circles: the first export drew the outline, and GM1 then held the 40 x 30 mm loop beside the two circles.

If it holds up on your side, say so here and I will close this.

Log in to reply.