Hi,
I am trying to create a gear mate with the 'reverse' option selected. I can create the gear mate but I can't get SW to select the 'reverse' option, this is the line that I'm using to create the mate. How do I get the program to select 'reverse'?
Set matefeature = swModel.AddMate4(10, -1, True, 0.0254, 0, 0, 0.0508, 0.0762, 0.5235987755983, 0.5235987755983, 0.5235987755983, False, False, mateError)
SolidworksApi macros
Martin,
You could use "Flip", it will control the reversing in the gear mate...so change (10, -1, True,...) to (10, -1, False,...)
2018 SOLIDWORKS API Help - AddMate4 Method (IAssemblyDoc)
Cad, that didn't work, Flip is for the components. Thanks though
huh, you could run Editmate4 after, with the "flip" change.... I just tried the Editmate4 & it reversed fine.
I edited an existing Gear Mate and the only change was the "flip" variable from True to False.
Part.EditMate2 10, -1, True, 0, 0, 0, 0, 0, 0, 0, 0, longstatus
Didn't work for me. I have SW 2014 btw so I'm not sure if I have editmate4