Tables tables = Autodesk.Gis.Map.HostMapApplicationServices.Application.ActiveProject.ODTables;
Autodesk.Gis.Map.ObjectData.Table table = tables[TblName];
Records records = table.GetObjectTableRecords(0, id, Autodesk.Gis.Map.Constants.OpenMode.OpenForRead, false);
if (records.Count == 0)
{
Record record = Record.Create();
table.InitRecord(record);
table.AddRecord(record, id);
}
Why the following is error:Records records = table.GetObjectTableRecords(0, id, Autodesk.Gis.Map.Constants.OpenMode.OpenForRead, false);