<?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 Reading Attributes from event in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/reading-attributes-from-event/m-p/3250842#M58074</link>
    <description>&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;Here is some code:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Private &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt; ObjectModified(&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt; sender &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Object&lt;/FONT&gt;&lt;/FONT&gt;, &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt; e &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As &lt;/FONT&gt;&lt;/FONT&gt;Autodesk.AutoCAD.DatabaseServices.ObjectEventArgs)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;With&lt;/FONT&gt;&lt;/FONT&gt; e.DBObject&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp; If&lt;/FONT&gt;&lt;/FONT&gt; .IsWriteEnabled &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Then &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Exit &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp; If&lt;/FONT&gt;&lt;/FONT&gt; .Id.ObjectClass.Name = &lt;FONT color="#a31515"&gt;&lt;FONT color="#a31515"&gt;"AcDbAttribute"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?????&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp; End &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;End &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;End &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;Trying to read the attribute's tag and text.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2" face="arial,helvetica,sans-serif"&gt;Can't work out what goes in ????&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2" face="arial,helvetica,sans-serif"&gt;or do I need to get the Blockreference and work through each attribute?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2" face="arial,helvetica,sans-serif"&gt;I promise I will start repaying your help soon.﻿&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2011 22:02:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-12-05T22:02:44Z</dc:date>
    <item>
      <title>Reading Attributes from event</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-attributes-from-event/m-p/3250842#M58074</link>
      <description>&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;Here is some code:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Private &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt; ObjectModified(&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt; sender &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Object&lt;/FONT&gt;&lt;/FONT&gt;, &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt; e &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As &lt;/FONT&gt;&lt;/FONT&gt;Autodesk.AutoCAD.DatabaseServices.ObjectEventArgs)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;With&lt;/FONT&gt;&lt;/FONT&gt; e.DBObject&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp; If&lt;/FONT&gt;&lt;/FONT&gt; .IsWriteEnabled &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Then &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Exit &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp; If&lt;/FONT&gt;&lt;/FONT&gt; .Id.ObjectClass.Name = &lt;FONT color="#a31515"&gt;&lt;FONT color="#a31515"&gt;"AcDbAttribute"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?????&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp; End &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;End &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;End &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;Trying to read the attribute's tag and text.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2" face="arial,helvetica,sans-serif"&gt;Can't work out what goes in ????&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2" face="arial,helvetica,sans-serif"&gt;or do I need to get the Blockreference and work through each attribute?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2" face="arial,helvetica,sans-serif"&gt;I promise I will start repaying your help soon.﻿&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 22:02:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-attributes-from-event/m-p/3250842#M58074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-05T22:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Attributes from event</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-attributes-from-event/m-p/3250860#M58075</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did you search for this?&lt;/P&gt;&lt;PRE&gt;With e.DBObject
  If .IsWriteEnabled Then Exit Sub
  If .Id.ObjectClass.Name = "AcDbAttribute" Then
    Dim tAttRef As AttributeReference = CType(e.DBObject, AttributeReference)
    Debug.Print("TAG: " &amp;amp; tAttRef.Tag)
    Debug.Print("TXT: " &amp;amp; tAttRef.TextString)
    Debug.Print("ObjID BlockReference: " &amp;amp; tAttRef.OwnerId.ToString)
  End If
End With&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 22:23:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-attributes-from-event/m-p/3250860#M58075</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2011-12-05T22:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Attributes from event</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-attributes-from-event/m-p/3250908#M58076</link>
      <description>&lt;P&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;Obvious really. But thanks anyway. It would have taken me a week to get there.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 23:05:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-attributes-from-event/m-p/3250908#M58076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-05T23:05:16Z</dc:date>
    </item>
  </channel>
</rss>

