<?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: Block Attribute VBA in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11569137#M2091</link>
    <description>&lt;P&gt;attribute belongs to blockreference not to block&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if blockreferencename=blockname then get attribute and then set attribute&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 06:02:05 GMT</pubDate>
    <dc:creator>MakCADD</dc:creator>
    <dc:date>2022-11-22T06:02:05Z</dc:date>
    <item>
      <title>Block Attribute VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11558359#M2086</link>
      <description>&lt;P&gt;I am unable to change the TextString of a specific block on drawing using VBA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to fetch the Tagstring and replace the Textstring with a new value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 06:42:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11558359#M2086</guid>
      <dc:creator>AutocadVBANewbie</dc:creator>
      <dc:date>2022-11-17T06:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Block Attribute VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11558929#M2087</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if attribute(number).tagstring="tagname"&lt;/P&gt;&lt;P&gt;attribute(number).textstring="value"&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 11:49:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11558929#M2087</guid>
      <dc:creator>MakCADD</dc:creator>
      <dc:date>2022-11-17T11:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Block Attribute VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11561092#M2088</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1265615"&gt;@MakCADD&lt;/a&gt;&amp;nbsp;&amp;nbsp;Thankyou for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a similar structure but it doesn't seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim attributeZ As Object&lt;BR /&gt;Dim blockZs As Object&lt;BR /&gt;Dim intX As Integer&lt;/P&gt;&lt;P&gt;intX = 95&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set blockZs = actDoc.blocks("Sheet_2")&lt;BR /&gt;Set attributeZ = blockZs.Item(intX)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If attributeZ.TagString = "Drawing_Name" Then&lt;BR /&gt;attributeZ.Textstring = "XXXXXX"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;attributeZ.Update&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 04:42:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11561092#M2088</guid>
      <dc:creator>AutocadVBANewbie</dc:creator>
      <dc:date>2022-11-18T04:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Block Attribute VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11562012#M2089</link>
      <description>&lt;P&gt;Do you want to change block definition, or block reference (blocks that user see in AutoCAD)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. What your code does is to change attribute definition in the block definition, where the attribute's TextString is the attribute's default value when a block with that attribute is inserted into drawing (as BLOCK REFERENCE!).&lt;/P&gt;
&lt;P&gt;2. Changes made to attribute definition in a block definition will not show up in the block references of that block definition.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect you actually want to do is change a block reference's attribute value. You may want to describe/explain in more details on what you are trying to do, against what (Block Definition, or Block Reference)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 13:47:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11562012#M2089</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2022-11-18T13:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Block Attribute VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11566338#M2090</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AutocadVBANewbie_0-1669007489419.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1142178iF4A0ED61A3FEEEDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AutocadVBANewbie_0-1669007489419.png" alt="AutocadVBANewbie_0-1669007489419.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;&amp;nbsp;: This is a block on the drawing where I need to change attributes through VBA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code mentioned in my previous reply executes but no changes reflect on the drawing.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 05:17:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11566338#M2090</guid>
      <dc:creator>AutocadVBANewbie</dc:creator>
      <dc:date>2022-11-21T05:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Block Attribute VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11569137#M2091</link>
      <description>&lt;P&gt;attribute belongs to blockreference not to block&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if blockreferencename=blockname then get attribute and then set attribute&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 06:02:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/block-attribute-vba/m-p/11569137#M2091</guid>
      <dc:creator>MakCADD</dc:creator>
      <dc:date>2022-11-22T06:02:05Z</dc:date>
    </item>
  </channel>
</rss>

