Improved in Version 2023.0: IDF Export

In the Export (IDF): Edit Parameters Dialog, a new option allows you to output an attribute as part number. You can select whether the attribute is the part name or footprint name.