Hi Tim,
Your code is changing the width & height of the cells, but I'm guessing it's not doing what you are expecting it to.
After some testing and adjusting of code, this is what I came up with.....
1. A Table style holds default values for the Text Style & Text Height. These values are used when you create the table.
2. In order to use the Text height you specify in the code, you must tell each cell what that value is to be.
3. The Standard table style uses the Standard Text Style. This may, or may not, be the current style in the drawing. Due to this, the AddText may be using a different Style than the Table's text. This will render your GetBoundingbox values meaningless. So, either change the style in the Cell, or set the Text created by addtext to match the Table's textstyle before you get the BB.
4. The value you use for the column width should be more like the sum of twice that value and the BB width. You currently are multiplying the BB width & the Xfactor.
After making those changes, the Table looks pretty good. If you'd like to see the code I changed I'll post it, but I know how you like to tackle things on your own so I'll wait until you say so.