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
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
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
Rajat,
Thank you very much, I will try that after tests.