<?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: add text value to a block attibute in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7950436#M105789</link>
    <description>&lt;P&gt;I want to the nearby text as an attribute value&lt;/P&gt;&lt;P&gt;DWG attached&lt;/P&gt;</description>
    <pubDate>Sun, 22 Apr 2018 07:10:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-22T07:10:59Z</dc:date>
    <item>
      <title>add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7949545#M105785</link>
      <description>&lt;P&gt;I have a block with one attribute and text placed near to it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to add the text value to the attribute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="text-to-blockattribute.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/491465iD08F01DA4E73850F/image-size/large?v=v2&amp;amp;px=999" role="button" title="text-to-blockattribute.JPG" alt="text-to-blockattribute.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2018 07:08:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7949545#M105785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-21T07:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7949696#M105786</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Sorry for any grammatical error, I'm using google to translate.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Could you attach the DWG?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Júnior Nogueira.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;Por favor,&amp;nbsp;&amp;nbsp;Aceitar como Solução se meu post&amp;nbsp;te ajudar.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;&lt;SPAN&gt;Please Accept as Solution if my post helps you.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2018 11:06:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7949696#M105786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-21T11:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7949778#M105787</link>
      <description>&lt;P&gt;CAN U EXPLAIN BRIFLY WHAT U WANT TO DO ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for&amp;nbsp;my bad English&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2018 12:28:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7949778#M105787</guid>
      <dc:creator>jaggisingh003</dc:creator>
      <dc:date>2018-04-21T12:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7949867#M105788</link>
      <description>&lt;P&gt;Do you want to concatenate the text string to the attribute string, or replace the attribute string with the text string?&lt;/P&gt;&lt;P&gt;If concatenating, do you want a space or some other character(s) between them?&lt;/P&gt;&lt;P&gt;Do you want to erase the text entity?&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2018 14:35:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7949867#M105788</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2018-04-21T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7950436#M105789</link>
      <description>&lt;P&gt;I want to the nearby text as an attribute value&lt;/P&gt;&lt;P&gt;DWG attached&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 07:10:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7950436#M105789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-22T07:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7950438#M105790</link>
      <description>&lt;P&gt;replace the attribute value.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 07:13:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7950438#M105790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-22T07:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7950678#M105791</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;@Anonymous&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Were these blocks added manually or did you use a LISP for this?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Júnior Nogueira.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;Por favor,&amp;nbsp;&amp;nbsp;Aceitar como Solução se meu post&amp;nbsp;te ajudar.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;&lt;SPAN&gt;Please Accept as Solution if my post helps you.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 13:31:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7950678#M105791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-22T13:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7951354#M105792</link>
      <description>&lt;P&gt;manually.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 03:22:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7951354#M105792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-23T03:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7966946#M105793</link>
      <description>&lt;P&gt;is there any possible way to do this.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Apr 2018 09:59:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7966946#M105793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-28T09:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7967558#M105794</link>
      <description>Probably.&lt;BR /&gt;</description>
      <pubDate>Sun, 29 Apr 2018 00:16:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7967558#M105794</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2018-04-29T00:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7967721#M105795</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;is there any possible way to do this.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, there is a way, But i don't&amp;nbsp;think the drawing sample you posted is anything like the actual drawing file you are trying to fix, all&amp;nbsp;entities are in layer "0".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post a more realistic&amp;nbsp;drawing if you please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 07:15:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7967721#M105795</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2018-04-29T07:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7967956#M105796</link>
      <description>&lt;P&gt;The actual drawing file is very huge with 1.4 million sqm having 144.5km of roads. we have 4 to 6&amp;nbsp;block points&amp;nbsp;across the road in every 10m.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its not possible to upload this file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All these block points are in one layer and the text in another layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can provide u with all the information you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It takes a long time to do this manually. if there a possible way to do this quickly it would be very useful.&lt;/P&gt;&lt;P&gt;I hope you can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 13:22:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7967956#M105796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-29T13:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7968004#M105797</link>
      <description>I am having trouble in wondering what difference it makes if all the&lt;BR /&gt;entities are on layer 0. What, a few more milliseconds of processing?&lt;BR /&gt;There must be other properties to distinguish one entity from the next,&lt;BR /&gt;even such as content or position.</description>
      <pubDate>Sun, 29 Apr 2018 14:28:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7968004#M105797</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2018-04-29T14:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7968055#M105798</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt; wrote:&lt;BR /&gt;....There must be other properties to distinguish one entity from the next,&lt;BR /&gt;even such as content or position.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;True, But I would prefer to include the layer name on a filter, plus it's just good practice to use layers in any drawing package.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;@Anonymous&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;wrote:&lt;BR /&gt;
