<?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 Re: Object data to Aeccpoints in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/object-data-to-aeccpoints/m-p/3569788#M54071</link>
    <description>&lt;P&gt;I solved this by importing the points first and then running through the csv again to apply the object data.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Aug 2012 13:03:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-08T13:03:08Z</dc:date>
    <item>
      <title>Object data to Aeccpoints</title>
      <link>https://forums.autodesk.com/t5/net-forum/object-data-to-aeccpoints/m-p/3567578#M54070</link>
      <description>&lt;P&gt;I want to be able to attach object data to a cogopoint, becuase we are having problems with the attribute data disappearing from the point. Here is what I have so far but getting a&amp;nbsp;Autodesk.Gis.Map.MapException error thrown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oAeccApp = oAcadApp.GetInterfaceObject("AeccXUiLand.AeccApplication.9.0")&lt;BR /&gt;oAeccDoc = oAeccApp.ActiveDocument&lt;BR /&gt;oAeccDB = oAeccApp.ActiveDocument.Database&lt;/P&gt;&lt;P&gt;Dim oPoints As Autodesk.AECC.Interop.Land.AeccPoints&lt;BR /&gt;Dim oPoint As Autodesk.AECC.Interop.Land.AeccPoint&lt;BR /&gt;oPoints = oAeccDB.Points&lt;/P&gt;&lt;P&gt;Dim pointLocation As Point3d = Nothing&lt;/P&gt;&lt;P&gt;Dim location(0 To 2) As Double&lt;BR /&gt;location(0) = x&lt;BR /&gt;location(1) = y&lt;BR /&gt;location(2) = z&lt;BR /&gt;oPoint = oAeccDoc.Points.Add(CType(location, Object))&lt;BR /&gt;oPoint.RawDescription = myPoints(4)&lt;/P&gt;&lt;P&gt;oPoint.Number = pid&lt;BR /&gt;Dim id As ObjectId = PointEntity.FromAcadObject(oPoint)&lt;BR /&gt;Dim pt As PointEntity = acTrans.GetObject(id, Autodesk.AutoCAD.DatabaseServices.OpenMode.ForWrite, False)&lt;BR /&gt;Dim odtable As ObjectData.Table = tables(tablename)&lt;/P&gt;&lt;P&gt;' Create and initialize an record&lt;BR /&gt;Dim tblRcd As Record = Record.Create()&lt;BR /&gt;odtable.InitRecord(tblRcd)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dim val As MapValue = tblRcd(0) ' String type&lt;/P&gt;&lt;P&gt;val.Assign(myPoints(0).Trim)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For cnt = 1 To myPoints.GetUpperBound(0) - 3&lt;/P&gt;&lt;P&gt;val = tblRcd(cnt)&lt;BR /&gt;val.Assign(myPoints(cnt + 3))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;val = tblRcd(12)&lt;BR /&gt;val.Assign(Path.GetFileName(CSV_FileName))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;table.AddRecord(tblRcd, id) &amp;nbsp;''Autodesk.Gis.Map.MapException is thrown here&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2012 23:53:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/object-data-to-aeccpoints/m-p/3567578#M54070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-06T23:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Object data to Aeccpoints</title>
      <link>https://forums.autodesk.com/t5/net-forum/object-data-to-aeccpoints/m-p/3569788#M54071</link>
      <description>&lt;P&gt;I solved this by importing the points first and then running through the csv again to apply the object data.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 13:03:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/object-data-to-aeccpoints/m-p/3569788#M54071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-08T13:03:08Z</dc:date>
    </item>
  </channel>
</rss>

