Yes, copying your example works perfectly!
(I probably messed up either definition of product1/productDocument1/products1 by explicitly defining their type..)
Thanks for the clarification!! :)
Been looking into using VB.NET and Visual Studio (2017) to control an (semi-)automation application in CATIA v5 (running R24).
Up until recently, things were going well, “transferring” code from VBA in Catia to Visual Studio; but now I ran into some issues with adding CATparts to a CATProduct...