Cell edge is not plane spacing
The Lab uses cubic conventional cells and gives reciprocal frequency in cycles per angstrom. The scattering angle at the detector is twice the Bragg angle to the planes. Changing the cell edge rescales every atomic coordinate, the reciprocal spacing and the recorded pattern together. The angles come from the outgoing directions.