su gtwiki ho trovato lo script che fà al caso mio, e cioè rinomina i "numeri parte" come il "nome file"
nel caso di product creato con il comando "nuovo da" i numeri parte non vengono cambiati, ma solo i nomi file.
eseguendo questo script dopo il comando nuovo da, si otterranno nuovi numeri parte coincidenti con i nuovi nomi file.
questo script è un catvba.
qualcuno potrebbe dirmi per favore come si lancia?
marco
partnumber renamer by file name
often, users will name the partnumber and file name differently.
to clear up some confusion,
the partnumber is the parameter that controls the catpart/catproduct name. it resides in the file and exists at the top of the digital project tree structure.
the file name is the title of the file, and it usually ends with ".catpart" or ".catproduct. it is only accessible from windows explorer or other directory structure interfaces. you can view a read-only version of this name in digital project under file > document properties > document.
in the process of developing an assembly, some users would like to coordinate differing the names. this script changes the partnumber to match the file name.
script download
click here to download the script.
http://www.gtwiki.org/mwiki/index.php?title=partnumber_renamer_by_file_name
important things to note
the changes are permanent. if you select a directory and choose the option to recursive cycle through all sub-directories, it will rename everything. there is no cancel or "stop script.
catproducts that hold onto changed catparts will lose the links. it's recommended that users only utilize this script for catpart directories, but the option is open.
when converting catproducts, you'll probably be prompted with the desk management dialog box. ignore this until the script has finished--it will not impact the performance of the code and you can cancel them all at the end of the procedure.
the equals sign (=) cannot be in the file name of a catproduct. you will be able to save the name, but the partnumber will not accept that string of characters. the script will not prompt you with an error and catparts allow equals signs in the file name and partnumber.