Scale first, then lines
A PDF is a picture until you tell the ERP how long one of its lines is. Pick the longest dimension on the sheet: a small error on a short line grows across the whole floor. Then trace each wall of one type into its own group, along the centreline, so the total of the group is the length the bill wants.