'Добавляем таблицу
pptabl(0) = pGaz(0) - 1.85 * MyScale
pptabl(1) = pp(1) ' - 75 * MyScale
Set MyTable = ThisDrawing.ModelSpace.AddTable(pptabl, 5, 1, 1#, 1#)
MyTable.StyleName = "V"
MyTable.SetColumnWidth 0, 3.7 * MyScale
MyTable.SetRowHeight 0, 15 * MyScale
MyTable.SetRowHeight 1, 15 * MyScale
MyTable.SetRowHeight 2, 15 * MyScale
MyTable.SetRowHeight 3, 15 * MyScale
MyTable.SetRowHeight 4, 15 * MyScale
MyTable.SetTextHeight 0, 2# * MyScale
MyTable.SetTextHeight 1, 2# * MyScale
MyTable.SetTextHeight 2, 2# * MyScale
MyTable.SetTextHeight 3, 2# * MyScale
MyTable.SetTextHeight 4, 2# * MyScale
MyTable.SetTextRotation 0, 0, acDegrees090
MyTable.SetTextRotation 1, 0, acDegrees090
MyTable.SetTextRotation 2, 0, acDegrees090
MyTable.SetTextRotation 3, 0, acDegrees090
MyTable.SetTextRotation 4, 0, acDegrees090
'Устанавливаем невидимость границ ячеек
MyTable.SetGridVisibility acHorzBottom, acTitleRow, False
MyTable.SetGridVisibility acHorzTop, acTitleRow, False
MyTable.SetGridVisibility acVertLeft, acTitleRow, False
MyTable.SetGridVisibility acVertRight, acTitleRow, False
MyTable.SetGridVisibility acHorzInside, acTitleRow, False
MyTable.SetGridVisibility acVertInside, acTitleRow, False
MyTable.SetGridVisibility acHorzBottom, acHeaderRow, False
MyTable.SetGridVisibility acHorzTop, acHeaderRow, False
MyTable.SetGridVisibility acVertLeft, acHeaderRow, False
MyTable.SetGridVisibility acVertRight, acHeaderRow, False
MyTable.SetGridVisibility acHorzInside, acHeaderRow, False
MyTable.SetGridVisibility acVertInside, acHeaderRow, False
MyTable.SetGridVisibility acHorzBottom, acDataRow, False
MyTable.SetGridVisibility acHorzTop, acDataRow, False
MyTable.SetGridVisibility acVertLeft, acDataRow, False
MyTable.SetGridVisibility acVertRight, acDataRow, False
MyTable.SetGridVisibility acHorzInside, acDataRow, False
MyTable.SetGridVisibility acVertInside, acDataRow, False
'Конец
'Запись значений в ячейки таблицы
MyTable.SetCellValue 0, 0, "-"
MyTable.SetCellValue 1, 0, CSng(отметкаЗемляФактическая)
MyTable.SetCellValue 2, 0, CSng(отметкаДноТраншеи)
MyTable.SetCellValue 3, 0, CSng(отметкаВерхаТрубы)
MyTable.SetCellValue 4, 0, CSng(глубинаТраншеи)
'конец