What I would try is to open the 7.0 file as you have done in 17.
This will create new Building Materials as well as new lines and composites as necessary (all with a 9 digit number at the end).
Now if you have a 17 template you could APPEND all attributes from the template into this file.
You could try to OVERWRITE if the 7 file and the 17 template are similar (i.e the both stemmed from the same original template).
Don't use the Attribute Manager to purge elements.
Instead use the new 'Delete and Replace' feature in the element settings dialogues.
Start with the layers, lines fills, surfaces (old materials), composites, etc and do building materials last (because they contain fills and surfaces).
Select an attribut with a 9 digit number and then press DELETE button.
A dialogue will appear with an option to 'Delete' or 'Delete & Replace'.
Choose D & R and then you can select your template attribute (without the 9 digit number) and all instances will be replaced with it - eleiminating the annoying "missing" attribute.
It might take a while but it is worth it.
TIP if you are in the settings dialogue and you make a mistake you will lose all that you have done so far if you choose to CANCEL.
So I try to D & R a few attributes and then close the dialogue. Re-open the dialogue and continue - then you know what you have done is safe if you make a mistake and you don't have to start again.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11