hole diameter

Hi,

is there a way of getting all hole diameters?

in fact, not only circular holes but any polygon?

I found this:

2017 SOLIDWORKS API Help - Select Edges of All Holes on Face Example (C#)

2017 SOLIDWORKS API Help - Select Loop of Edges Example (VBA)

but none of them get the diameter/length of a hole.

Any ideas?

getting the type of the hole (circular or not) can also be helpful.

Thanks

SolidworksApi macros