以下程序调用AddTable无任何输出,无任何提示.(AutoCAD2k4,Win2K)
- Sub Test()
- Dim NewTable As EFCAD.Table
- Dim InsertP As Variant, RowCount As Integer, ColCount As Integer, TableDir As Integer, _
- RowHeight As Double, ColHeight As Double
-
- With ThisDrawing.Utility
- InsertP = (.GetPoint(, "请输入表格插入点:"))
- 'MsgBox InsertP(0) & vbCr & InsertP(1) & vbCr & InsertP(2)
- RowCount = (.GetInteger("请输入表格的行数:"))
- 'MsgBox RowCount
- ColCount = (.GetInteger("请输入表格的列数:"))
- 'MsgBox ColCount
- TableDir = (.GetInteger("表格的方向(1从上到下,2从下到上):"))
- 'MsgBox TableDir
- RowHeight = (.GetDistance(, "请输入行高:"))
- 'MsgBox RowHeight
- ColHeight = (.GetDistance(, "请输入列宽:"))
- 'MsgBox ColHeight
- End With
- Set NewTable = New EFCAD.Table
- NewTable.AddTable InsertP, RowCount, ColCount , TableDir, RowHeight, ColHeight
- End Sub
|