Hello atook,
I actually forgot to write down the "Set" in my former post. Apologies as i was doing this already in my code. This returns a Type Mismatch error.
I've just tried as you suggested to "Dim myPart as Variant" and the error went away but Part1 was then considered as a Product once...
Hello,
Thanks for your replies. To answer your questions, yes i have added the References associated to Catia V5 in my Tools/References and can see the methods/properties available for Catia objects through the Object Browser within VBA.
When i run the code step by step i can clearly see my...
... sorry i forgot to answer your question in the end.
Yes, i do run my VBA script from Excel ... and it goes to read and control an open Application/Window of Catia V5.
JTBorton,
Thanks for your reply. I had all those references set already and had tried to navigate through the object browser. My tool work perfectly well with CATPArt files but it's only when trying to access CATPart via a CATProduct that i cannot access the correct methods and properties, as...
Evening all,
I've written a bit of VBA code to play with CATParts for the automation of copy/paste bodies and operate transformations such as splits etc.
When i try to adapt this to a CATProduct i cant seem to be able to get the Part Porperties/Methods i had in my former code.
Let's say i have a...