ProgNovice20
Aerospace
Hello, I am new catia vba user and I have tried to find a solution to my problem on this forum and elsewhere but to no avail. I am sure it's a simple problem but it has me stumped.
I have written a code using VBA to rename the instance names and part numbers in a catia product. It does this for all the products within the top level product and all the parts within the individual products. The code works fine except for renaming the instance names in level 2 of the product tree. Eg.:
works perfectly. But
doesn't do anything at all.
It's weird because i can change the part number in the level 2 easily using
Any guidance will be appreciated.
Thanks.
I have written a code using VBA to rename the instance names and part numbers in a catia product. It does this for all the products within the top level product and all the parts within the individual products. The code works fine except for renaming the instance names in level 2 of the product tree. Eg.:
Code:
oprods.item(1).name = "Top level instance"
Code:
oprods.item(1).products.item(1).name = "2nd level instance"
It's weird because i can change the part number in the level 2 easily using
Code:
oprods.item(1).products.item(1).partnumber = "2nd level part number"
Any guidance will be appreciated.
Thanks.