• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Map 3D Developer

    Reply
    Active Contributor
    Posts: 34
    Registered: ‎08-22-2005

    Autodesk Map OData Problem

    201 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);
    Please use plain text.
    ADN Support Specialist
    Posts: 103
    Registered: ‎12-23-2008

    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

    Please use plain text.