I sent an email to SW API Support on this problem and below is the code that was sent back. It appears to work every time but I have a lot to learn on how to find some of the commands that were used.
'------------------------------------------------
Option Explicit
Public Enum swMateType_e...
EditMate2 assumes that the mate and the two entities are selected otherwise it fails. EditMate2 does not have any location to input objects, just the variables of the mate itself.
It looks like in 2004, Mate::GetMateEntities has been replaced with Mate2.MateEntity. I can get the mate entity but how do I select it? Selection Manager works fine for the mate itself because it is preselected. I am still looking through the API help but I do not think I will find an example...
I will try your suggestions. I thought I tried the Selection Manager and it only sees the selected mate and not the entities but I need to learn more about how it works. I will not get a chance to try everything until Friday.
Thank you,
Can someone help me create a macro/program to flip the mate alignment? The following are the main lines of the code that I have started to use from a recorded macro. The first line seems to work every time for selecting the mate if it is preselected. The next line for picking the mate entity...