How to get the surfaces which share the same edge?

For example, I clicked an edge in a solid body, how can I get the surfaces which share this edge? And how can I compare these surfaces and get the relationship of them?

SolidworksApi macros
Answers 2
RJ
RJ 2011-07-26 Best Answer

Rex,

Once you get the adjacent faces, Use Face2::getSurface() to get the corresponding surface object. The surface object has all the functions to get mathematical relations.

If you want to check whether your face normal and surface normal are in same direction then you can use Face2::faceInSurfaceSense().

Hope it helps!!!

Rajat Jain

SF
SF 2011-07-28

Rajat,

Thank you very much, I will try that after tests.