<?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: compare 2 blocks attributes values in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773203#M139274</link>
    <description>&lt;P&gt;Sergiu,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;as I said in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;my previous&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;message&lt;/SPAN&gt;, one solution was to use the relative position from each Att ,from the block insertion, to&amp;nbsp;point to text insertion point.&lt;/P&gt;
&lt;P&gt;But to use this &lt;SPAN class="hps"&gt;approach, the blocks must be &lt;SPAN class="hps alt-edited"&gt;identical&lt;/SPAN&gt;, I did edit the two blocks, to ensure that, in my dwg, both blocks, are &lt;SPAN class="hps alt-edited"&gt;identical, I did edit the bloks in the Block Editor, and scale both, to the same size.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps alt-edited"&gt;The following quick and dirty 'demo', sorry but &lt;SPAN class="hps"&gt;I don't have&lt;/SPAN&gt; much &lt;SPAN class="hps alt-edited"&gt;spare time to write a &lt;SPAN class="hps"&gt;cleaner&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;code&lt;/SPAN&gt;, is just one possible approach to make &lt;SPAN class="hps"&gt;the comparison&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;between both blocs...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun c:demo (/ ATT BLK INS_PT L1 L2 L3 LAST_E LST OBJ PT SS)
   (if (and (princ "\n Select the two blocks: ")
            (setq ss (ssget '((0 . "INSERT") (2 . "MyBlock1,MyBlock2") (66 . 1))))
            (= (sslength ss) 2)
            (setq pt (getpoint "\ Enter point to insert the result: "))
            (setq last_e (entlast))
       )
      (progn
         (setq obj    (vlax-ename-&amp;gt;vla-object (ssname ss 0))
               ins_pt (vlax-get obj 'insertionpoint)
               blk    (vla-get-effectivename obj)
               l1     (mapcar
                         '(lambda (att)
                             (cons (mapcar '- (vlax-get att 'insertionpoint) ins_pt) (vla-get-TextString att))
                          )
                         (vlax-invoke obj "GetAttributes")
                      )
               obj    (vlax-ename-&amp;gt;vla-object (ssname ss 1))
               ins_pt (vlax-get obj 'insertionpoint)
               l2     (mapcar
                         '(lambda (att)
                             (cons (mapcar '- (vlax-get att 'insertionpoint) ins_pt) (vla-get-TextString att))
                          )
                         (vlax-invoke obj "GetAttributes")
                      )
               l1     (vl-remove-if
                         '(lambda (x)
                             (vl-some '(lambda (y)
                                          (if (equal (car x) (car y) 3.5)
                                             (setq l2 (vl-remove y l2)
                                                   l3 (cons (if (&amp;gt; (atof (vl-string-subst "." "," (cdr x))) (atof (vl-string-subst "." "," (cdr y))))
                                                               x
                                                               y
                                                            )
                                                            l3
                                                      )
                                             )
                                          )
                                       )
                                      l2
                             )
                          )
                         l1
                      )
               lst    (append l1 l2 l3)
         )
         (command "-insert" blk "_Scale" 1 pt 0)
         (command "_.explode" "_L")
         (setq ss (ssget "_P" '((0 . "ATTDEF"))))
         (command "_.erase" ss "")
         (foreach x lst
            (entmake
               (list
                  (cons 0 "TEXT")
                  (cons 100 "AcDbText")
                  (cons 40 2.5)
                  (cons 10 (mapcar '+ (car x) pt))
                  (cons 1 (cdr x))
               )
            )
         )
      )
   )
   (princ)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps alt-edited"&gt;&lt;SPAN class="hps alt-edited"&gt;&lt;SPAN class="hps alt-edited"&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Aug 2015 17:01:47 GMT</pubDate>
    <dc:creator>hmsilva</dc:creator>
    <dc:date>2015-08-16T17:01:47Z</dc:date>
    <item>
      <title>compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5772708#M139271</link>
      <description>&lt;P&gt;Hi everyone, I have an idea but , is gonna be made only with your help ...&lt;BR /&gt;I have 2 blocks with attributes , I have to compare each cell value in first block with its opposite cell value in other block , and choose the maximum cell value&lt;BR /&gt;the blank cell we should consider 0 value ...&lt;BR /&gt;for a newbie is hard to made this&lt;BR /&gt;Hope on your help !&lt;BR /&gt;P.S. we can create a third block , for the maximum value ( make a copy of one of block , and there put the maximum values )&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2015 16:12:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5772708#M139271</guid>
      <dc:creator>sergiu_ciuhnenco</dc:creator>
      <dc:date>2015-08-15T16:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5772806#M139272</link>
      <description>&lt;P&gt;Hi Sergiu,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps alt-edited"&gt;It would be easier&lt;/SPAN&gt; if all cells have attributes, and TAGs &lt;SPAN class="hps"&gt;were common to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;both&lt;/SPAN&gt;...&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;But, with this situation, all TAG's are different, and not all cells have attributes, the number of attributes are different in both blocks, but the blocks are similar, what&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;occurs to me is to store in two lists, the relative position from each Att (from the block insertion point to text insertion point) and the tag/value, and use the relative position, with some fuzz,&amp;nbsp;to test the value, and save the relative position and maximum value in a third list...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2015 20:04:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5772806#M139272</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-15T20:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773022#M139273</link>
      <description>&lt;P&gt;Try this code. As has been said by Henrique, its&amp;nbsp;somewhat unnecessarily complicated, so I tried to simplify.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to prepare your drawing first... see the attachment. Copy the tables on top of each other, align them and explode them. Then you can run the lisp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;(vl-load-com)

(defun c:MaxAttTable ( / *error* doc oVAR ss i pt ssi n0 n1 endel point name)

  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break"))
      (princ (strcat "\nError: " errmsg)))
    (foreach e oVAR (setvar (car e) (cdr e)))
    (vla-endundomark doc)
    (princ))


  (vla-startundomark (setq doc (vla-get-activedocument (vlax-get-acad-object))))
  (foreach e '(CMDECHO ORTHOMODE OSMODE ATTREQ)
    (setq oVAR (cons (cons e (getvar e)) oVAR)))

  (setvar 'CMDECHO 	0)
  (setvar 'ORTHOMODE 	0)
  (setvar 'ATTREQ 	0)
  (setvar 'OSMODE 	0)

  
  (if (and (princ "\nNeed ATTDEFs of exploded blocks placed on top of each other, ")
	   (setq ss (ssget '((0 . "ATTDEF"))))
	   (setq i (sslength ss))
      )
    (progn
      (while (not (minusp (setq i (1- i))))
        (setq pt (cdr (assoc 10 (entget (ssname ss i))))
	      ssi (ssget "_C" pt (polar pt 0.5 3) '((0 . "ATTDEF"))))
        (cond ((= 1 (sslength ssi)))
	      ((and (= 2 (sslength ssi))
		    (numberp (setq n0 (read (vl-string-subst "." "," (cdr (assoc 1 (entget (ssname ssi 0))))))))
		    (numberp (setq n1 (read (vl-string-subst "." "," (cdr (assoc 1 (entget (ssname ssi 1)))))))))
	       (setq endel (ssname ssi (car (vl-sort-i (list n0 n1) '&amp;lt;))))
	       (if (not (equal endel 				; for deleting - if deleted ent is NOT
			       (ssname ss  i)))   		; the current of while loop
		 (setq i (1- i)))				; decrease the index
	       (ssdel  endel ss)
	       (entdel endel))
      	      (T
	       (princ "\nSomething is wrong, problematic texts are marked yellow!")
	       (command "_.CHPROP" ssi "" "_C" 2 ""))))
      
      (setvar 'OSMODE (cdr (assoc 'OSMODE oVAR)))
      (if (setq point (getpoint "\nSpecify insertion point &amp;lt;don't make a block&amp;gt;: "))
	(progn
	  (setq i 0)
	  (while (tblsearch "block" (setq name (strcat "MyBlock" (itoa (setq i (1+ i)))))))
	  (command "_.-BLOCK"  name "_none" point ss ""
		   "_.-INSERT" name "_none" point 1 "" "")))
    )
  )
  (foreach e oVAR (setvar (car e) (cdr e)))
  (vla-endundomark doc)
  (princ)
)&lt;/PRE&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Sun, 16 Aug 2015 07:51:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773022#M139273</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2015-08-16T07:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773203#M139274</link>
      <description>&lt;P&gt;Sergiu,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;as I said in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;my previous&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;message&lt;/SPAN&gt;, one solution was to use the relative position from each Att ,from the block insertion, to&amp;nbsp;point to text insertion point.&lt;/P&gt;
&lt;P&gt;But to use this &lt;SPAN class="hps"&gt;approach, the blocks must be &lt;SPAN class="hps alt-edited"&gt;identical&lt;/SPAN&gt;, I did edit the two blocks, to ensure that, in my dwg, both blocks, are &lt;SPAN class="hps alt-edited"&gt;identical, I did edit the bloks in the Block Editor, and scale both, to the same size.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps alt-edited"&gt;The following quick and dirty 'demo', sorry but &lt;SPAN class="hps"&gt;I don't have&lt;/SPAN&gt; much &lt;SPAN class="hps alt-edited"&gt;spare time to write a &lt;SPAN class="hps"&gt;cleaner&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;code&lt;/SPAN&gt;, is just one possible approach to make &lt;SPAN class="hps"&gt;the comparison&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;between both blocs...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun c:demo (/ ATT BLK INS_PT L1 L2 L3 LAST_E LST OBJ PT SS)
   (if (and (princ "\n Select the two blocks: ")
            (setq ss (ssget '((0 . "INSERT") (2 . "MyBlock1,MyBlock2") (66 . 1))))
            (= (sslength ss) 2)
            (setq pt (getpoint "\ Enter point to insert the result: "))
            (setq last_e (entlast))
       )
      (progn
         (setq obj    (vlax-ename-&amp;gt;vla-object (ssname ss 0))
               ins_pt (vlax-get obj 'insertionpoint)
               blk    (vla-get-effectivename obj)
               l1     (mapcar
                         '(lambda (att)
                             (cons (mapcar '- (vlax-get att 'insertionpoint) ins_pt) (vla-get-TextString att))
                          )
                         (vlax-invoke obj "GetAttributes")
                      )
               obj    (vlax-ename-&amp;gt;vla-object (ssname ss 1))
               ins_pt (vlax-get obj 'insertionpoint)
               l2     (mapcar
                         '(lambda (att)
                             (cons (mapcar '- (vlax-get att 'insertionpoint) ins_pt) (vla-get-TextString att))
                          )
                         (vlax-invoke obj "GetAttributes")
                      )
               l1     (vl-remove-if
                         '(lambda (x)
                             (vl-some '(lambda (y)
                                          (if (equal (car x) (car y) 3.5)
                                             (setq l2 (vl-remove y l2)
                                                   l3 (cons (if (&amp;gt; (atof (vl-string-subst "." "," (cdr x))) (atof (vl-string-subst "." "," (cdr y))))
                                                               x
                                                               y
                                                            )
                                                            l3
                                                      )
                                             )
                                          )
                                       )
                                      l2
                             )
                          )
                         l1
                      )
               lst    (append l1 l2 l3)
         )
         (command "-insert" blk "_Scale" 1 pt 0)
         (command "_.explode" "_L")
         (setq ss (ssget "_P" '((0 . "ATTDEF"))))
         (command "_.erase" ss "")
         (foreach x lst
            (entmake
               (list
                  (cons 0 "TEXT")
                  (cons 100 "AcDbText")
                  (cons 40 2.5)
                  (cons 10 (mapcar '+ (car x) pt))
                  (cons 1 (cdr x))
               )
            )
         )
      )
   )
   (princ)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps alt-edited"&gt;&lt;SPAN class="hps alt-edited"&gt;&lt;SPAN class="hps alt-edited"&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 17:01:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773203#M139274</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-16T17:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773223#M139275</link>
      <description>&lt;P&gt;Thanks guys for fast attempting ,&lt;U&gt;Henrique&lt;/U&gt;&amp;nbsp; your code give in final an error , somethings is goin wrong&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 17:12:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773223#M139275</guid>
      <dc:creator>sergiu_ciuhnenco</dc:creator>
      <dc:date>2015-08-16T17:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773229#M139276</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1903249"&gt;@sergiu_ciuhnenco&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;...&lt;U&gt;Henrique&lt;/U&gt;&amp;nbsp; your code give in final an error , somethings is goin wrong&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you try the code with the dwg I've attached?&lt;/P&gt;
&lt;P&gt;I did test the code with the dwg I've attached, &lt;SPAN class="hps alt-edited"&gt;without error...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 17:25:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773229#M139276</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-16T17:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773262#M139277</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1903249"&gt;@sergiu_ciuhnenco&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;...&amp;nbsp;code give in final an error , somethings is goin wrong&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are you having non-english version of autocad? If so, add "_." like this...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(command "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;_.&lt;/STRONG&gt;&lt;/FONT&gt;-insert" blk "_Scale" 1 pt 0)&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Aug 2015 18:28:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773262#M139277</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2015-08-16T18:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773270#M139278</link>
      <description>&lt;P&gt;It show me this kind of thing : "; error: Function cancelled "&lt;BR /&gt;I use the dwg file that you atached , write demo comand , selecting the 2 blocks , and when I have to insert the point : error ..&lt;BR /&gt;May be I am doing something different from your steps ?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 19:04:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773270#M139278</guid>
      <dc:creator>sergiu_ciuhnenco</dc:creator>
      <dc:date>2015-08-16T19:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773271#M139279</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1903249"&gt;@sergiu_ciuhnenco&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;...&amp;nbsp;code give in final an error , somethings is goin wrong&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you having non-english version of autocad? If so, add "_." like this...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(command "&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;_.&lt;/STRONG&gt;&lt;/FONT&gt;-insert" blk "_Scale" 1 pt 0)&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi BeekeeCZ,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps alt-edited"&gt;probably&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;is that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;what is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;causing the error&lt;/SPAN&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 19:07:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773271#M139279</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-16T19:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773274#M139280</link>
      <description>&lt;P&gt;now , it's english version&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 19:11:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773274#M139280</guid>
      <dc:creator>sergiu_ciuhnenco</dc:creator>
      <dc:date>2015-08-16T19:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773275#M139281</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1903249"&gt;@sergiu_ciuhnenco&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;now , it's english version&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;What is the error?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 19:14:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773275#M139281</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-16T19:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773280#M139282</link>
      <description>&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/183743iBCA329C6C7B1519D/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="error.jpg" title="error.jpg" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 19:19:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773280#M139282</guid>
      <dc:creator>sergiu_ciuhnenco</dc:creator>
      <dc:date>2015-08-16T19:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773283#M139283</link>
      <description>&lt;P&gt;Invalid... &lt;SPAN&gt;It is not sufficient&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to understand&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the error...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Just for debugging:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN class="hps"&gt;Open the file I did post&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="hps"&gt;appload the demo1.lsp&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="hps"&gt;type demo&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="hps"&gt;select both blocks&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="hps"&gt;pick a point&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN&gt;It worked as expected?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN&gt;Henrique&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 19:29:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773283#M139283</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-16T19:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773285#M139284</link>
      <description>&lt;P&gt;same thing , I will try tomorow at work in 2013 version ,, for me is the first time when is happening something like this&lt;BR /&gt;I let you know already tomorow , hope with good news&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 19:35:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773285#M139284</guid>
      <dc:creator>sergiu_ciuhnenco</dc:creator>
      <dc:date>2015-08-16T19:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773291#M139285</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1903249"&gt;@sergiu_ciuhnenco&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;same thing , I will try tomorow at work in 2013 version ,, for me is the first time when is happening something like this&lt;BR /&gt;I let you know already tomorow , hope with good news&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ok!&lt;/P&gt;
&lt;P&gt;I did test the code in AutoCAD 2010, 2012, 2014 and 2016...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the attached code, and &lt;SPAN class="hps"&gt;see&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="hps"&gt;if it&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="hps"&gt;works &lt;SPAN class="hps alt-edited"&gt;better&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 19:50:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773291#M139285</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-16T19:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773294#M139286</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/75977"&gt;@hmsilva&lt;/a&gt; wrote:&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Hi BeekeeCZ,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;probably&lt;/SPAN&gt; &lt;SPAN&gt;is that&lt;/SPAN&gt; &lt;SPAN&gt;what is&lt;/SPAN&gt; &lt;SPAN&gt;causing the error&lt;/SPAN&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Hi Henrique, you're welcome. I tried your code as well (AutoCAD 2015 EN) and it's fine with me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 20:00:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773294#M139286</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2015-08-16T20:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773297#M139287</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;..&amp;nbsp;I tried your code as well (AutoCAD 2015 EN) and it's fine with me.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Thank you&lt;/SPAN&gt;, BeekeeCZ, for testing the code also.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;It's a weird error,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and I can't&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;understand what&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;may be&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;causing the error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 20:08:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773297#M139287</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-16T20:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773298#M139288</link>
      <description>&lt;P&gt;finaly , It work :Thanks a lot&lt;BR /&gt;both of you do a great job , thanks again !!!!!!!&lt;BR /&gt;nice to meet profesionals like you guys !!!!!!!!!!!!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 20:09:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773298#M139288</guid>
      <dc:creator>sergiu_ciuhnenco</dc:creator>
      <dc:date>2015-08-16T20:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773299#M139289</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1903249"&gt;@sergiu_ciuhnenco&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;finaly , It work :Thanks a lot&lt;BR /&gt;both of you do a great job , thanks again !!!!!!!&lt;BR /&gt;nice to meet profesionals like you guys !!!!!!!!!!!!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Finaly!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You're welcome, Sergiu!&lt;BR /&gt;&lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 20:13:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773299#M139289</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-08-16T20:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 blocks attributes values</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773308#M139290</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/75977"&gt;@hmsilva&lt;/a&gt; wrote:&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;, BeekeeCZ, for testing the code also.&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;It's a weird error,&lt;/SPAN&gt; &lt;SPAN&gt;and I can't&lt;/SPAN&gt; &lt;SPAN&gt;understand what&lt;/SPAN&gt; &lt;SPAN&gt;may be&lt;/SPAN&gt; &lt;SPAN&gt;causing the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Congrats! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I had ATTREQ 0 from previous... so didn't see that coming.&lt;BR /&gt;BTW (error nil) is new to me, nice. Thx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2015 20:33:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/compare-2-blocks-attributes-values/m-p/5773308#M139290</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2015-08-16T20:33:54Z</dc:date>
    </item>
  </channel>
</rss>

