I'm looking for a script that will square the corners of polygons that are near 90 degrees but not exactly. Near could be dealt with via a variable, for example within 5 degrees of 90 (85 - 95 degrees).
For a more detailed description and some rather formal pseudo code, please refer to the following ESRI thread (particularly William Huber's post) :
