Keep in mind too, if replacement rims are slightly different ERD you might be able to compensate by changing spoke lacing pattern and still re-use same length spokes. Example might be going from 3x spoke pattern to 2x for rims of slightly larger ERD.