<?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: How to place text into block  attribute using vba? in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11573395#M2083</link>
    <description>&lt;P&gt;It would help if you showed the code you have so far. You also need to know the tag name of the attribute you want to change if there's more than one attribute in the block reference.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 15:42:22 GMT</pubDate>
    <dc:creator>Ed__Jobe</dc:creator>
    <dc:date>2022-11-23T15:42:22Z</dc:date>
    <item>
      <title>How to place text into block  attribute using vba?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11561215#M2080</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;how can I insert text into AutoCAD block attribute using VBA? I have the list of items in Excel with coordinates.&lt;/P&gt;&lt;P&gt;The macro is in Excel.&lt;/P&gt;&lt;P&gt;The blocks are placed but without text inside. I would appreciate for support. RK&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 06:42:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11561215#M2080</guid>
      <dc:creator>robert.kulas</dc:creator>
      <dc:date>2022-11-18T06:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to place text into block  attribute using vba?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11569132#M2081</link>
      <description>&lt;P&gt;easiest way is to export attribute values to csv file (attout) and open in excel and replace the data with new value and import (attin) file again in the drawing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vba&lt;/P&gt;&lt;P&gt;attribute=block.getattributes&lt;/P&gt;&lt;P&gt;attribute(index).textstring=newvalue&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 05:57:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11569132#M2081</guid>
      <dc:creator>MakCADD</dc:creator>
      <dc:date>2022-11-22T05:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to place text into block  attribute using vba?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11572248#M2082</link>
      <description>&lt;P&gt;Thank you MakCADD for the answer.&lt;/P&gt;&lt;P&gt;It should be done by VBA (part of solution) why I try to implement nothing changed. The attribute inside block (item name) stay empty.&lt;/P&gt;&lt;P&gt;Could you send me any example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 07:58:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11572248#M2082</guid>
      <dc:creator>robert.kulas</dc:creator>
      <dc:date>2022-11-23T07:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to place text into block  attribute using vba?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11573395#M2083</link>
      <description>&lt;P&gt;It would help if you showed the code you have so far. You also need to know the tag name of the attribute you want to change if there's more than one attribute in the block reference.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 15:42:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11573395#M2083</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2022-11-23T15:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to place text into block  attribute using vba?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11573436#M2084</link>
      <description>&lt;LI-CODE lang="visual-basic"&gt;For each object in thisdrawing.layouts(layout.name).block
  If typeof object is acadblockreference then
    Set blockref=object
    If blockref.name= "ABCD" then
      Attr=blockref.getattributes
      For I=0 to ubound(attr)
        If attr(I).tagstring="aaaa" then attr(I).textstring="zzzz"
      Next I
    End if
  End if
Next object&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Moderator edit: Put code into code window using &amp;lt;/&amp;gt; button.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 16:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11573436#M2084</guid>
      <dc:creator>MakCADD</dc:creator>
      <dc:date>2022-11-29T16:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to place text into block  attribute using vba?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11577610#M2085</link>
      <description>&lt;P&gt;Thank you very much for help. The issue was solved.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 11:02:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-place-text-into-block-attribute-using-vba/m-p/11577610#M2085</guid>
      <dc:creator>robert.kulas</dc:creator>
      <dc:date>2022-11-25T11:02:07Z</dc:date>
    </item>
  </channel>
</rss>

