Autodesk Map OData Problem

Autodesk Map OData Problem

Anonymous
Not applicable
786 Views
1 Reply
Message 1 of 2

Autodesk Map OData Problem

Anonymous
Not applicable
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);
0 Likes
787 Views
1 Reply
Reply (1)
Message 2 of 2

Daniel.Du
Alumni
Alumni

Have you ever checked this blog? 

 

http://adndevblog.typepad.com/infrastructure/2012/05/adding-object-data-records-to-entity-using-map-...

 

Does it help? 



Daniel Du
Developer Technical Services
Autodesk Developer Network

0 Likes