How to use Hole table with API?

Hole tables in drawing documents measure the positions of selected holes from a specified origin datum. The software labels each hole with a tag that corresponds to a row in the table.

At present, the manual methods  select hole .

Hope select hole with API→Hole table.

Thanks ever one.

SolidworksApi macros