AutoCAD Map 3D Developer

AutoCAD Map 3D Developer

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

Autodesk Map OData Problem

259 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);
ADN Support Specialist
Daniel.Du
Posts: 270
Registered: ‎12-23-2008
Message 2 of 2 (175 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
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.