You measure the front of a cable insert with calipers. It reads 46 mm. The opening in your electronics carrier is only 40 mm wide. Before widening the enclosure, turn the insert around. The shoulder that passes through the wall measures 39.6 mm. The wider face stays outside.
Find the removable part
Trace a cable from the front of this seven-piece PCB carrier. It passes through the teal insert. The base, vented lid and four hollow spacers surround it. Viewed head-on, the insert hides the edge of the window you need to measure.

Pull it forward to see the opening
With the insert drawn forward, you can see the rectangular window in the front wall. Its width is 40 mm. The shoulder slides into that window, and the wider flange meets the outside face. Subtract 39.6 from 40 and the nominal clearance is 0.4 mm across, or 0.2 mm on each side when centered.

Measure what has to pass through
The flange is 46 mm wide, so it overlaps a centered 40 mm window by 3 mm on each side. The two passages through the insert present a different constraint. One is 8 × 8 mm and the other is 12 × 8 mm. Turning a wider plug toward the second passage gives it more width, but both passages have the same height.

Keep the wall and the plug as separate measurements
To make room for the wider insert in Nora3D, we widened the window from 30 to 40 mm and the shoulder from 29.6 to 39.6 mm. Increasing both widths by 10 mm kept the same nominal clearance. The larger passage changed from 8 × 8 to 12 × 8 mm to address the separate cable-routing requirement.

Before you resize a panel, measure the widest and tallest parts of the connector that must pass through it, including the molded housing.