<?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 Know which AttributeDefinition does an AttributeReference relates to? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/know-which-attributedefinition-does-an-attributereference/m-p/6796502#M33208</link>
    <description>&lt;P&gt;I know i'ts an odd question but here's my problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am making this application that automates the filling of Attributed Blocks (Drawing Titles) within&amp;nbsp;several layouts in the same drawing.&lt;/P&gt;&lt;P&gt;The thing is that I'm having trouble to recognize each AttributeReference in a unique way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Blocks can have several attributes with the same tag so that property won't do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- The user can mess up the entire BlockReference AttributeCollection via the command BATTMAN, what makes the ORDER not the best option neither;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- I thought about deleting and recreating every AttributeReference but some changes made by the user such as position, textstyle, rotation, etc will be lost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the few properties a AttributeReference have:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/309870iB118EF80A2CE0BDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here's a glimpse on&amp;nbsp;how my app for editing these Attributes looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture2.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/309873i3B4CA381785BF2A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;As you can see in the example above the Title block has 4 Attributes with the same tag - "DASD" (ignore the brackets). So how can I be sure of which is which when applying user changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Should I use Xdata?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 20:10:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-10T20:10:07Z</dc:date>
    <item>
      <title>Know which AttributeDefinition does an AttributeReference relates to?</title>
      <link>https://forums.autodesk.com/t5/net-forum/know-which-attributedefinition-does-an-attributereference/m-p/6796502#M33208</link>
      <description>&lt;P&gt;I know i'ts an odd question but here's my problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am making this application that automates the filling of Attributed Blocks (Drawing Titles) within&amp;nbsp;several layouts in the same drawing.&lt;/P&gt;&lt;P&gt;The thing is that I'm having trouble to recognize each AttributeReference in a unique way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Blocks can have several attributes with the same tag so that property won't do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- The user can mess up the entire BlockReference AttributeCollection via the command BATTMAN, what makes the ORDER not the best option neither;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- I thought about deleting and recreating every AttributeReference but some changes made by the user such as position, textstyle, rotation, etc will be lost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the few properties a AttributeReference have:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/309870iB118EF80A2CE0BDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here's a glimpse on&amp;nbsp;how my app for editing these Attributes looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture2.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/309873i3B4CA381785BF2A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;As you can see in the example above the Title block has 4 Attributes with the same tag - "DASD" (ignore the brackets). So how can I be sure of which is which when applying user changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Should I use Xdata?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 20:10:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/know-which-attributedefinition-does-an-attributereference/m-p/6796502#M33208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-10T20:10:07Z</dc:date>
    </item>
    <item>
      <title>Re : Know which AttributeDefinition does an AttributeReference relates to?</title>
      <link>https://forums.autodesk.com/t5/net-forum/know-which-attributedefinition-does-an-attributereference/m-p/6796676#M33209</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;chavesgalinari a écrit&amp;nbsp;:&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;&amp;nbsp;- Blocks can have several attributes with the same tag so that property won't do;
&lt;P&gt;&amp;nbsp;- The user can mess up the entire BlockReference AttributeCollection via the command BATTMAN, what makes the ORDER not the best option neither;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If so, and if attribute positions are locked, perhaps you can use the attributes positions (attribute definition position transformed by block reference transform).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I never understood why AutoCAD allows attributes with the same tag. &lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;It is a heresy&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 21:00:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/know-which-attributedefinition-does-an-attributereference/m-p/6796676#M33209</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2017-01-10T21:00:54Z</dc:date>
    </item>
    <item>
      <title>Re : Know which AttributeDefinition does an AttributeReference relates to?</title>
      <link>https://forums.autodesk.com/t5/net-forum/know-which-attributedefinition-does-an-attributereference/m-p/6797557#M33210</link>
      <description>&lt;P&gt;This is a good question... In fact there are no real link between an attribute reference and an attribute definition. The definition is only a template for creating the reference. After that, the attribute reference can live its own life (its&amp;nbsp;attributes can change). The Tag property is only there to handle exploding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case (title blocks), attribute position should be locked (I think users will have no interest in moving the block's attributes) and use, like &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;suggested, the position to match reference to definition.&amp;nbsp;If there are a fixed set of title block, you can also display in your column header the label which is near the attribute. And there is also the prompt which can be different.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 08:56:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/know-which-attributedefinition-does-an-attributereference/m-p/6797557#M33210</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2017-01-11T08:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Know which AttributeDefinition does an AttributeReference relates to?</title>
      <link>https://forums.autodesk.com/t5/net-forum/know-which-attributedefinition-does-an-attributereference/m-p/6798222#M33211</link>
      <description>&lt;P&gt;Thanks _gile and&amp;nbsp;&lt;SPAN&gt;FRFR1426. I'll follow your suggestions and go with the Attribute position.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 14:06:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/know-which-attributedefinition-does-an-attributereference/m-p/6798222#M33211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-11T14:06:23Z</dc:date>
    </item>
  </channel>
</rss>

