AnsweredAssumed Answered

Get the direction between faces

Question asked by Chris Christy on Jul 7, 2015
Latest reply on Jul 8, 2015 by Feroz Mahomed

I have a macro that lets you select 2 faces, and then gets distance between those 2 faces and inserts a part based on that and a few user inputs. The issue I would like to resolve is, depending on face selections, sometimes the mate distance/alignment goes the wrong way for the intended purpose. I assume this is because of differing Normal Tos of the selected faces.  What would be the best solution to get it always to mate towards the 2nd selected face?

 

Also, is there a way to make a direction arrow that I can have appear to show the direction it will be going in? That way if it isn't the intended direction the user can click a flip dimension checkbox, just like standard solidworks functionality?

 

Thank you in advance.

 

Chris Christy

Outcomes