<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Betreff: Does it have Object Data? vb.net in AutoCAD Map 3D Developer Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3189590#M2202</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim i As Integer = 0
While i &amp;lt; myFieldDef.Count
  'you first have to check the datatype of the column
  'then you can do one of these statements (or more like boolean ...)
  debug.print rec(i).Int32Value.ToString
  debug.print rec(i).DoubleValue.ToString
  debug.print rec(i).StrValue
  MsgBox(myFieldDef.Item(i).Name)
  i = i + 1
EndWhile&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;HTH, - alfred -&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2011 20:01:44 GMT</pubDate>
    <dc:creator>Alfred.NESWADBA</dc:creator>
    <dc:date>2011-10-12T20:01:44Z</dc:date>
    <item>
      <title>Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3189570#M2200</link>
      <description>&lt;P&gt;i am trying to read the Object data records.&amp;nbsp; i can see the object data table and definitions and field names, but cannot seem to get to the value of each field.&amp;nbsp; What am i missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;ed &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;Editor&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; = Autodesk.AutoCAD.ApplicationServices.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;Application&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.DocumentManager.MdiActiveDocument.Editor&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; pe &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;PromptEntityOptions&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" size="2" face="Consolas"&gt;&lt;FONT color="#a31515" size="2" face="Consolas"&gt;&lt;FONT color="#a31515" size="2" face="Consolas"&gt;"Select Object.."&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; pr &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;PromptEntityResult&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;= ed.GetEntity(pe)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; pr.Status = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;PromptStatus&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.OK &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Using&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; trans &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;Transaction&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;HostApplicationServices&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.WorkingDatabase.TransactionManager.StartTransaction()&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; ent &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;Entity&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; = trans.GetObject(pr.objectid, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;OpenMode&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.ForRead)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; myTables &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; Autodesk.Gis.Map.ObjectData.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;Tables&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; = Autodesk.Gis.Map.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;HostMapApplicationServices&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.Application.ActiveProject.ODTables&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; myRec &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; Autodesk.Gis.Map.ObjectData.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;Records&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; = myTables.GetObjectRecords(0, ent.ObjectId, Autodesk.Gis.Map.Constants.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;OpenMode&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.OpenForRead, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; myFieldDef &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; Autodesk.Gis.Map.ObjectData.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;FieldDefinitions&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" size="2" face="Consolas"&gt;&lt;FONT color="#008000" size="2" face="Consolas"&gt;&lt;FONT color="#008000" size="2" face="Consolas"&gt;' Dim FieldDef As Autodesk.Gis.Map.ObjectData.FieldDefinition&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;For&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Each&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; rec &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; Autodesk.Gis.Map.ObjectData.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;Record&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;In&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;myRec&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; table &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; Autodesk.Gis.Map.ObjectData.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;&lt;FONT color="#2b91af" size="2" face="Consolas"&gt;Table&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;= myTables(rec.TableName.ToString)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;myFieldDef = table.FieldDefinitions&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; i &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Integer&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;While&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;i &amp;lt; myFieldDef.Count&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;MsgBox(myFieldDef.Item(i).Name)&lt;/P&gt;&lt;P&gt;i = i + 1&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;While&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Next&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;Using&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 19:46:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3189570#M2200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-12T19:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3189574#M2201</link>
      <description>&lt;P&gt;forgot to say 2012.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 19:48:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3189574#M2201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-12T19:48:17Z</dc:date>
    </item>
    <item>
      <title>Betreff: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3189590#M2202</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim i As Integer = 0
While i &amp;lt; myFieldDef.Count
  'you first have to check the datatype of the column
  'then you can do one of these statements (or more like boolean ...)
  debug.print rec(i).Int32Value.ToString
  debug.print rec(i).DoubleValue.ToString
  debug.print rec(i).StrValue
  MsgBox(myFieldDef.Item(i).Name)
  i = i + 1
EndWhile&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;HTH, - alfred -&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 20:01:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3189590#M2202</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2011-10-12T20:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3190370#M2203</link>
      <description>&lt;P&gt;Thank you that was it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2011 12:44:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3190370#M2203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-13T12:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3427567#M2204</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;P&gt;I have gone through&lt;/P&gt;&lt;P&gt;&lt;A title="WiKi Help Map3D 2012" href="http://wikihelp.autodesk.com/AutoCAD_Map_3D/enu/2012/Help/0000-Map_3D_O0/0009-Object_D9/0010-Introduc10" target="_self"&gt;http://wikihelp.autodesk.com/AutoCAD_Map_3D/enu/2012/Help/0000-Map_3D_O0/0009-Object_D9/0010-Introduc10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;for help on extracting ObjData from&amp;nbsp; an object and it is over my head.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created referance to ManagedMapApi.dll&lt;/P&gt;&lt;P&gt;I have &lt;FONT size="1"&gt;Imports &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;Autodesk.Gis.Map.ObjectData.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;now what do I need to do to extract OD from my objects.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;Dim activeProject AsProject.ProjectModel = mapApp.ActiveProject
