<?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: Linking / Associating Standard AutoCAD Entities (.NET) in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14004591#M86522</link>
    <description>&lt;P&gt;Consider using Overrule(s):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://keanw.com/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-1.html" target="_blank"&gt;https://keanw.com/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://keanw.com/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-1-1.html" target="_blank"&gt;https://keanw.com/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-1-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://keanw.com/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-3.html" target="_blank"&gt;https://keanw.com/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-3.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Feb 2026 16:50:41 GMT</pubDate>
    <dc:creator>BlackBox_</dc:creator>
    <dc:date>2026-02-04T16:50:41Z</dc:date>
    <item>
      <title>Linking / Associating Standard AutoCAD Entities (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14004510#M86519</link>
      <description>&lt;P&gt;I’m looking for some coding feedback on building an internal reusable AutoCAD .NET library that allows standard AutoCAD entities (i.e. blocks, circles, polylines, ellipses, solids, etc.) to remain logically associated with other geometry (such as curves or regions (closed polylines)) without having to use custom entities. The idea is to store persistent relationship data in the drawing and recompute object placement when either the reference geometry or the dependent object changes (so, it stays even if drawing is closed/reopened). User edits should be interpreted as parameter changes or overrides rather than breaking the association. I’m especially interested in whether this “relationship and recompute” approach is a good approach and possible limitations.&amp;nbsp; I'm more so looking for what would be considered the best practice to accomplish something like this using the .NET api.&lt;BR /&gt;&lt;BR /&gt;These are some super basic examples of what I was thinking:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lawrence_Viaud_0-1770221328727.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1616129i6C1BD644D742540B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lawrence_Viaud_0-1770221328727.png" alt="Lawrence_Viaud_0-1770221328727.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lawrence_Viaud_1-1770221350623.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1616130i70EB986F5CC02E66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lawrence_Viaud_1-1770221350623.png" alt="Lawrence_Viaud_1-1770221350623.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 16:13:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14004510#M86519</guid>
      <dc:creator>Lawrence_Viaud</dc:creator>
      <dc:date>2026-02-04T16:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Linking / Associating Standard AutoCAD Entities (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14004527#M86520</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Based on your description and the photos, I would say: blocks (or groups).&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 16:23:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14004527#M86520</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2026-02-04T16:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Linking / Associating Standard AutoCAD Entities (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14004555#M86521</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;Even though I have pretty simple example shown the goal is ultimately to create a larger program that is able to place what will most likely be blocks or Multiview blocks along an alignment. But I want the positions/stations of the objects to persist even if the alignment changes or moves. Also, want this behavior to remain even if cad is closed. So, if I have "alignment a" and "objects b and c" are linked to "alignment a". I would like "alignment a" to be aware of this linking and any changes made to "alignment a" will affect the positions of "objects b and c". Is there a way in the api to establish a relationship like this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also, I say alignment, but it can be used pretty interchangeably with a regular AutoCAD line/polyline.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 16:34:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14004555#M86521</guid>
      <dc:creator>Lawrence_Viaud</dc:creator>
      <dc:date>2026-02-04T16:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Linking / Associating Standard AutoCAD Entities (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14004591#M86522</link>
      <description>&lt;P&gt;Consider using Overrule(s):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://keanw.com/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-1.html" target="_blank"&gt;https://keanw.com/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://keanw.com/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-1-1.html" target="_blank"&gt;https://keanw.com/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-1-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://keanw.com/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-3.html" target="_blank"&gt;https://keanw.com/2009/08/gluing-a-point-to-an-autocad-curve-using-overrules-from-net-part-3.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 16:50:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14004591#M86522</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2026-02-04T16:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Linking / Associating Standard AutoCAD Entities (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14004792#M86523</link>
      <description>&lt;P&gt;Thanks, this should be what I was looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 18:49:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14004792#M86523</guid>
      <dc:creator>Lawrence_Viaud</dc:creator>
      <dc:date>2026-02-04T18:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Linking / Associating Standard AutoCAD Entities (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14005187#M86524</link>
      <description>&lt;P&gt;If you want the most-robust way to accomplish your objectectives, that would be by using the associative framework. It's purpose is to address the precise type of problem you want to solve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To understand what it does and how it works, see &lt;A href="https://gemini.google.com/share/c3868f803755" target="_blank" rel="noopener"&gt;this overview&lt;/A&gt; (Gemini).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find example .NET code by looking through the results of &lt;A href="https://forums.autodesk.com/t5/forums/searchpage/tab/message/q-p/YWR2YW5jZWQ6ZmFsc2U6OmFsbG93X3B1bmN0dWF0aW9uOmZhbHNlOjpmaWx0ZXI6bG9jYXRpb246OmxvY2F0aW9uOmZvcnVtLWJvYXJkJTNBbmV0LWZvcnVtLWVuOjpxOkFzc29jQWN0aW9u?q=AssocActionBody&amp;amp;nospellcheck=true" target="_blank" rel="noopener"&gt;this discussion group search&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Caveat Emptor: The associative framework and API is not for the faint-hearted. It's one of the most complicated aspects of both native and managed AutoCAD development, and requires a fairly good understanding of AutoCAD and its database.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2026 12:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14005187#M86524</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2026-02-05T12:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Linking / Associating Standard AutoCAD Entities (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14012919#M86538</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4476837"&gt;@ActivistInvestor&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very interesting, I had not seen that. I would have to soak that in for a while, looking through examples.&lt;/P&gt;&lt;P&gt;For OP, this subject is something I have dealt with a lot, with the goal being no custom entities.&lt;/P&gt;&lt;P&gt;You basically track entities by handles, but those change easily (wblock...) so then you want some way to rediscover the group.&lt;/P&gt;&lt;P&gt;You can tag things by xdata to help, like a random number that could possibly repeat, but unlikely to mess up that rediscover process.&lt;/P&gt;&lt;P&gt;TT likely laughs at this, its herding cats, I know.&lt;/P&gt;&lt;P&gt;It can be done on limited basis, and I bet chatgpt could get you pretty far, as its good at writing what I call "house keeping" subroutines.&lt;/P&gt;&lt;P&gt;Depends how complex you want to get.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 22:36:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14012919#M86538</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2026-02-10T22:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Linking / Associating Standard AutoCAD Entities (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14032137#M86600</link>
      <description>&lt;P&gt;Can't believe I'm just now seeing this. But thank you for the insight. I'm not an expert on the AutoCAD API by any means, but it is interesting to see that something I was already thinking about already exists. I'm sort of a cheat when it comes to the API. I've been using &lt;A href="https://github.com/luanshixia/AutoCADCodePack" target="_blank" rel="noopener"&gt;AutoCAD Codepack&lt;/A&gt; for all of the projects I work on, as it is significantly easier for me. So like James Maeding&amp;nbsp;was saying, I may need AI to get me started on this. I'm wondering how these two systems, between overrule and the associative framework, work. I continued the thread you gave me on Gemini, and it looks like the associative framework would be used first to establish the permanent linking of the objects, and the overrules would control the display at runtime, ensuring if object A is moved, then object B moves with it (associative framework), and&amp;nbsp;if someone tries to move object B by itself, it either moves object A or puts it back in the correct associative spot (overrule). Super cool!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 17:06:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14032137#M86600</guid>
      <dc:creator>Lawrence_Viaud</dc:creator>
      <dc:date>2026-02-25T17:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Linking / Associating Standard AutoCAD Entities (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14032139#M86601</link>
      <description>&lt;P&gt;Thank you for the input&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 17:07:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14032139#M86601</guid>
      <dc:creator>Lawrence_Viaud</dc:creator>
      <dc:date>2026-02-25T17:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Linking / Associating Standard AutoCAD Entities (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14033137#M86604</link>
      <description>&lt;P&gt;No, overrules are really not required for the kind of associativity that you envision. The associative framework takes care of everything including the&amp;nbsp;&lt;SPAN&gt;persistent linking, and calling the code that you provide to update one or more dependent objects when the object they are dependent on is modified. It also handles cyclical references so that when a modified&amp;nbsp; object triggers an action, that object cannot be modified again as part of the reaction.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 04:38:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/linking-associating-standard-autocad-entities-net/m-p/14033137#M86604</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2026-02-26T04:38:33Z</dc:date>
    </item>
  </channel>
</rss>

