Hello all,
I'm looking to make a macro that creates a symmetric mate using preselected faces/planes. I can't seem to get the mate to add. Does anyone currently have a macro that does this? Here's the applicable code:
'Set marks for symmetric mate
boolstatus = SelMgr.SetSelectedObjectMark(1, 1, swSelectionMarkSet)
boolstatus = SelMgr.SetSelectedObjectMark(2, 1, swSelectionMarkSet)
boolstatus = SelMgr.SetSelectedObjectMark(3, 4, swSelectionMarkSet)
'Mate
Set swMate = activeDoc.AddMate3(swMateSYMMETRIC, swMateAlignCLOSEST, False, 0, 0, 0, 1, 1, 0, 0, 0, False, longstatus)
I always get back an error code of 0, which signifies unknown error. Very helpful... I've gotten parallel and width mates to add, but symmetric is proving difficult.
Thanks in advance for anyone willing to help!
SolidworksApi macros