[CE U14] Place best fit oriented block

How to place best fit 2D orientated block around almost rectangular 2D shape so all angles straight?

What I have tried:

  • Tried using Fence file but it places minimum bounding rectangle which is not oriented.
  • Tried Raster warp but it doesn't allow to scale unproportionally and using skew the angles are not straight
  • Tried adding constraints but resulting shape doesn't seem to be best fit

Any other ideas? Example attached.

This is survey of building 4 corner points with cm accuracy but for BIM modelling it would be necessary to generalize it with straight angles if they are close to 90 degrees.

best-fit-block.dgn