<?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: vlax-invoke obj 'getattributes returns textstring  of *TEXT in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7874034#M107029</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4476837"&gt;@ActivistInvestor&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just let me think of this and I will come up with a working code&lt;/P&gt;&lt;P&gt;I think my approach for this task is wrong and I will rethink of this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I have another job atm just give me some time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end I need to process dwg's which are not according company standard.&lt;/P&gt;&lt;P&gt;The only hard part I forgot when I took this job is the possibilities of multiple inserts&lt;/P&gt;&lt;P&gt;For all the attributes in the dwg&amp;nbsp;that are inserted only one time I already have a working code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Mar 2018 07:07:44 GMT</pubDate>
    <dc:creator>DGRL</dc:creator>
    <dc:date>2018-03-22T07:07:44Z</dc:date>
    <item>
      <title>vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872504#M107009</link>
      <description>&lt;P&gt;Dear coders&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have some strange outcomes of my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want to get the textstring of the ATTRIB and the ATTDEF&lt;/P&gt;&lt;P&gt;If i run the code below i also get back the text string of *TEXT and i wonder why since i am filtering on attribute&lt;BR /&gt;If i compare the print out of the block reference with the print out of the attribute definition then i see in the first list also text strings of *TEXT&lt;BR /&gt;How do i make sure i only get the text strings of ATTRIB and ATTDEF??&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;	(vlax-for blk (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)));get block collection
		(vlax-for obj blk
			(cond	
				(				
					(= "AcDbBlockReference" (vla-get-objectname obj))
						(if (= :vlax-true (vla-get-hasattributes obj))
							(foreach att (vlax-invoke obj 'getattributes)
								(print (vla-get-textstring att))
							)
						)
				)
				(
					(= "AcDbAttributeDefinition" (vla-get-objectname obj))
						(print (vla-get-textstring obj))
				)
			)	
		); end of vlax-for obj blk
			(princ)	
	); end of vlax-for blk&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 16:56:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872504#M107009</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2018-03-21T16:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872555#M107010</link>
      <description>&lt;P&gt;It should not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this which may help you to diagnose, and if you still have an issue, post the drawing causing this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vlax-for blk (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object))) ;get block collection
  (vlax-for obj blk
    (cond
      ((= "AcDbBlockReference" (vla-get-objectname obj))
       (if (= :vlax-true (vla-get-hasattributes obj))
         (foreach att (vlax-invoke obj 'getattributes)
           (print (strcat "Attribute Reference: " (vla-get-textstring att)))
         )
       )
      )
      ((= "AcDbAttributeDefinition" (vla-get-objectname obj))
       (print (strcat "Attribute Definition: " (vla-get-textstring obj)))
      )
    )
  )
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Mar 2018 17:08:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872555#M107010</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-03-21T17:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872630#M107011</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will&amp;nbsp; prepare a dwg for you to test because i get the same result&lt;BR /&gt;Thanks for the add you did it makes the print nicer &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found also another thing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i have block X inserted 5 times it only gives back 1 ATTDEF and 5 ATTREF&lt;/P&gt;&lt;P&gt;Even though it is the same block i need the result to be 5 times ATTDEF and 5 times ATTREF&lt;/P&gt;&lt;P&gt;But this is for later&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 17:38:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872630#M107011</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2018-03-21T17:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872673#M107012</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to apologize to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason why i got *text back in the result is because some ***&amp;nbsp; placed attribute's in the template with fields referring to *text objects in the same template&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's why i thought that the result given contained *text while in fact it is just the text string of the field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 17:51:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872673#M107012</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2018-03-21T17:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872842#M107013</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still have issues with the length of the list&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;_$ (length fexpp)&lt;BR /&gt;58&lt;BR /&gt;_$ (length fexpp1)&lt;BR /&gt;55&lt;BR /&gt;_$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what this can be?&lt;/P&gt;&lt;P&gt;it seems that there are&amp;nbsp; 3 ATTRIBS in the block but not as ATTDEF&lt;/P&gt;&lt;P&gt;will dive into this and see what i can find&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 18:46:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872842#M107013</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2018-03-21T18:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872909#M107014</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3499869"&gt;@DGRL&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I still have issues with the length of the list&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_$ (length fexpp)&lt;BR /&gt;58&lt;BR /&gt;_$ (length fexpp1)&lt;BR /&gt;55&lt;BR /&gt;_$&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea what this can be?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Absolutely none.&lt;/P&gt;
&lt;P&gt;I do not know anything about neither fexpp nor fexpp1...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway some block references may have attributes references different from the attribute definitions in the block defefinition* until you synchronize the attributes with ATTSYNC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* you can insert&amp;nbsp; some block in the drawing, then edit/add/remove the attribute definitions in the block definition.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 19:05:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872909#M107014</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-03-21T19:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872933#M107015</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excuse for not mentioning what fexpp and fexpp1 is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fexpp&amp;nbsp;&amp;nbsp; is the (get-text-string) of "AcDbBlockReference" (ATTRIB)&lt;/P&gt;&lt;P&gt;Fexpp1 is the (get-text-string) of "AcDbAttributeDefinition" (ATTDEF)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is kinda weird that the length of the list for blockreference is 58 and the length of the list for AcDbAttributeDefinition is 55&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And attsync had been done but will redo to be sure&lt;/P&gt;&lt;P&gt;will let you know&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 19:11:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872933#M107015</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2018-03-21T19:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872940#M107016</link>
      <description>&lt;P&gt;Is there exactly one block reference per block definition (including nested blocks)?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 19:15:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872940#M107016</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-03-21T19:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872989#M107017</link>
      <description>&lt;P&gt;i am preparing the dwg for you&lt;/P&gt;&lt;P&gt;might take some time i will filter a lot of working att's out of the dwg for you &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 19:33:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7872989#M107017</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2018-03-21T19:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873039#M107018</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After filtering out the working att's i ended up with a different of 5&lt;/P&gt;&lt;P&gt;thats the block inserted 6 times&lt;/P&gt;&lt;P&gt;1 time counted miss 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way that i will process every block maybe by ename or handle?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 19:46:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873039#M107018</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2018-03-21T19:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873100#M107019</link>
      <description>&lt;P&gt;Sorry, I do not understand what you're trying to achieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(vlax-for blk (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
  (vlax-for obj blk
    ...
  )
)&lt;/PRE&gt;&lt;P&gt;This expression will iterate through any entity in any 'block definition' (including spaces).&lt;/P&gt;&lt;P&gt;You can trust it, it's more reliable than counting attribute references or definitions by yourself.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:04:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873100#M107019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-21T20:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873114#M107020</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will re write my code and will let you know the result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:10:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873114#M107020</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2018-03-21T20:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873123#M107021</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;@Anonymous&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at the dwg&lt;/P&gt;&lt;P&gt;1 block&lt;/P&gt;&lt;P&gt;inserted 6 times&lt;/P&gt;&lt;P&gt;below code is result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(vlax-for blk (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
	(vlax-for obj blk
		(cond
		((= "AcDbBlockReference" (vla-get-objectname obj))
		(if (= :vlax-true (vla-get-hasattributes obj))
			(foreach att (vlax-invoke obj 'getattributes)
			(print (strcat "Attribute Reference: " (vla-get-textstring att)))
			
			)
		)
		)
		((= "AcDbAttributeDefinition" (vla-get-objectname obj))
		(print (strcat "Attribute Definition: " (vla-get-textstring obj)))
		)
		)
	)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Attribute Reference: \\W0.8000;1"&lt;BR /&gt;"Attribute Reference: \\W0.8000;2"&lt;BR /&gt;"Attribute Reference: \\W0.8000;3"&lt;BR /&gt;"Attribute Reference: \\W0.8000;4"&lt;BR /&gt;"Attribute Reference: \\W0.8000;5"&lt;BR /&gt;"Attribute Reference: \\W0.8000;6"&lt;BR /&gt;"Attribute Definition: \\W0.8000;DREWSASD" nil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see&lt;/P&gt;&lt;P&gt;6 times REFERENCE&lt;/P&gt;&lt;P&gt;1 time&amp;nbsp; DEFINITION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need 6 times REF and 6 times DEF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:15:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873123#M107021</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2018-03-21T20:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873153#M107022</link>
      <description>&lt;P&gt;Your drawing contains 6 insertions of a block named "AnnoCircle".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I, and probably most others here are completely baffled by is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "&lt;SPAN&gt;I need 6 times REF and 6 times DEF"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What does that mean?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;There is &lt;EM&gt;only one&lt;/EM&gt; block definition (and within that, &lt;EM&gt;only one&lt;/EM&gt; attribute definition) in the drawing, along with 6 insertions of the block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems that you're problem stems from a basic misunderstanding of the relationship between the definition and the reference (either blocks or attributes).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to provide overview of what your code's ultimate objective is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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/3499869"&gt;@DGRL&lt;/a&gt;wrote:&lt;BR /&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;@Anonymous&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at the dwg&lt;/P&gt;&lt;P&gt;1 block&lt;/P&gt;&lt;P&gt;inserted 6 times&lt;/P&gt;&lt;P&gt;below code is result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(vlax-for blk (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
	(vlax-for obj blk
		(cond
		((= "AcDbBlockReference" (vla-get-objectname obj))
		(if (= :vlax-true (vla-get-hasattributes obj))
			(foreach att (vlax-invoke obj 'getattributes)
			(print (strcat "Attribute Reference: " (vla-get-textstring att)))
			
			)
		)
		)
		((= "AcDbAttributeDefinition" (vla-get-objectname obj))
		(print (strcat "Attribute Definition: " (vla-get-textstring obj)))
		)
		)
	)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Attribute Reference: \\W0.8000;1"&lt;BR /&gt;"Attribute Reference: \\W0.8000;2"&lt;BR /&gt;"Attribute Reference: \\W0.8000;3"&lt;BR /&gt;"Attribute Reference: \\W0.8000;4"&lt;BR /&gt;"Attribute Reference: \\W0.8000;5"&lt;BR /&gt;"Attribute Reference: \\W0.8000;6"&lt;BR /&gt;"Attribute Definition: \\W0.8000;DREWSASD" nil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see&lt;/P&gt;&lt;P&gt;6 times REFERENCE&lt;/P&gt;&lt;P&gt;1 time&amp;nbsp; DEFINITION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need 6 times REF and 6 times DEF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:30:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873153#M107022</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2018-03-21T20:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873194#M107023</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4476837"&gt;@ActivistInvestor&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i mean is,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since every insert has its own ename&lt;BR /&gt;&lt;BR /&gt;((-1 . &amp;lt;Entity name: 7ffffb53b50&amp;gt;) (0 . "INSERT")&lt;BR /&gt;((-1 . &amp;lt;Entity name: 7ffffb53b30&amp;gt;) (0 . "INSERT")&lt;/P&gt;&lt;P&gt;((-1 . &amp;lt;Entity name: 7ffffb53b40&amp;gt;) (0 . "INSERT")&lt;/P&gt;&lt;P&gt;((-1 . &amp;lt;Entity name: 7ffffb53b80&amp;gt;) (0 . "INSERT")&lt;/P&gt;&lt;P&gt;((-1 . &amp;lt;Entity name: 7ffffb53b60&amp;gt;) (0 . "INSERT")&lt;/P&gt;&lt;P&gt;((-1 . &amp;lt;Entity name: 7ffffb53b70&amp;gt;) (0 . "INSERT")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These six insertion which happens to be one block definition&amp;nbsp; still contains the entget assoc list which as far as i know can be used to access that particular block&lt;BR /&gt;And therefore i assumed that it might be possible to generate a list that contains the text string of the ATTRIB and the ATTDEF&lt;/P&gt;&lt;P&gt;The reason why i need to make a list of the text value from both ATTDEF and ATTRIB is quit long and does not add value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:43:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873194#M107023</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2018-03-21T20:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873265#M107024</link>
      <description>&lt;P&gt;I can see no purpose to generating a list of items that contain data from both the attribute reference (ATTRIB) and the attribute definition (ATTDEF), because the value for the attribute definition in each list element will be the same value, because all of the ATTREFs&amp;nbsp;refer to the same ATTDEF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What purpose is there to doing that?&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/3499869"&gt;@DGRL&lt;/a&gt;wrote:&lt;BR /&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4476837"&gt;@ActivistInvestor&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i mean is,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since every insert has its own ename&lt;BR /&gt;&lt;BR /&gt;((-1 . &amp;lt;Entity name: 7ffffb53b50&amp;gt;) (0 . "INSERT")&lt;BR /&gt;((-1 . &amp;lt;Entity name: 7ffffb53b30&amp;gt;) (0 . "INSERT")&lt;/P&gt;&lt;P&gt;((-1 . &amp;lt;Entity name: 7ffffb53b40&amp;gt;) (0 . "INSERT")&lt;/P&gt;&lt;P&gt;((-1 . &amp;lt;Entity name: 7ffffb53b80&amp;gt;) (0 . "INSERT")&lt;/P&gt;&lt;P&gt;((-1 . &amp;lt;Entity name: 7ffffb53b60&amp;gt;) (0 . "INSERT")&lt;/P&gt;&lt;P&gt;((-1 . &amp;lt;Entity name: 7ffffb53b70&amp;gt;) (0 . "INSERT")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These six insertion which happens to be one block definition&amp;nbsp; still contains the entget assoc list which as far as i know can be used to access that particular block&lt;BR /&gt;And therefore i assumed that it might be possible to generate a list that contains the text string of the ATTRIB and the ATTDEF&lt;/P&gt;&lt;P&gt;The reason why i need to make a list of the text value from both ATTDEF and ATTRIB is quit long and does not add value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 21:05:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873265#M107024</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2018-03-21T21:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873279#M107025</link>
      <description>&lt;P&gt;I need to check drawings containing more then these 6 blocks&lt;/P&gt;&lt;P&gt;And mostly only ,multiple inserts on 1 block definition&lt;/P&gt;&lt;P&gt;some made an error and place what supposed to be the ATTRIB value in the ATT default&lt;/P&gt;&lt;P&gt;Easy to fix only not when you have multiple inserts&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But how about this&lt;/P&gt;&lt;P&gt;Even though there are 6 inserts of 1 block definition all the blocks still contains the ATT and therefore there are 6 ATT's&lt;/P&gt;&lt;P&gt;On database level there might be 1 definition but on entity level there are 6.&lt;/P&gt;&lt;P&gt;I still select 6 block or am i wrong thinking like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 21:10:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873279#M107025</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2018-03-21T21:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873468#M107026</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3499869"&gt;@DGRL&lt;/a&gt;wrote:&lt;BR /&gt;&lt;P&gt;I need to check drawings containing more then these 6 blocks&lt;/P&gt;&lt;P&gt;And mostly only ,multiple inserts on 1 block definition&lt;/P&gt;&lt;P&gt;some made an error and place what supposed to be the ATTRIB value in the ATT default&lt;/P&gt;&lt;P&gt;Easy to fix only not when you have multiple inserts&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But how about this&lt;/P&gt;&lt;P&gt;Even though there are 6 inserts of 1 block definition all the blocks still contains the ATT and therefore there are 6 ATT's&lt;/P&gt;&lt;P&gt;On database level there might be 1 definition but on entity level there are 6.&lt;/P&gt;&lt;P&gt;I still select 6 block or am i wrong thinking like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To correct erroneous data in an attribute definition, you don't need the insertions/attributes.&amp;nbsp; There is only one attribute definition, regardless of how many inserts/attributes of the block exist. I still can't figure out what your ultimate goal is, and without that I can't suggest any way to achieve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 22:29:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873468#M107026</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2018-03-21T22:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873517#M107027</link>
      <description>&lt;P&gt;The text in an attribute definition got with (cdr (assoc 1 ...)) or (vla-get-TextString ...) is the default value for the attribute reference, in other words, the 'value' of the attribute reference when you insert the block with ATTREQ = 0.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 22:54:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873517#M107027</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-03-21T22:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-invoke obj 'getattributes returns textstring  of *TEXT</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873997#M107028</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4476837"&gt;@ActivistInvestor&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I need is to access the &amp;nbsp;; IAcadAttribute: AutoCAD Attribute Interface which contains the textstring I am after and I need to access the ; IAcadAttributeReference: AutoCAD Attribute Reference Interface&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do a dump of an attdef in a block and see for your self&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 06:46:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-invoke-obj-getattributes-returns-textstring-of-text/m-p/7873997#M107028</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2018-03-22T06:46:59Z</dc:date>
    </item>
  </channel>
</rss>

