Edit Configurations Properties Alternates Name of all the component in assy

Hi everyone

i would like to create a macro who change the alternate name of all the composant in an assembly.

The alternate name is the "part number displayed when used in a bill of materials".

I got a macro to change the active document alternates names of all config..

How to get the alternate name of a child (component in a assembly)?

Thank you very much!

SolidworksApi macros