&lt;P&gt;The actual drawing file is very huge with 1.4 million sqm&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am not asking for THE file but only something similar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;@Anonymous&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All these block points are in one layer and the text in another layer.&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That will do.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 15:20:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7968055#M105798</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2018-04-29T15:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7968208#M105799</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;is there any possible way to do this.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;One way&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(Defun c:demo ( / _DXF attrcoll textcoll tfattr attrblk i entity data)
(defun _DXF (d e)(Cdr (Assoc d (entget e))))
  (if
    (and
	;;;	  Select block where value will be stored	;;;
	(setq attrcoll nil textcoll nil
	    bwattr (car (entsel "\nSelect Block: ")))
	(eq "INSERT" (_DXF 0 bwattr))

	;;;	  Select Text object to pair with block       	;;;
	(setq tfattr (car (entsel "\nSelect text: ")))
	(eq "TEXT" (_DXF 0 tfattr))

        ;;;	  Search whole database for  Block/Text/layer	;;;
	(princ "\nSelect objects to process")
	(setq ss (ssget "_X" (apply 'append
		(list

        ;;;	Blocks using 2 filters from selection block	;;;
	;;;	Block name (Assoc 2 ..)				;;;
	;;;	Layer name (Assoc 8 ..)                		;;;
		'((-4 . "&amp;lt;OR")(-4 . "&amp;lt;AND")(0 . "INSERT")(66 . 1))                
		  (list (assoc 2 (entget bwattr))
                        (assoc 8 (entget bwattr)))

        ;;;	Text entity using 1 filter from selected text	;;;
	;;;	Layer name (Assoc 8 ..)                		;;;
	 	'((-4 . "AND&amp;gt;")(-4 . "&amp;lt;AND")(0 . "TEXT"))
	          (list  (assoc 8 (entget tfattr)))				  
	 	'((-4 . "AND&amp;gt;")(-4 . "OR&amp;gt;")))))
						     
	)
      )
	(progn
	;;;	Process selection. gather insertion point	;;;
	(repeat (setq i (sslength ss))
		(setq entity (ssname ss (setq i (1- i))))
		(setq data (list (_DXF 10 entity) entity))
		(if (eq "INSERT" (Cdr (Assoc 0 (entget entity))))
                            
	;;;	 Block attribue collection			;;;
			  	(Setq attrcoll (cons data attrcoll))
                            
	;;;	 Text collection				;;;
			  	(Setq textcoll (cons data textcoll))
			  )
		)

	(Foreach itm attrcoll
        ;;;     Search text ins point nearest the block (itm)	;;;
	(setq from_To (car (vl-sort
			(mapcar '(lambda (to)
			   (list (distance (car itm) (car to))
                                 (_DXF 1 (cadr to)) to )) textcoll)
	                	'(lambda (a b) (&amp;lt; (Car a)(Car b)))) 
	                )
	      )
              
         ;;;	 The text entity closest to the block		;;;
	(setq attrblk (cadr (last from_To))

	;;;	 Remove the current nearest text list		;;;
	           textcoll (vl-remove (last from_To)  textcoll))

	;;;	 Assign the string value to attribute		;;;
              
	(Vla-put-textstring
	      (car (Vlax-invoke (vlax-ename-&amp;gt;vla-object (cadr itm))
                         'Getattributes))
	      (cadr from_To))

	;;;	 Delete the processed string entity		;;;
	(entdel attrblk)
	    )
	)
    )
    (princ)
    )
&lt;/PRE&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 18:50:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/7968208#M105799</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2018-04-29T18:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/9350109#M105800</link>
      <description>&lt;P&gt;Hi Mr Bp,&lt;/P&gt;&lt;P&gt;Can you help me to copy length of line or polyline to the&amp;nbsp;block attribute when I select 1 block attribute and 1 line (polyline).&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Feb 2020 11:27:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/9350109#M105800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-29T11:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/9350135#M105801</link>
      <description>&lt;P&gt;Try this snippet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(defun c:len2att ( / lu lp att lin len)
(vl-load-com)
  (setq lu (getvar 'lunits)
        lp (getvar 'luprec)
        att (vlax-ename-&amp;gt;vla-object (car (nentsel "Select Attribute : ")))
        lin (car (entsel "Select Line/Polyline : "))
        len (rtos (vlax-curve-getdistatparam lin (vlax-curve-getendparam lin)) lu lp)
  );end_setq
  (vlax-put-property att 'textstring len)
);end_defun&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should work with a Lines, All Polylines, Arcs, Ellipses, Circles (perimeter), Splines&lt;/P&gt;</description>
      <pubDate>Sat, 29 Feb 2020 12:20:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/9350135#M105801</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2020-02-29T12:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/9350917#M105802</link>
      <description>&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;I have a same lisp &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;;_____01/03/2020 by Luongnguyen________;
(defun Ltron ( n )
    (fix (+ n (if (minusp n) -0.3 0.3)))
)
(defun Length1(To) (vlax-curve-getDistAtParam To (vlax-curve-getEndParam To)))
;-----------------------------------------------------------------------------------;
(defun c:Ta (/ st e ss L na str ten)
(setq  ob (ssget '((0 . "INSERT,LINE,POLYLINE,LWPOLYLINE"))))
(setq i 0)
(repeat 2
    (setq Ten (cdr(assoc 0 (entget (ssname ob i)))))
    (if (= Ten "INSERT")
      (Progn
	(setq
           na (ssname ob (- 1 i))
	   L (Ltron (length1 na))
           str (itoa L)
	)
 ; Find ATT with "CD" TAG to copy length of line
	(setq ss (ssdel (ssname ob (- 1 i)) ob ))    
	   ((lambda (j / sn)
	      (while (setq sn (ssname ss (setq j (1+ j))))
	        (mapcar
	          '(lambda (x)
	             (if (eq (strcase (vla-get-tagstring x)) "CD")
	               (vla-put-textstring x str)))
	          (vlax-invoke
	            (vlax-ename-&amp;gt;vla-object sn)
	            'getattributes))
	        ))
	   -1)	
      )
      (setq i (1+ i))
     )
   )          
 (princ)
 )
(vl-load-com)&lt;/LI-CODE&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 07:39:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/9350917#M105802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-01T07:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/9351235#M105803</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;
&lt;P&gt;I have a same lisp &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And so... did it work for you ? are you looking for help? what of&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5644077"&gt;@dlanorh&lt;/a&gt;&amp;nbsp; suggestion. Hows the code posted there working for you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 15:22:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/9351235#M105803</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-03-01T15:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: add text value to a block attibute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/9351341#M105804</link>
      <description>You don't need a program for that.&lt;BR /&gt;Just list the polyline, copy its length value from the screen, and paste it&lt;BR /&gt;into the attribute editor.</description>
      <pubDate>Sun, 01 Mar 2020 17:31:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-text-value-to-a-block-attibute/m-p/9351341#M105804</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-03-01T17:31:07Z</dc:date>
    </item>
  </channel>
</rss>

