Reimplement rdamsdwg.sty with better documentation

The new scaling mechanism uses fewer new lengths and has simpler logic.