What about instead of using IAssemblyDoc::EditMate2 to just delete the mate with IModelDoc2::EditDelete and doing the mate again except this time use swMateAlignANTI_ALIGNED. Would there a draw back to this?
Given the complexity of editing mates, I don’t think deleting and recreating the mate is an unreasonable idea. There probably are situations where this could have adverse effects, but I imagine they are rare. Good suggestion.
Ready to start learning the SolidWorks API? Sign up for FREE membership here.Keep up with new videos, macros, and training events by joining our mailing list:
how to use editmate2 ?
IAssemblyDoc::EditMate2 is tricky because of the required selections. See the first paragraph in the remarks for the EditMate2 API help page.
What about instead of using IAssemblyDoc::EditMate2 to just delete the mate with IModelDoc2::EditDelete and doing the mate again except this time use swMateAlignANTI_ALIGNED. Would there a draw back to this?
Given the complexity of editing mates, I don’t think deleting and recreating the mate is an unreasonable idea. There probably are situations where this could have adverse effects, but I imagine they are rare. Good suggestion.