<?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: Get information into blockreference by using c.# in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/get-information-into-blockreference-by-using-c/m-p/7892865#M26518</link>
    <description>&lt;P&gt;In the image you posted, the values you circled in red don't appear to be block attributes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you tell more about these values, and where they come from?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2976224"&gt;@anhtrung&lt;/a&gt;wrote:&lt;BR /&gt;&lt;P&gt;Hi anybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question that is how to do get information into blockreference. &amp;nbsp;Can see attached image below and have a markup red color on properties of it. Help me please.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using C.#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&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-inline" image-alt="Capture.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/481444i30E00E0CE5C0A8F4/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;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Mar 2018 03:36:22 GMT</pubDate>
    <dc:creator>ActivistInvestor</dc:creator>
    <dc:date>2018-03-29T03:36:22Z</dc:date>
    <item>
      <title>Get information into blockreference by using c.#</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-information-into-blockreference-by-using-c/m-p/7890017#M26516</link>
      <description>&lt;P&gt;Hi anybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question that is how to do get information into blockreference. &amp;nbsp;Can see attached image below and have a markup red color on properties of it. Help me please.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using C.#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&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-inline" image-alt="Capture.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/481444i30E00E0CE5C0A8F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 08:20:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-information-into-blockreference-by-using-c/m-p/7890017#M26516</guid>
      <dc:creator>anhtrung</dc:creator>
      <dc:date>2018-03-28T08:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get information into blockreference by using c.#</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-information-into-blockreference-by-using-c/m-p/7890059#M26517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are called attribute references (&lt;A href="http://help.autodesk.com/view/OARX/2018/ENU/?guid=OREFNET-Autodesk_AutoCAD_DatabaseServices_AttributeReference" target="_blank"&gt;AttributeReference&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;They are contained in the AttributeCollection of the block reference.&lt;/P&gt;
&lt;P&gt;You can use some function like the following to get the attribute values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dictionary&amp;lt;string, string&amp;gt; GetAttributeValues(BlockReference br, Transaction tr) =&amp;gt;
    br.AttributeCollection
        .Cast&amp;lt;ObjectId&amp;gt;()
        .Select(id =&amp;gt; (AttributeReference)tr.GetObject(id, OpenMode.ForRead))
        .ToDictionary(att =&amp;gt; att.Tag, att =&amp;gt; att.TextString)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 09:05:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-information-into-blockreference-by-using-c/m-p/7890059#M26517</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-03-28T09:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get information into blockreference by using c.#</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-information-into-blockreference-by-using-c/m-p/7892865#M26518</link>
      <description>&lt;P&gt;In the image you posted, the values you circled in red don't appear to be block attributes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you tell more about these values, and where they come from?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2976224"&gt;@anhtrung&lt;/a&gt;wrote:&lt;BR /&gt;&lt;P&gt;Hi anybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question that is how to do get information into blockreference. &amp;nbsp;Can see attached image below and have a markup red color on properties of it. Help me please.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using C.#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&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-inline" image-alt="Capture.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/481444i30E00E0CE5C0A8F4/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;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 03:36:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-information-into-blockreference-by-using-c/m-p/7892865#M26518</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2018-03-29T03:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get information into blockreference by using c.#</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-information-into-blockreference-by-using-c/m-p/7893225#M26519</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;Thanks, that is the needed.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 07:53:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-information-into-blockreference-by-using-c/m-p/7893225#M26519</guid>
      <dc:creator>anhtrung</dc:creator>
      <dc:date>2018-03-29T07:53:50Z</dc:date>
    </item>
  </channel>
</rss>

