<?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 : How to add Xdata to new create object? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6363738#M35861</link>
    <description>Poyline2d polyline;&lt;BR /&gt;foreach (ObjectId id in Polyline)&lt;BR /&gt;{&lt;BR /&gt;DBObject obj = id.GetObject(OpenMode.ForRead);&lt;BR /&gt;obj .Xdata=Values;&lt;BR /&gt;}&lt;BR /&gt;Like up, i　can add xdata to point in polyline2d and polyline3d ,but my problem is can not add xdata to polyline. becase foreach (ObjectId id in Polyline) doesn't work when polyline is Polyline.</description>
    <pubDate>Fri, 03 Jun 2016 07:29:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-06-03T07:29:51Z</dc:date>
    <item>
      <title>How to add Xdata to new create object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6361165#M35857</link>
      <description>&lt;P&gt;hi ,everyone . I create a new polyline and i want to add Xdata to polyline every point. how to do it?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 02:16:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6361165#M35857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-02T02:16:30Z</dc:date>
    </item>
    <item>
      <title>Re : How to add Xdata to new create object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6361323#M35858</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This topic from the .NET Developer's Guide may help:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/ACD/2017/FRA/?guid=GUID-92D663FA-0452-44F4-BDAC-0EEF0AF3BD88" target="_blank"&gt;http://help.autodesk.com/view/ACD/2017/FRA/?guid=GUID-92D663FA-0452-44F4-BDAC-0EEF0AF3BD88&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 05:22:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6361323#M35858</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2016-06-02T05:22:54Z</dc:date>
    </item>
    <item>
      <title>Re : How to add Xdata to new create object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6363620#M35859</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I can use these to add xdata to each point in polyline2d and polyline3d because the point is vertex2d or vertex3d:&lt;BR /&gt;Polyline3d Polylin;&lt;BR /&gt;foreach (ObjectId id in Polyline)&lt;BR /&gt;{&lt;BR /&gt;id.Xdata=Values;&lt;BR /&gt;}&lt;BR /&gt;but how to do it in polyline; when i use : foreach (ObjectId id in Polyline) it doesn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 05:41:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6363620#M35859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-03T05:41:41Z</dc:date>
    </item>
    <item>
      <title>Re : How to add Xdata to new create object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6363719#M35860</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you're missing the AutoCAD .NET API basics.&lt;/P&gt;
&lt;P&gt;You cannot add xdata to an ObjectId, you can only add xdata to DBObject (the base class for all graphic and non graphic database resident objects).&lt;/P&gt;
&lt;P&gt;An ObjectId is an unique identifier which can be use to open the object itself (see &lt;A href="http://help.autodesk.com/view/ACD/2017/FRA/?guid=GUID-8D56532D-2B17-48D1-8C81-B4AD89603A1C" target="_blank"&gt;this topic&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming you create a new polyline (as said in the OP), for polyline 2d or 3d you have to create each vertex object.&lt;/P&gt;
&lt;P&gt;You can add the xdata directly to the newly created vertex at this time.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 07:25:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6363719#M35860</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2016-06-03T07:25:09Z</dc:date>
    </item>
    <item>
      <title>Re : How to add Xdata to new create object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6363738#M35861</link>
      <description>Poyline2d polyline;&lt;BR /&gt;foreach (ObjectId id in Polyline)&lt;BR /&gt;{&lt;BR /&gt;DBObject obj = id.GetObject(OpenMode.ForRead);&lt;BR /&gt;obj .Xdata=Values;&lt;BR /&gt;}&lt;BR /&gt;Like up, i　can add xdata to point in polyline2d and polyline3d ,but my problem is can not add xdata to polyline. becase foreach (ObjectId id in Polyline) doesn't work when polyline is Polyline.</description>
      <pubDate>Fri, 03 Jun 2016 07:29:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6363738#M35861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-03T07:29:51Z</dc:date>
    </item>
    <item>
      <title>Re : How to add Xdata to new create object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6363787#M35862</link>
      <description>&lt;P&gt;Polyline (AKA Light Weigth Polyline, optimized polyline, LWPOLYLINE) is not a '&lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-AutoLISP/files/GUID-0A3004D1-1BF6-468A-9F69-4D0BA88857F2-htm.html" target="_blank"&gt;complex entity&lt;/A&gt;' (i.e. entities containing subentities).&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 08:18:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6363787#M35862</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2016-06-03T08:18:45Z</dc:date>
    </item>
    <item>
      <title>Re : How to add Xdata to new create object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6364080#M35863</link>
      <description>you mean it is impossible to add xdata to point in polyline??</description>
      <pubDate>Fri, 03 Jun 2016 11:40:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6364080#M35863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-03T11:40:29Z</dc:date>
    </item>
    <item>
      <title>Re : How to add Xdata to new create object?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6364596#M35864</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;you mean it is impossible to add xdata to point in polyline??&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes. You can add xdata to whole Polyline, but can not add xdata to its vertexes because of vertexes are not objects/entities.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 15:00:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-add-xdata-to-new-create-object/m-p/6364596#M35864</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2016-06-03T15:00:50Z</dc:date>
    </item>
  </channel>
</rss>

