API for setting magnetic mates in parts

Hello everybody,

is there already a way to set the magnetic mates automaticaly inside of parts? We have a lot of parts and we really don't want to set them by hand...

SolidworksApi macros