It allows you to save under a 3D + plan set by keeping the links between the 2 and updating the properties and therefore the title block with a code and a label.
There may be some small changes to be made, but I have commented on all the lines of code to simplify the work!
If there is a joint question, please open another question.
As far as I'm concerned, I only have solidworks (without PDM), and I also commonly use Solidworks Explorer to rename or move files. The linked files are searched by this explorer and automatically the links are updated.
SOLIDWORKS Explorer is replaced by SOLIDWORKS File Utilities, which allows you to rename, replace, copy, and move SOLIDWORKS files while retaining file references.