Get item number of a part in an assembly

Hello,

I am trying to find a way to determine if there is several times the same part in an assembly. I can't find the right method for that so far.

Any idea?

I use VB.

Thanks,

Charly

SolidworksApi macros