<?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: Select text in particular range value in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531002#M74430</link>
    <description>&lt;P&gt;Thanks for responding Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here the task is to select the numbers in particular range (Suppose 2.5 to 8), then only those numbers to be selected from user selection, and remaining to be unselected. Some texts may include alphabets either on prefix or suffix or includes both prefix and suffix.&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2020 06:03:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-21T06:03:10Z</dc:date>
    <item>
      <title>Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9529993#M74422</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am searching for a long time for this requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The requirement is to select the text, which are in a particular range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose the drawing has a lot of thousands of numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the user wants to select the numbers which are between 10.5 to 25.4, then only those numbers should be selected from user selection and remaining to be unselected from user selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lisp should consider the values even text has alphabets and decimals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can consider the below code for further editing, if possible.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:MMA (/ ss lst numlst txt2num)
(defun txt2num (txt / num)
(or (setq num (distof txt 5))
(setq num (distof txt 2))
(setq num (distof txt 1))
(setq num (distof txt 4))
(setq num (distof txt 3))
)
num
)
(prompt "\nSelect text to analize numbers.")
(if (setq ss (ssget '((0 . "TEXT,MTEXT"))))
(progn
(setq lst (vl-remove-if 'listp (mapcar 'cadr (ssnamex ss))))
(mapcar '(lambda (x) (setq numlst (cons (txt2num (cdr (assoc 1 (entget x)))) numlst)))
lst
)
(if (setq numlst (vl-remove-if 'listp numlst))
(progn
(print "Min number ")
(princ (apply 'min numlst))
(print "Max number ")
(princ (apply 'max numlst))
(print "Average of numbers ")
(princ (/ (apply '+ numlst) (length numlst)))
)
(prompt "\nNo numberf found.")
)
)
)
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Advanced thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 17:27:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9529993#M74422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-20T17:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530215#M74423</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;Please upload your sample.dwg&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 19:12:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530215#M74423</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-05-20T19:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530251#M74424</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Lisp should consider the values even text has alphabets and decimals.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How many kinds of configurations might that take?&amp;nbsp; I ask because, for example,&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;(atof "12.345ABC")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;returns &lt;FONT color="#000000"&gt;12.345&lt;/FONT&gt;, so if letters occur &lt;EM&gt;only after&lt;/EM&gt;&amp;nbsp; the numerical part you want, &lt;FONT color="#000000"&gt;(atof)&lt;/FONT&gt; could be used without modifying the text content.&amp;nbsp; But&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;(atof "ABC12.345")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;returns 0.0, so if letters can come &lt;EM&gt;before&lt;/EM&gt;&amp;nbsp; the numerical part, the text content would need to have non-numerical characters stripped off the beginning before conversion to a number.&lt;/P&gt;
&lt;P&gt;And if you need to have other-than-decimal formats and use&amp;nbsp;&lt;FONT color="#000000"&gt;(distof)&lt;/FONT&gt;, applying that to&amp;nbsp;&lt;EM&gt;either&lt;/EM&gt;&amp;nbsp; of those strings returns &lt;EM&gt;nil&lt;/EM&gt;, so for that, non-numerical characters would need to be stripped off &lt;EM&gt;both&lt;/EM&gt;&amp;nbsp; ends before it could do anything with the string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, could there ever be &lt;EM&gt;more than one&lt;/EM&gt;&amp;nbsp; numerical part in the same string, such as "abc123.45xyz543.21"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, I see you have MTEXT accepted for selection.&amp;nbsp; Do you ever use Mtext containing &lt;EM&gt;stacked&amp;nbsp;fractions &lt;/EM&gt;?&amp;nbsp; The special coding in the string content to make them stack would mess up any analysis of the number represented, or would require some more sophisticated code to pull the fraction out.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 19:34:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530251#M74424</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-05-20T19:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530331#M74425</link>
      <description>&lt;P&gt;as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp; ask&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How many kinds of configurations might that take?&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;&lt;SPAN&gt;A sample dwg will solve all questions&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 20:19:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530331#M74425</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-05-20T20:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530735#M74426</link>
      <description>&lt;P&gt;I tried using a ssget filter with &amp;lt; &amp;gt; etc but it found numbers ok but once the range was added did not work someone smarter than me may know a ssget way using -4 "and" ### &amp;lt; &amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way may be to get all text then check if &amp;lt; &amp;gt; adding to a list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f5f2f0; color: inherit; font-family: Menlo,Monaco,Consolas,'Courier New',monospace; font-size: inherit; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre-wrap; word-spacing: 0px;"&gt;(setq ss1 (ssget "x" '((0 . "TEXT")(1 . "#,##,###,####,#####")(410 . "Model"))))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 00:43:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530735#M74426</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-05-21T00:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530953#M74427</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find attacahed drawing having lot of numbers. Marked some circles where alphabets also included in text. Some Texts have Prefixes and some have suffixes and some have both Prefixes and suffixes.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Range Selection.JPG" style="width: 588px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/773644i2EB93B2C0B12DC92/image-size/large?v=v2&amp;amp;px=999" role="button" title="Range Selection.JPG" alt="Range Selection.JPG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 04:50:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530953#M74427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-21T04:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530993#M74428</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Please find attacahed drawing having lot of numbers. Marked some circles where alphabets also included in text. Some Texts have Prefixes and some have suffixes and some have both Prefixes and suffixes.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its actually easier if you filter the selection by their Z value instead of the string&amp;nbsp;@Anonymous&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;S&lt;SPAN style="font-family: inherit;"&gt;ee how easy for us to suggest if there is a an actual drawing to look into &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Try that filter with ssget, give us a shout if you need help with that.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Something ike this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(setq ss (ssget "_X" '((0 . "TEXT") (-4 . "*,*,&amp;gt;=") (10 0.0 0.0 7.83)(-4 . "*,*,&amp;lt;=")
                           				  (10 0.0 0.0 8.55) )))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can build a range by prompting for lowest and highest point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 05:51:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530993#M74428</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-21T05:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530999#M74429</link>
      <description>&lt;P&gt;Try it like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(Setq low (getreal "\nEnter Low point: "))
(Setq high (getreal "\nEnter High point: "))
(setq ss (ssget "_X" (list '(0 . "TEXT")'(-4 . "*,*,&amp;gt;=")
		        (list 10 0.0 0.0 low)
		       '(-4 . "*,*,&amp;lt;=")
		       (list 10 0.0 0.0 high) )))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also jsut use the Z value after selection is already set&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(&amp;lt; low (caddr (cdr (assoc 10 (entget en)))) high)&lt;/LI-CODE&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 05:59:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9530999#M74429</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-21T05:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531002#M74430</link>
      <description>&lt;P&gt;Thanks for responding Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here the task is to select the numbers in particular range (Suppose 2.5 to 8), then only those numbers to be selected from user selection, and remaining to be unselected. Some texts may include alphabets either on prefix or suffix or includes both prefix and suffix.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 06:03:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531002#M74430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-21T06:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531011#M74431</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for responding Sir,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But here the task is to select the numbers in particular range (Suppose 2.5 to 8), then only those numbers to be selected from user selection, and remaining to be unselected. Some texts may include alphabets either on prefix or suffix or includes both prefix and suffix.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try what i suggested first, the &lt;STRONG&gt;string&lt;/STRONG&gt; prefix and suffix has nothing to do with the selection using the filter shown on my previous post, it will still select tha numerical value of those TEXT based on the values you provided via &lt;EM&gt;&lt;STRONG&gt;Low&lt;/STRONG&gt;&lt;/EM&gt; and &lt;STRONG&gt;&lt;EM&gt;High&lt;/EM&gt;&lt;/STRONG&gt; variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By collecting the Z values of the selected TEXT, you can get the high and low values as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&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>Thu, 21 May 2020 06:24:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531011#M74431</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-21T06:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531024#M74432</link>
      <description>&lt;LI-CODE lang="general"&gt;(defun c:MMA (/ ss lst numlst txt2num)
  (prompt "\nSelect text to analize numbers.")
  (if (setq ss (ssget '((0 . "TEXT,MTEXT"))))
    (progn
      (setq lst (vl-remove-if 'listp (mapcar 'cadr (ssnamex ss))))
      (foreach x lst
	(setq numlst (cons
		       (caddr (cdr (assoc 10 (entget x)))) numlst)))
	  (print "Min number ")
	  (princ (apply 'min numlst))
	  (print "Max number ")
	  (princ (apply 'max numlst))
	  (print "Average of numbers ")
	  (princ (/ (apply '+ numlst) (length numlst)))
	) ;_ end of progn
	(prompt "\nNo numberf found.")
      )
  (princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 May 2020 06:31:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531024#M74432</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-21T06:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531069#M74433</link>
      <description>&lt;P&gt;Sir,&lt;/P&gt;&lt;P&gt;Nothing text is selecting by this code. It showing like below pic.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.JPG" style="width: 204px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/773670i10F7027B4B1E1E5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error.JPG" alt="Error.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here I need only &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;selection of numbers in between the user-defined range&lt;/FONT&gt;&lt;/STRONG&gt; irrespective of any other text properties, whether it has alphabetical or z elevations or in different layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thans a lot Sir for spending your valuable time.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 06:49:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531069#M74433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-21T06:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531110#M74434</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sir,&lt;/P&gt;
&lt;P&gt;Nothing text is selecting by this code. It showing like below pic.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I just run the MMA from post#11&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Select objects:
"Min number " 0.38
"Max number " 896.54
"Average of numbers " 10.0203&lt;/LI-CODE&gt;
&lt;P&gt;Please check again. &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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 07:11:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531110#M74434</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-21T07:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531155#M74435</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached drawing for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need exactly only text selections which falls in between user defined range. The lisp command should ask as below at command prompt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Please enter Min value of Range = " (Suppose user enters 6.5)&lt;/P&gt;&lt;P&gt;"Please enter Max value of Range = " (Suppose user enters 8.2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then the texts, which have values in between 6.5 and 8.2, shall be selected and remaining shall be unselected from user selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The text may have alphabets sometimes with both prefix and suffix also. (I have marked them in yellow circles)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance Sir.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 07:50:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531155#M74435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-21T07:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531213#M74436</link>
      <description>&lt;P&gt;Strange that the first drawing file you submitted is different from the second one&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun c:MMA (/ ss minval maxval numlst x str n i)

(prompt "\nSelect text to analize numbers.")
(if (and
          
          (setq numlst nil
                minval (getreal  "Please enter Min value of Range = "))
          (setq maxval (getreal  "Please enter Min value of Range = "))
          (setq ss (ssget "_X" '((0 . "TEXT,MTEXT"))))          
          )
    
    (progn
          (repeat (setq i (sslength ss))
                (setq x   (entget (ssname ss (setq i (1- i))))
                      str (strcase (cdr (assoc 1 x)))
                      n   (read
                                (vl-list-&amp;gt;string
                                      (vl-remove-if
                                            '(lambda (c)
                                                   (&amp;lt;= 65 c 90))
                                            (vl-string-&amp;gt;list str)
                                            )
                                      )
                                )
                      )
                  	(if (&amp;lt;= minval n maxval)                            
                                  (setq numlst (cons n numlst))))
      
	  (print "Min number ")
	  (princ (apply 'min numlst))
	  (print "Max number ")
	  (princ (apply 'max numlst))
	  (print "Average of numbers ")
	  (princ (/ (apply '+ numlst) (length numlst)))
	)
    )
      (princ)
            )&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;"Min number " 6.5&lt;BR /&gt;"Max number " 8.2&lt;BR /&gt;"Average of numbers " 7.3712&lt;/P&gt;
&lt;P&gt;This one will rub a little bit longer as it involves convertsion&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PS: if you had stayed on the original format. keeping the Z values it would have been a lot faster.&amp;nbsp; Now everything is flatten&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Looking for an old routine of mine that removes the none numbers on the string. its way faster than the one i post here.&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>Thu, 21 May 2020 08:53:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531213#M74436</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-21T08:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531282#M74437</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please forget about z elevations and min, max &amp;amp; avergae values of text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The lisp code I have provided is for just editing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The exact requirement is to selection only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The lisp should select those numbers, which are in user input range (Suppose in between 4.5 to 5.0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here there is no matter of finding minimum, maximum and average value of text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's matter about only selection of text, which are having text value in between certain range of min and max values fed by user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please have a look on my attached image once, which autoselected the values between 4.5 to 5.0 and remaining to be unselected from user selection set. If you see in snapshot all selected values are in between 4.5 to 5.0 only.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My requirement.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/773726iE6BAC7011CEA64FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="My requirement.JPG" alt="My requirement.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 09:19:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531282#M74437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-21T09:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531316#M74438</link>
      <description>&lt;LI-CODE lang="general"&gt;(defun c:MMA  (/ ss minval maxval numlst x str n i ssetfound)

      (prompt "\nSelect text to analize numbers.")
      (if (and

                (setq minval
                           (getreal
                                 "Please enter Min value of Range = "))
                (setq maxval
                           (getreal
                                 "Please enter Min value of Range = "))
                (setq ssetfound (ssadd)
                      ss      (ssget "_X"
                                     '((0 . "TEXT,MTEXT")
                                       (410 . "Model"))))
                )

            (progn
                  (repeat (setq i (sslength ss))
                        (setq x   (entget (Setq e    (ssname ss
                                                             (setq i (1- i)))))
                              str (strcase (cdr (assoc 1 x)))
                              n   (read
                                        (vl-list-&amp;gt;string
                                              (vl-remove-if
                                                    '(lambda (c)
                                                           (&amp;lt;= 65
                                                               c
                                                               90))
                                                    (vl-string-&amp;gt;list
                                                          str)
                                                    )
                                              )
                                        )
                              )
                        (if (&amp;lt;= minval n maxval)
                              (ssadd e ssetfound))
                        )
                  (sssetfirst nil ssetfound)
                  )
            )
      (princ)
      )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dont forget to set the Grips limit -&amp;gt;&amp;nbsp;GRIPOBJLIMIT&lt;/P&gt;
&lt;P&gt;or Options/Selection/Grips/Object Selection limit for display of grips&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 09:40:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531316#M74438</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-21T09:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531350#M74439</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot, you saved lot of drafting time, Excellent.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 09:56:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531350#M74439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-21T09:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select text in particular range value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531401#M74440</link>
      <description>&lt;P&gt;You are welcome, plus you have tons of lisp code on this thread from various members, Hope you can learn from those.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also , please do this for us, next time, be clear on the what you're requesting for and avoid posting conflicting information. The clearer the goal the faster you get correct results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 10:23:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531401#M74440</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-21T10:23:59Z</dc:date>
    </item>
    <item>
      <title>I need to select all texts with 3 decimal places in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/10744607#M74441</link>
      <description>&lt;P&gt;Good morning,&lt;BR /&gt;I'm sorry, can someone help me?&lt;BR /&gt;I need to select all texts with 3 decimal places, but I can't use the filter with this type of selection.&lt;BR /&gt;Can someone help me, with a routine that selects all the texts present in a drawing with X number of decimal places?&lt;BR /&gt;Thank you all for your help.&lt;/P&gt;&lt;P&gt;João&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Nov 2021 09:16:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/10744607#M74441</guid>
      <dc:creator>JM_THS_4Y</dc:creator>
      <dc:date>2021-11-09T09:16:48Z</dc:date>
    </item>
  </channel>
</rss>

