AutoCAD Map 3D Developer

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

Autodesk Map OData Problem

253 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: 182
Registered: ‎12-23-2008
Message 2 of 2 (169 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community