<?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: lisp: select a text automatically in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239493#M117821</link>
    <description>&lt;P&gt;Looking thru most of your query, I believe you&amp;nbsp;should be&amp;nbsp;approaching&amp;nbsp;the problems in a more logical way. Take this discussion for &amp;nbsp;instance, Is this a "repair" job? Upgrading existing title block to for future use and keeping up with company standards? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What we have offered so far is quick "fix" for something too specific, tell us the whole story, maybe we can come up with a better solution to your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pBe&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 17:38:28 GMT</pubDate>
    <dc:creator>pbejse</dc:creator>
    <dc:date>2017-07-19T17:38:28Z</dc:date>
    <item>
      <title>lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7223240#M117812</link>
      <description>&lt;P&gt;Hello, everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m working on a lisp to select an existing text, and copy its content and paste it in an attribute.&lt;/P&gt;&lt;P&gt;(entsel) prompt people to select a text by mouse, but what I need is to select that text automatically since this will repeat in more than 100 plans. The texts in all plans have the same coordinate point.&lt;/P&gt;&lt;P&gt;Please let me know which Funcion is applicable.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 18:21:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7223240#M117812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-12T18:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7223316#M117813</link>
      <description>&lt;P&gt;Something like this for example&lt;/P&gt;
&lt;PRE&gt;(ssname (ssget '(120 300)) 0) ; selecting entity at 120, 300&lt;/PRE&gt;
&lt;P&gt;or this&lt;/P&gt;
&lt;PRE&gt;(nentselp '(120 300))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 18:56:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7223316#M117813</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-07-12T18:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7223378#M117814</link>
      <description>&lt;P&gt;I think this is what you mean.&lt;/P&gt;
&lt;PRE&gt;;;Ranjit Singh
;;7/12/17
(defun c:somefunc  (/ jpgobj)
 (vlax-invoke (vlax-get (vlax-get (setq jpgobj (vlax-get-or-create-object "jpegfile")) 'parentwindow)
                        'clipboarddata)
              'setdata
              "text"
              (cdr (assoc 1 (entget (car (nentselp '(120 300))))))); select text at 120, 300
 (vlax-release-object jpgobj)
 (princ))&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2017 19:05:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7223378#M117814</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-07-12T19:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7233011#M117815</link>
      <description>&lt;P&gt;Thanks, Ranjit, it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we make the question a step further? now the text is a Mtext which has two lines (refer to attached cad block); Can the code&amp;nbsp;identify the first and second line and copy the content respectively? the corresponding&amp;nbsp;attribure would be TITRE1 and TITRE2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 15:53:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7233011#M117815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-17T15:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7233425#M117816</link>
      <description>&lt;P&gt;I don't think you need the clipboard object. I was thrown off by your &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-to-copy-a-text-to-clipboard-and-paste-it-to-an-attribute/m-p/7220958" target="_blank"&gt;other post&lt;/A&gt; over here specifically mentioning clipboard.&lt;/P&gt;
&lt;P&gt;If&amp;nbsp;I understand correctly now,&amp;nbsp;following works to select mtext and copy the first and second lines to the attributes. Just be aware it is tested only for the drawing you posted.&lt;/P&gt;
&lt;PRE&gt;;;Ranjit Singh
;;7/17/17
(defun c:somefunc  (/ ent ent2 etdata)
 (setq ent  (car (entsel "\nSelect block: "))
       ent2 (eval
             (read
              (strcat "\'(\""
                      (vl-string-subst "\" \"" "\\P" (cdr (assoc 1 (entget (car (entsel "\nSelect mtext:"))))))
                      "\")"))))
 (while (/= "SEQEND" (cdr (assoc 0 (setq etdata (entget (setq ent (entnext ent)))))))
  (and (= "ATTRIB" (cdr (assoc 0 etdata)))
       (cond ((= "TITRE1" (cdr (assoc 2 etdata))) (entmod (subst (cons 1 (car ent2)) (assoc 1 etdata) etdata)))
             ((= "TITRE2" (cdr (assoc 2 etdata))) (entmod (subst (cons 1 (cadr ent2)) (assoc 1 etdata) etdata)))
             (t ())))))

&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Copy_to_attributes.gif" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/378733i3959AFAB470718B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Copy_to_attributes.gif" alt="Copy_to_attributes.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 17:57:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7233425#M117816</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-07-17T17:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7233548#M117817</link>
      <description>&lt;P&gt;It works, eventhough I havn't understood the code yet.&lt;/P&gt;&lt;P&gt;Thanks man!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 18:41:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7233548#M117817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-17T18:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239131#M117818</link>
      <description>&lt;P&gt;Hello, Ranjit,&lt;/P&gt;&lt;P&gt;I am trying to adjust your code in order to realise copying Mtext automatically and assign them to attributes, but it didn't work. the same dwg file attached originally.&lt;/P&gt;&lt;P&gt;Can you spare a bit time to take a look?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;PRE&gt;;;Ranjit Singh
;;7/17/17
(defun c:mtdbl (/ ent ent2 etdata mt blk)
  (setq	mt				; get mtext
	 (ssget	"_X"
		'((0 . "MTEXT")
		  (410 . "~Model")
		  (-4 . "&amp;gt;=,&amp;gt;=,*")
		  (10 1275.0 75.0 0.0)
		  (-4 . "&amp;lt;=,&amp;lt;=,*")
		  (10 1435.0 55.0 0.0)
		 )
	 )
  )

  (setq	blk				; find block
	 (ssget	"_X"
		'((0 . "INSERT")
		  (66 . 1)
		  (2 . "FR_ATTR-****")
		 )
	 )
  )

  (setq	ent  (car blk)
	ent2 (eval
	       (read
		 (strcat "\'(\""
			 (vl-string-subst
			   "\" \""
			   "\\P"
			   (cdr (assoc 1 (entget (car mt))))
			 )
			 "\")"
		 )
	       )
	     )
  )
  (while
    (/=	"SEQEND"
	(cdr
	  (assoc 0 (setq etdata (entget (setq ent (entnext ent)))))
	)
    )
     (and
       (= "ATTRIB" (cdr (assoc 0 etdata)))
       (cond
	 ((= "TITRE1" (cdr (assoc 2 etdata)))
	  (entmod (subst (cons 1 (car ent2)) (assoc 1 etdata) etdata))
	 )
	 ((= "TITRE2" (cdr (assoc 2 etdata)))
	  (entmod (subst (cons 1 (cadr ent2)) (assoc 1 etdata) etdata)
	  )
	 )
	 (t ())
       )
     )
  )
)&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:44:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239131#M117818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T15:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239299#M117819</link>
      <description>&lt;P&gt;You cannot cycle through a selection set using car. You need to call ssname function. This applies to the blk and mt selection sets. Second problem is in your -4 filter. See the fix in below code&lt;/P&gt;
&lt;PRE&gt;;;Ranjit Singh
;;7/17/17
(defun c:mtdbl (/ ent ent2 etdata mt blk)
  (setq	mt ; get mtext
	 (ssget	"_X"
		'((0 . "MTEXT")
		  (410 . "11175-03")
		  (-4 . "&amp;gt;=,&amp;gt;=,*")
		  (10 1275.0 55.0 0.0)
		  (-4 . "&amp;lt;=,&amp;lt;=,*")
		  (10 1435.0 75.0 0.0)
		 )
	 )
  )

  (setq	blk ; find block
	 (ssget	"_X"
		'((0 . "INSERT")
		  (66 . 1)
		  (2 . "FR_ATTR-****")
		 )
	 )
  )

  (setq	ent  (ssname blk 0)
	ent2 (eval
	       (read
		 (strcat "\'(\""
			 (vl-string-subst
			   "\" \""
			   "\\P"
			   (cdr (assoc 1 (entget (ssname mt 0))))
			 )
			 "\")"
		 )
	       )
	     )
  )
  (while
    (/=	"SEQEND"
	(cdr
	  (assoc 0 (setq etdata (entget (setq ent (entnext ent)))))
	)
    )
     (and
       (= "ATTRIB" (cdr (assoc 0 etdata)))
       (cond
	 ((= "TITRE1" (cdr (assoc 2 etdata)))
	  (entmod (subst (cons 1 (car ent2)) (assoc 1 etdata) etdata))
	 )
	 ((= "TITRE2" (cdr (assoc 2 etdata)))
	  (entmod (subst (cons 1 (cadr ent2)) (assoc 1 etdata) etdata)
	  )
	 )
	 (t ())
       )
     )
  )
)&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dbl_attribute.gif" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/379708i119FEE8F4799937A/image-size/large?v=v2&amp;amp;px=999" role="button" title="dbl_attribute.gif" alt="dbl_attribute.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 16:41:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239299#M117819</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-07-19T16:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239331#M117820</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;PRE&gt;.......&lt;BR /&gt;
....  (setq mt				; get mtext
	 (ssget	"_X"
		'((0 . "MTEXT")
		  (410 . "~Model")
		  (-4 . "&amp;gt;=,&amp;gt;=,*")
		  (10 1275.0 75.0 0.0)
		  (-4 . "&amp;lt;=,&amp;lt;=,*")
		  (10 1435.0 55.0 0.0)
		 )
	 )
  )

  (setq	blk				; find block
	 (ssget	"_X"
		'((0 . "INSERT")
		  (66 . 1)
		  (2 . "FR_ATTR-****")
		 )
	 )
  )

)&lt;BR /&gt;....&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Really &lt;SPAN&gt;hifrank001&amp;nbsp;&lt;/SPAN&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Besides, you don't want specifying layout name for 410 &amp;nbsp;DXF group code, that will be specific.to a layout name. such as (410 . "11175-03")&lt;/P&gt;
&lt;P&gt;Anyways,&amp;nbsp;its your call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers buddy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT:&lt;/P&gt;
&lt;PRE&gt;(ssget	"_X"
		(list
		  '(0 . "MTEXT") (cons 410 (getvar 'ctab))
		  '(-4 . "&amp;gt;=,&amp;gt;=,*")
		  '(10 1275.0 75.0 0.0)
		  '(-4 . "&amp;lt;=,&amp;lt;=,*")
		  '(10 1435.0 55.0 0.0))
		 )&lt;/PRE&gt;
&lt;P&gt;i'm just saying &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 17:16:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239331#M117820</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2017-07-19T17:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239493#M117821</link>
      <description>&lt;P&gt;Looking thru most of your query, I believe you&amp;nbsp;should be&amp;nbsp;approaching&amp;nbsp;the problems in a more logical way. Take this discussion for &amp;nbsp;instance, Is this a "repair" job? Upgrading existing title block to for future use and keeping up with company standards? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What we have offered so far is quick "fix" for something too specific, tell us the whole story, maybe we can come up with a better solution to your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pBe&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 17:38:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239493#M117821</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2017-07-19T17:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239875#M117822</link>
      <description>&lt;P&gt;Hello, Ranjit,&lt;/P&gt;&lt;P&gt;As the animation shows, it works; pBe brought up&amp;nbsp; a good point: ctab variable, since plans have different layouts' names; I tested the way suggested, but it always came back with error message SSGET incorrect. Could you incorperate this in the routine?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 19:36:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239875#M117822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T19:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239932#M117823</link>
      <description>&lt;P&gt;I did post the routine in post 8 of 11. Just change&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(ssget	"_X"
		'((0 . "MTEXT")
		  (410 . "11175-03")
		  (-4 . "&amp;gt;=,&amp;gt;=,*")
		  (10 1275.0 55.0 0.0)
		  (-4 . "&amp;lt;=,&amp;lt;=,*")
		  (10 1435.0 75.0 0.0)
		 )
	 )
&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;PRE&gt;(ssget	"_X"
		(list '(0 . "MTEXT")
		  (cons 410  (getvar 'ctab))
		  '(-4 . "&amp;gt;=,&amp;gt;=,*")
		  '(10 1275.0 55.0 0.0)
		  '(-4 . "&amp;lt;=,&amp;lt;=,*")
		  '(10 1435.0 75.0 0.0)
		 )
	 )
&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jul 2017 19:54:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239932#M117823</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-07-19T19:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239938#M117824</link>
      <description>&lt;P&gt;Yes, it is a 'repair' work which includes the followings&lt;/P&gt;&lt;P&gt;1. dettach old xref (titleblock), erase old text and mtext&lt;/P&gt;&lt;P&gt;2 insert new xref, blocks which should have the information from old deledted text and mtext;&amp;nbsp;&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-to-copy-a-text-to-clipboard-and-paste-it-to-an-attribute/m-p/7228677#M355788" target="_blank"&gt;see this post&lt;/A&gt;&amp;nbsp;and &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239875#M355975" target="_blank"&gt;this one&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3 new block will&amp;nbsp;also&amp;nbsp;incorperate the information from file name and/or layout name; &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/copy-extract-string-from-filename/m-p/7238318#M355941" target="_blank"&gt;see this post&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the points weren't listed in one single post because&amp;nbsp;my lisp/script knowledge didn't allow me to ask the correct questions at the very beginning (even now).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this can&amp;nbsp;answer your concern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 19:57:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239938#M117824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T19:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239980#M117825</link>
      <description>&lt;P&gt;Hmm, it works now.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 20:10:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7239980#M117825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T20:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7240009#M117826</link>
      <description>&lt;P&gt;I will combine all routines into one when everthing is solved; at that moment, I believe there&amp;nbsp;must be a simplified way which you guys will come up with. It's a good idea that one post focus one single issue, isn't it? easier for people to search and refer to.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 20:25:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7240009#M117826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T20:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7240290#M117827</link>
      <description>&lt;P&gt;One more question:&lt;/P&gt;&lt;P&gt;If the Mtext has only one line, it should be copied to TITRE2, and TITRE1 should be empty.&lt;/P&gt;&lt;P&gt;Thanks always.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 21:52:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7240290#M117827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T21:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7240326#M117828</link>
      <description>&lt;P&gt;See the change in bold&lt;/P&gt;
&lt;PRE&gt;;;Ranjit Singh&lt;BR /&gt;;;7/17/17&lt;BR /&gt;(defun c:somefunc  (/ ent ent2 etdata)
 (setq ent  (car (entsel "\nSelect block: "))
       ent2 (eval
             (read
              (strcat "\'(\""
                      (vl-string-subst "\" \"" "\\P" (cdr (assoc 1 (entget (car (entsel "\nSelect mtext:"))))))
                      "\")"))))
 (while (/= "SEQEND" (cdr (assoc 0 (setq etdata (entget (setq ent (entnext ent)))))))
  (and (= "ATTRIB" (cdr (assoc 0 etdata)))
       (cond ((= "TITRE1" (cdr (assoc 2 etdata))) (entmod (subst (cons 1 &lt;STRONG&gt;(if (cdr ent2) (car ent2) "")&lt;/STRONG&gt;) (assoc 1 etdata) etdata)))
             ((= "TITRE2" (cdr (assoc 2 etdata))) (entmod (subst (cons 1 &lt;STRONG&gt;(if (cdr ent2) (cadr ent2) (car ent2))&lt;/STRONG&gt;) (assoc 1 etdata) etdata)))
             (t ())))))&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dbl_attribute_2.gif" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/379904i0CA2F721EE50BAC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="dbl_attribute_2.gif" alt="dbl_attribute_2.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 22:07:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/7240326#M117828</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-07-19T22:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/10110869#M117829</link>
      <description>&lt;P&gt;Mr Ranjit, This is the awesome solution but i want to use this for bit different application. For example by block is having total 4 attributes ROOM1, ROOM2, ROOM3,ROOM4. Now depends on room name and number i want to distribute in this all 4 attributes. Let me share my testing file for your ready reference.&amp;nbsp; Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 12:06:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/10110869#M117829</guid>
      <dc:creator>appuraja</dc:creator>
      <dc:date>2021-02-25T12:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: lisp: select a text automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/10111215#M117830</link>
      <description>Also it will be good if routine will allow to select more than 1 block at a time and then take contain from mtext so that all block of same area will have data in single process. Please let me know if i need to explain more about requirement. Thanks in advance.</description>
      <pubDate>Thu, 25 Feb 2021 14:20:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-select-a-text-automatically/m-p/10111215#M117830</guid>
      <dc:creator>appuraja</dc:creator>
      <dc:date>2021-02-25T14:20:07Z</dc:date>
    </item>
  </channel>
</rss>

