Getting the title of children parts

I am trying to iterate through the components of an assembly and get the title of each of them. Using an example in the API help file I can get the name of the component but we put what is essentially a part description into the title property of the model so I need to get that also.

The snag that I am running into is that the example file makes the child component a Component2 object, which doesn't have a GetTitle. I've tried converting it into a ModelDoc2 but that crashed at the conversion.

Any help is appreciated.

In case it matters I am using SW2009 and VSTA (VB).


Dan

SolidworksApi macros