So far my program does the following:
-Read the existing files in a folder e.g. GX001.CATPart, GX002.CATPart, etc.
-Create a list of the visible parts in the Product. <---Done with your code, thanks.
-Propose and alternative name for the visible parts with the next sequential GX-number
-Product save as GX003.CATProduct
-Save AS each one of the visible parts in the product as GX004.CATPart, GX005.CATPart, and so on <---this is the next step which I cannot make it work so far.
I have previous experience writing code in VB and VBA but I have recently started with CATIA so I still do not know the objects/methods/properties of CATIA in VBA.
Thank you.