CimTables.Add (method)

Adds a new table to the Database.
Syntax: Set CimTable = object.Add ( newTableID, tableType )
Parameters:
newTableID As String - The name of the table to create
tableType As CimTableEnum - The type of table to create
Description: The CimTables.Add method allows you to create a new table with a specified type.

Note: Only tables of type: cimDataTable, cimGroupTable, and cimExternalTable can be created.

Example

Dim project as CimProject
set project = CreateObject("CimProject")
project.OpenLocalProject "c:\cimpdemo\cimpdemo.gef"
Dim tables as CimTables
set tables = project.DataBase.Tables
Set table = tables.Add("TABLE_A", cimDataTable)