<?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 Attribute Extration in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/attribute-extration/m-p/1174830#M48596</link>
    <description>As I make to extract a listing of blocks with an attribute I specify of a drawing from VBA?

&lt;BR /&gt;
Message was edited by: RicardoCuan</description>
    <pubDate>Wed, 03 Nov 2004 20:40:22 GMT</pubDate>
    <dc:creator>sistemasducon</dc:creator>
    <dc:date>2004-11-03T20:40:22Z</dc:date>
    <item>
      <title>Attribute Extration</title>
      <link>https://forums.autodesk.com/t5/vba-forum/attribute-extration/m-p/1174830#M48596</link>
      <description>As I make to extract a listing of blocks with an attribute I specify of a drawing from VBA?

&lt;BR /&gt;
Message was edited by: RicardoCuan</description>
      <pubDate>Wed, 03 Nov 2004 20:40:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/attribute-extration/m-p/1174830#M48596</guid>
      <dc:creator>sistemasducon</dc:creator>
      <dc:date>2004-11-03T20:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Extration</title>
      <link>https://forums.autodesk.com/t5/vba-forum/attribute-extration/m-p/1174831#M48597</link>
      <description>something like : ?
Dim SelectionSetOfBlockReferences as acadSelectionSet
'populate selection set with desired blocks

Dim oBlkRef as acadBlockReference
Dim vAtts as Variant
Dim lngIdx as Long

For Each oBlkRef in SelectionSetOfBlockReferences
    if oBLkRef.HasAttributes then
        Debug.Print "Attribs for " &amp;amp; oblkref.name
        vatts = oBLkRef.GetAttributes
        For lngIdx = 0 to Ubound(vAtts)
            'if you're looking for specific tag, you can test here
            Debug.print "Tag: " &amp;amp; vAtts(lngIdx).Tagstring
            Debug.print "Value: " &amp;amp; vAtts(lngIdx).Textstring
        next lngIdx
    End if
Next oBlkRef

hope that was what you were asking
Mark


"RicardoCuan" &lt;NOSPAM&gt; wrote in message
news:21878384.1099514452559.JavaMail.jive@jiveforum1.autodesk.com...
&amp;gt; As I make to extract a listing of blocks with an attribute I specify of a
drawing from VBA?
&amp;gt;
&amp;gt;
&amp;gt; Message was edited by: RicardoCuan
&amp;gt;&lt;/NOSPAM&gt;</description>
      <pubDate>Wed, 03 Nov 2004 22:00:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/attribute-extration/m-p/1174831#M48597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-11-03T22:00:20Z</dc:date>
    </item>
  </channel>
</rss>

