Use this set of toy train components to experiment with magnetic mates.
In addition to the straight and curved tracks that you use in the magnetic mates example, there are additional parts and assemblies you can use to try the magnetic mates functionality. These components are located in drive letter:\Users\Public\Public Documents\SOLIDWORKS\SOLIDWORKS 2017\whatsnew\assemblies\.