<?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: DxfCode.ArbitraryHandle vs DxfCode.Handle in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/dxfcode-arbitraryhandle-vs-dxfcode-handle/m-p/13144594#M1997</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13541427"&gt;@kazfukuoka&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;For Xrecord, what is the difference between&lt;BR /&gt;DxfCode.ArbitraryHandle and DxfCode.Handle?&lt;/P&gt;&lt;P&gt;For storing a Handle, which type is right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also for storing ObjectId, which type should I use?&lt;BR /&gt;DxfCode.HardPointerId or DxfCode.SoftPointerId?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I wouldn't recommend storing handles in Xrecords, but ArbitraryHandle is probably a handle that is never translated when the object containing the Xrecord is cloned (this is speculation as I've never seen docs that describe what it is exactly).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as what DxfCode you should use to store ObjectIds (which is the preferred way to store references to other objects), it depends on what objects are being referenced and the relationship they have with the object that owns the referencing Xrecord.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feel free to elaborate.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2024 23:30:36 GMT</pubDate>
    <dc:creator>ActivistInvestor</dc:creator>
    <dc:date>2024-11-11T23:30:36Z</dc:date>
    <item>
      <title>DxfCode.ArbitraryHandle vs DxfCode.Handle</title>
      <link>https://forums.autodesk.com/t5/net-forum/dxfcode-arbitraryhandle-vs-dxfcode-handle/m-p/13144517#M1996</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;For Xrecord, what is the difference between&lt;BR /&gt;DxfCode.ArbitraryHandle and DxfCode.Handle?&lt;/P&gt;&lt;P&gt;For storing a Handle, which type is right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;  var rb = new ResultBuffer(
    new TypedValue((int)DxfCode.ArbitraryHandle, id.Handle);
    new TypedValue((int)DxfCode.Handle, id.Handle);
  Xrecord xrec = new Xrecord();
  xrec.Data = rb;
  xdic.SetAt(APP, xrec);
  tr.AddNewlyCreatedDBObject(xrec, true);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also for storing ObjectId, which type should I use?&lt;BR /&gt;DxfCode.HardPointerId or DxfCode.SoftPointerId?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 22:48:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dxfcode-arbitraryhandle-vs-dxfcode-handle/m-p/13144517#M1996</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2024-11-11T22:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: DxfCode.ArbitraryHandle vs DxfCode.Handle</title>
      <link>https://forums.autodesk.com/t5/net-forum/dxfcode-arbitraryhandle-vs-dxfcode-handle/m-p/13144594#M1997</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13541427"&gt;@kazfukuoka&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;For Xrecord, what is the difference between&lt;BR /&gt;DxfCode.ArbitraryHandle and DxfCode.Handle?&lt;/P&gt;&lt;P&gt;For storing a Handle, which type is right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also for storing ObjectId, which type should I use?&lt;BR /&gt;DxfCode.HardPointerId or DxfCode.SoftPointerId?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I wouldn't recommend storing handles in Xrecords, but ArbitraryHandle is probably a handle that is never translated when the object containing the Xrecord is cloned (this is speculation as I've never seen docs that describe what it is exactly).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as what DxfCode you should use to store ObjectIds (which is the preferred way to store references to other objects), it depends on what objects are being referenced and the relationship they have with the object that owns the referencing Xrecord.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feel free to elaborate.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 23:30:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dxfcode-arbitraryhandle-vs-dxfcode-handle/m-p/13144594#M1997</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-11-11T23:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: DxfCode.ArbitraryHandle vs DxfCode.Handle</title>
      <link>https://forums.autodesk.com/t5/net-forum/dxfcode-arbitraryhandle-vs-dxfcode-handle/m-p/13144691#M1998</link>
      <description>&lt;P&gt;Thank you for the explanation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There seems to be a lot of things I do not know about this topic.&lt;BR /&gt;Where can I study those things?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 00:56:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dxfcode-arbitraryhandle-vs-dxfcode-handle/m-p/13144691#M1998</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2024-11-12T00:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: DxfCode.ArbitraryHandle vs DxfCode.Handle</title>
      <link>https://forums.autodesk.com/t5/net-forum/dxfcode-arbitraryhandle-vs-dxfcode-handle/m-p/13146828#M1999</link>
      <description>&lt;P&gt;Probably not much has been written for .NET yet.&lt;BR /&gt;Need to dig into ObjectARX to find any info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=OARX-RefGuide-AcDbHardPointerId" target="_blank" rel="noopener"&gt;AcDbHardPointerId&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=OARX-RefGuide-AcDbSoftPointerId" target="_blank" rel="noopener"&gt;AcDbSoftPointerId&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 21:39:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dxfcode-arbitraryhandle-vs-dxfcode-handle/m-p/13146828#M1999</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2024-11-12T21:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: DxfCode.ArbitraryHandle vs DxfCode.Handle</title>
      <link>https://forums.autodesk.com/t5/net-forum/dxfcode-arbitraryhandle-vs-dxfcode-handle/m-p/13147840#M2000</link>
      <description>&lt;P&gt;Sorry, I tried to reply to your previous post but I couldn't because of a problem with this discussion group software. Yes, the native ObjectARX docs are the most complete source of information on this.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 11:24:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dxfcode-arbitraryhandle-vs-dxfcode-handle/m-p/13147840#M2000</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-11-13T11:24:14Z</dc:date>
    </item>
  </channel>
</rss>

