Help with inserting a hole table

Does anyone know how to use the Insert Hole Table methodcorrectly?

I am trying to create a macro that will create a drawing, and I caninsert a drawing view and a BOM, but the hole table is causing abit more trouble.

I think the problem is in what to select before calling the methodto insert the table. If I select a vertex I can get the hole tableto insert, but only the titles of each column and not the holecallouts. In the solidworks API help files under this method thisis in the remarks:

This method requires ordered preselection of various entities:
datum = 1
hole = 2
x axis = 4
y axis = 8

I am not sure what the numbers beside these mean. I have triedselecting all of these, and various combinations, but all I everseem to get is the single row with the column titles.

Thanks for any helpSolidworksApi macros