The preferred method of setting BODVDD levels and settings is trough the fuses.
When it is desirable to set it in software, see the below use case.
In this use case, a new BODVDD level might be set in SW if the clock settings are adjusted after a battery has charged to a higher level. When the battery discharges, the chip will reset when the battery level is below the SW BODVDD level. Now the chip will run at a lower clock rate and the BODVDD level from fuse. The chip should always measure the voltage before adjusting the frequency up.