Is-Body-Pipe function?

Hi,

Does anyone knows a function to check whether a body is pipe or not?

Or some tips how can I check the edges to know for sure that this is a pipe body?

Thanks!

-Bnaya Livne

SolidworksApi macros