Linking GTOls with General table cells

Hi all

How would one approach to put GTOL in the General Table cell. I have created Geometric tolerances asociated with the Dimensions via api.

At this point I can link/put the GTOL into the cell  via putting the cell in edit mode and selecting the GTOL via mouse operations only (i,e UI only)

How would i proceed to put the selected GTOL into the table cell  via API ?

Thanks.

Anshul

SolidworksApi macros