How to insert center mark in view with API?

How to traverse hole edge ?

SolidworksApi macros