> Looking to add a table in VBA.
>
> Dim aTable as ACAD_TABLE
> aTable.colums = 5
> etc. etc.
>
> but... thisdrawimg.modelspace. ??? no AddTable definition, or if there is
one no direction on how to use it.
Mike,
I looked at the type library in Delphi, and saw an AcadModelspace and an
AcadModelspace2. In the AcadModelspace2 interface is the "AddTable" method.
I haven't tested this, but could you try using a local reference to the
modelspace object and typecasting to AcadModelspace2? Maybe something like
this...
Dim CurrentSpace as AcadModelspace2
Dim aTable as AcadTable
Set CurrentSpace = thisdrawing.Modelspace as AcadModelSpace2
Set aTable = CurrentSpace.AddTable(InsertionPoint, RowCount, ColumnCount,
RowHeight, ColumnWidth)
( please forgive my butchery of VBA, I mostly work with Lisp and Delphi )
Hope this points you in the right direction.
-Rick Francken