AutoCAD Map 3D Developer

AutoCAD Map 3D Developer

Reply
Active Contributor
csharpbird
Posts: 34
Registered: ‎08-22-2005
Message 1 of 2 (258 Views)

Autodesk Map OData Problem

258 Views, 1 Replies
06-22-2008 07:33 PM
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);
Board Manager
Daniel.Du
Posts: 215
Registered: ‎12-23-2008
Message 2 of 2 (174 Views)

Re: Autodesk Map OData Problem

09-09-2012 08:40 PM in reply to: csharpbird

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.