Macro to Mate Origin - Origin

I was trying addmate5 for a while and the answer helped me to understand the problem was the axis alignment required an undocumented “-1” after the swMateCOORDINATE “20”. lol

Thank you!

https://help.solidworks.com/2024/English/api/swconst/SOLIDWORKS.Interop.swconst~SOLIDWORKS.Interop.swconst.swMateAlign_e.html?verRedirect=1

Member Description
swAlignAGAINST Obsolete. Do not use.
swAlignNONE Obsolete. Do not use.
swAlignSAME Obsolete. Do not use.
swMateAlignALIGNED 0
swMateAlignANTI_ALIGNED 1
swMateAlignCLOSEST 2