Dim table As ObjectData.Table = tableList("table1")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 06:18:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3427567#M2204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-24T06:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3427575#M2205</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why not continueing &lt;A target="_self" href="http://wikihelp.autodesk.com/AutoCAD_Map_3D/enu/2012/Help/0000-Map_3D_O0/0009-Object_D9/0013-Getting_13"&gt;&amp;gt;&amp;gt;&amp;gt;here&amp;lt;&amp;lt;&amp;lt;&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thread-title says "Does it have Object Data" ==&amp;gt; is that also your problem? Or do you have another one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 06:26:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3427575#M2205</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-04-24T06:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3427617#M2206</link>
      <description>&lt;P&gt;Hey Alfread...looks like you are burning the midnight oil as well.&lt;/P&gt;&lt;P&gt;anyway when I use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; fieldDefs &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;Autodesk.Gis.Map.ObjectData.FieldDefinition = &lt;U&gt;&lt;STRONG&gt;table&lt;/STRONG&gt;&lt;/U&gt;.FieldDefinitions&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; recs &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;As &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;U&gt;&lt;STRONG&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;ObjectData.Records&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;recs = &lt;STRONG&gt;&lt;U&gt;table&lt;/U&gt;&lt;/STRONG&gt;.GetObjectTableRecords(0, objId, &lt;STRONG&gt;&lt;U&gt;Constants.OpenMode&lt;/U&gt;&lt;/STRONG&gt;.OpenForRead,&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;&lt;FONT color="#0000ff" face="Consolas"&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;from the sample,&lt;/P&gt;&lt;P&gt;I get a bunch of errors.&lt;/P&gt;&lt;P&gt;Error&amp;nbsp;1&amp;nbsp;'table' is ambiguous, imported from the namespaces or types 'Autodesk.Gis.Map.ObjectData, ADOX, Autodesk.AutoCAD.DatabaseServices'.&lt;/P&gt;&lt;P&gt;Error&amp;nbsp;2&amp;nbsp;Type 'ObjectData.Records' is not defined.&lt;/P&gt;&lt;P&gt;Error&amp;nbsp;3&amp;nbsp;'table' is ambiguous, imported from the namespaces or types 'Autodesk.Gis.Map.ObjectData, ADOX, Autodesk.AutoCAD.DatabaseServices'.&lt;/P&gt;&lt;P&gt;Error&amp;nbsp;4&amp;nbsp;'OpenMode' is not a member of 'Microsoft.VisualBasic.Constants'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;besides&amp;nbsp;all I&amp;nbsp;have is a selection set and just one table.&lt;/P&gt;&lt;P&gt;All I want to do is get the object data of an object, and not all the objects in the selection may have object data.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 07:25:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3427617#M2206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-24T07:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3427647#M2207</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; is ambiguous, imported from the namespaces or types&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Autodesk.Gis.Map.ObjectData, &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADOX, &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autodesk.AutoCAD.DatabaseServices'&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;that message means you have 3 namespaces having an item "table", so the compiler does not know how to do with them.&lt;/P&gt;&lt;P&gt;Either you be more careful on top of your code-file with the number of "import"-statements or you write the full namespace-part to these lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And every time you get something like "not a member of" you also can try to use the full namespace for that object (or this enumeration).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 08:02:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3427647#M2207</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-04-24T08:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3428619#M2208</link>
      <description>&lt;P&gt;Thank for your patients, I am still getting my feet wet with vb.net&lt;/P&gt;&lt;P&gt;Bottom line, specifically what do I need to do to get this sample code to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that, I can step through the debugger to see exactly how it works.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 17:08:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3428619#M2208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-24T17:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3428791#M2209</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it just a sample solution you are currently working (so you can upload your sources/projects/solution-files) or can't you upload it?&lt;/P&gt;&lt;P&gt;If first ... would be much easier to describe what to change &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 18:09:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3428791#M2209</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-04-24T18:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3428901#M2210</link>
      <description>&lt;P&gt;I am reading a CAD drawing, creating a MDB file and writing out the data.&lt;/P&gt;&lt;P&gt;However, I will comment out the call to the other routines to simplify it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The section call is TextExtractOBJData and I am passing a selection set.&lt;/P&gt;&lt;P&gt;the dwg file Text.dwg is in the Vb.net project folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for looking into this. Any suggestions or recommendations are welcomed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 18:47:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3428901#M2210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-24T18:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3429147#M2211</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did what I could do, but some objects are unclear to me, e.g. the object "tables" you reference but never declared or assigned anything to it. That's your job.&lt;/P&gt;&lt;P&gt;Therefor (and for the reason I currently have 64bit running) I could not start anything as you have some ADOX-/MDB-access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A tip for the future: use "strict on" in your project settings. It's a little bit more code to write as then late-binding is disabled by default and you have to use some TryCast or CType coding, but the code will run more stable as you see type-mismatches while code-writing and not as exceptions at customer-place. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck, - alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 20:47:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3429147#M2211</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-04-24T20:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3429471#M2212</link>
      <description>&lt;P&gt;What you see is simply a cut and paste of the sample from the Autodesk site.&lt;/P&gt;&lt;P&gt;So I too do not know what the object "Table" refers too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;basically at this point all I want is a routine that I can pass an object and it returns it's object data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for helping&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 02:21:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3429471#M2212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-25T02:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3429675#M2213</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;EUREKA, I filnally got it !!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;I did some more digging in the documentation&amp;nbsp; and pulled all the pieces together.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;just in case some other poor sap like me needs to extract object data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;Here is the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;References are AcDbMgd, AcMgd, managedMapApi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Imports System
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Geometry
Imports Autodesk.AutoCAD.EditorInput

Imports Autodesk.Gis.Map.ObjectData
Imports Autodesk.Gis.Map



        Private Sub TestExtractOBJData(ByRef acSSet As SelectionSet)
            Dim doc As Document = Application.DocumentManager.MdiActiveDocument()
            Dim db As Database = doc.Database
            Dim ed As Editor = doc.Editor

            Dim mapApp As MapApplication
            mapApp = HostMapApplicationServices.Application
            Dim activeProject As Autodesk.Gis.Map.Project.ProjectModel = mapapp.ActiveProject
            Dim tableList As Autodesk.Gis.Map.ObjectData.Tables = activeProject.ODTables
            'get specific table = "MyTable"
            Dim table As ObjectData.Table = tableList("MyTable")

            'Dim acEditor As Editor = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor

            'start a transaction
            Dim tm As Autodesk.AutoCAD.DatabaseServices.TransactionManager = db.TransactionManager
            Dim myT As Transaction = tm.StartTransaction()

            Using myT
                Try
                    'loop through object in the selection set
                    For Each sobj As SelectedObject In acSSet
                        Dim ent As Entity = myT.GetObject(sobj.ObjectId, OpenMode.ForRead)
                        If TypeOf ent Is DBText Then
                            Dim tt As DBText = DirectCast(ent, DBText)


                            Dim fieldDefs As ObjectData.FieldDefinitions = table.FieldDefinitions
                            Dim recs As ObjectData.Records
                            recs = table.GetObjectTableRecords(0, sobj.ObjectId, Constants.OpenMode.OpenForRead, True)

                            'check if there are records for the selected table
                            If (recs.Count() &amp;gt; 0) Then
                                For Each rec As ObjectData.Record In recs
                                    'get object data for each record in table
                                    For i As Integer = 0 To rec.Count() - 1
                                        Dim val As Autodesk.Gis.Map.Utilities.MapValue
                                        val = rec(i)
                                        Dim fieldDef As ObjectData.FieldDefinition
                                        fieldDef = fieldDefs(i)
                                        ed.WriteMessage(vbNewLine + fieldDef.Name + ": ")
                                        Select Case val.Type
                                            Case Constants.DataType.Character
                                                ed.WriteMessage(val.StrValue)
                                            Case Constants.DataType.Integer
                                                ed.WriteMessage(val.Int32Value.ToString)
                                            Case Constants.DataType.Point
                                                ed.WriteMessage("point")
                                            Case Constants.DataType.Real
                                                ed.WriteMessage(val.DoubleValue.ToString)
                                            Case Else
                                                ed.WriteMessage("undefined")
                                        End Select
                                    Next
                                Next
                            End If
                            recs.Dispose()

                        End If

                    Next
                    myT.Commit()
                Catch ex As Autodesk.AutoCAD.Runtime.Exception
                    ed.WriteMessage(vbLf &amp;amp; "{0}" &amp;amp; vbLf &amp;amp; "{1}", ex.Message, ex.StackTrace)
                End Try
            End Using


        End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Big thanks to alfred for spending time and patients with me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 07:25:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3429675#M2213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-25T07:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3431023#M2214</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; I did some more digging in the documentation and pulled all the pieces together.&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;That's how development works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Great you could solve it and that you published it here for others (not all do that)!&lt;BR /&gt;&lt;BR /&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 18:58:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3431023#M2214</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-04-25T18:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Does it have Object Data? vb.net</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3741626#M2215</link>
      <description>&lt;P&gt;OK great. Now that it finds the Object&amp;nbsp;Data I want to highlight the drawing objects (perhaps by changing the object's color) that have an empty field for their Object Data&amp;nbsp; record (i.e. the data was not entered and the field value and is now blank or empty).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once those objects are identified on the drawing (perhaps by turning their color to RED) , the Object Data for these drawing objects can then be altered to contain a non-blank entry.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 14:51:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/does-it-have-object-data-vb-net/m-p/3741626#M2215</guid>
      <dc:creator>roskirko</dc:creator>
      <dc:date>2012-12-21T14:51:24Z</dc:date>
    </item>
  </channel>
</rss>

