Selected edge

Can someone give a sample code to determine whether theselected edge is circular, outer/inner edge?

I tried IsOuter.... But not working for me

I am confused which is Loop, which is edge and how to declare it ??
SolidworksApi macros