Flange orientation or bolt-hole rotation error is defined as follows:
The reference is grid north when the flange centre-line is within 10° of the vertical and top dead centre (T.D.C.) for every other orientation.
Zero reference is two holes square. See below: