<?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: Rounding up selected values to user input standard values (Please see attach in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535664#M74273</link>
    <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of feeding standard values in lisp code, Can we feed the standard values by selection method from AutoCAD like shown in below snapshot.&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="Roundingup Values.jpg" style="width: 290px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/774679i067639E50B9592F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Roundingup Values.jpg" alt="Roundingup Values.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 May 2020 13:07:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-23T13:07:38Z</dc:date>
    <item>
      <title>Rounding up selected values to user input standard values (Please see attachment</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535449#M74270</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a favor, to update the selected texts to &lt;FONT color="#FF0000"&gt;standard values mentioned by user.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please have a look on attached dwg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Advanced Thank you all.&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 08:19:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535449#M74270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-23T08:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535556#M74271</link>
      <description>&lt;P&gt;It's fairly easy, you should learn at least these basics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:RoundUpTo ( / s i e v)
  (if (setq s (ssget "_:L" '((0 . "TEXT"))))
    (repeat (setq i (sslength s))
      (if (setq e (ssname s (setq i (1- i)))
		v (getpropertyvalue e "TextString")
		v (atof (vl-list-&amp;gt;string (vl-remove-if-not '(lambda (x) (or (= 46 x) (&amp;lt; 47 x 58))) (vl-string-&amp;gt;list v))))
		v (cadr (member v (vl-sort (cons v '(6 10 16 32 64 100 125 160 200 250 300 415 600 800 1000 1200)) '&amp;lt;))))
	(setpropertyvalue e "TextString" (rtos v 2 0)))))
  (princ)
  ) &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 11:10:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535556#M74271</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-05-23T11:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535654#M74272</link>
      <description>&lt;P&gt;Excellent Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other option to get the list from user selection from AutoCAD instead of mentioning in lisp code like below&lt;/P&gt;&lt;PRE&gt;(6 10 16 32 64 100 125 160 200 250 300 415 600 800 1000 1200)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;because some times the values may change as per AutoCAD text values.&lt;/P&gt;&lt;P&gt;Selection like below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Roundingup Values.jpg" style="width: 290px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/774675i8AAA9800607F32E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Roundingup Values.jpg" alt="Roundingup Values.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 12:55:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535654#M74272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-23T12:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535664#M74273</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of feeding standard values in lisp code, Can we feed the standard values by selection method from AutoCAD like shown in below snapshot.&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="Roundingup Values.jpg" style="width: 290px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/774679i067639E50B9592F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Roundingup Values.jpg" alt="Roundingup Values.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 13:07:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535664#M74273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-23T13:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535673#M74274</link>
      <description>&lt;P&gt;Yes, of course.&lt;/P&gt;
&lt;P&gt;You could either provide a dialogue with a list box or you could actually create a list of text in the drawing for the user to select one.&amp;nbsp; Either way, though, you can't avoid using AutoLisp.&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 13:19:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535673#M74274</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-05-23T13:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535696#M74275</link>
      <description>&lt;P&gt;Thank you Sir.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you Please help me?&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 13:48:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535696#M74275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-23T13:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535706#M74276</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Instead of feeding standard values in lisp code, Can we feed the standard values by selection method from AutoCAD like shown in below snapshot.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;You mean NOT hard-codfing the values on a lisp routine, as those values are not always the same? and show those as allowable values on a list box?&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 13:57:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535706#M74276</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-23T13:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535709#M74277</link>
      <description>&lt;P&gt;Yes Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The standard values are not fixed values, those are some times variable values. That's why I asked selection input instead of mentioning in lisp code.&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 14:05:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535709#M74277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-23T14:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535710#M74278</link>
      <description>&lt;PRE&gt;(vl-load-com)

(defun c:RoundUpToStandards ( / z s i e v)
  (if (and (princ "\nStandards, ")
	   (setq z (ssget "_:L" '((0 . "TEXT"))))
	   (setq z (apply 'list (mapcar '(lambda (x) (atoi (cdr (assoc 1 (entget x)))))
					(vl-remove-if 'listp (mapcar 'cadr (ssnamex z))))))
	   (princ "\nActual values, ")
	   (setq s (ssget "_:L" '((0 . "TEXT"))))
	   )
    (repeat (setq i (sslength s))
      (if (setq e (ssname s (setq i (1- i)))
		v (getpropertyvalue e "TextString")
		v (atof (vl-list-&amp;gt;string (vl-remove-if-not '(lambda (x) (or (= 46 x) (&amp;lt; 47 x 58))) (vl-string-&amp;gt;list v))))
		v (cadr (member v (vl-sort (cons v z) '&amp;lt;))))
	(setpropertyvalue e "TextString" (rtos v 2 0)))))
  (princ)
  )&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 May 2020 14:09:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535710#M74278</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-05-23T14:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535723#M74279</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The standard values are not fixed values, those are some times variable values. That's why I asked selection input instead of mentioning in lisp code.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First of all, don't call me sir &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;Secondly, are the "&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;S&lt;/STRONG&gt;&lt;/FONT&gt;tandard &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;V&lt;/STRONG&gt;&lt;/FONT&gt;alues" column always available for selection?&amp;nbsp; I dont see the relation between&amp;nbsp;"&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;U&lt;/FONT&gt;&lt;/STRONG&gt;ser &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;S&lt;/STRONG&gt;&lt;/FONT&gt;election &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;V&lt;/STRONG&gt;&lt;/FONT&gt;alues" and&amp;nbsp; the "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;O&lt;/STRONG&gt;&lt;/FONT&gt;utput &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;V&lt;/STRONG&gt;&lt;/FONT&gt;alues" or should i jsut say UPDATED &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;SV&lt;/FONT&gt;&lt;/STRONG&gt; at all.&amp;nbsp; Do you already have a lisp code that shows a list box for &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;SV&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;a&lt;SPAN style="font-family: inherit;"&gt;nd &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;&lt;FONT color="#0000FF"&gt;USV? &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;what are you going to use the output values for anyway?&amp;nbsp; &lt;STRIKE&gt;&amp;nbsp;Were the&amp;nbsp; suggestions of&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp; helped you in any way?&lt;/STRIKE&gt;&amp;nbsp;Why did the chicken cross the road?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808000"&gt;&lt;STRONG&gt;EDIT: Apprarently it did help, I did not even get to finish my post &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 14:23:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535723#M74279</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-23T14:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535726#M74280</link>
      <description>&lt;P&gt;Thanks a lot Sir, Working in a nice manner.&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 14:23:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535726#M74280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-23T14:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535771#M74281</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;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;...
		v (cadr (member v (vl-sort (cons v z) '&amp;lt;))))
...	&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Now i get it &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;2.1a   -&amp;gt; 6
a8.54  -&amp;gt;10&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is very clever&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 15:15:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9535771#M74281</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-23T15:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9537319#M74282</link>
      <description>Rounding up reminds me of that scene in *The Mask* with Jim Carey as&lt;BR /&gt;Stanley Ipkus.  He's got his POS car at a repair shop and the mechanic is&lt;BR /&gt;writing down each item of repair.  Stanley says, "But there are no&lt;BR /&gt;numbers!"  To which the mechanic replies "&lt;HEH heh=""&gt;&lt;/HEH&gt;</description>
      <pubDate>Mon, 25 May 2020 00:24:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9537319#M74282</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-05-25T00:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9537636#M74283</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Excellent Sir,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any other option to get the list from user selection from AutoCAD instead of mentioning in lisp code ..&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;One quick way is to have an external file as the source for the range of numbers, either on the same folder as the drawing, or if you have a standard folder structure and place the source file there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Had time to burn.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun c:RoundUpFromRange ( / _L2S range rangeSource opf a i s ent v)
;;		pBe May 2020		;;

(defun _L2S (s a)
  ((lambda (v)
     (setq s (vl-string-right-trim v s)
	   s (vl-string-Left-trim v s)))
    (strcat "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" a))
  )

(if (and
	(setq range nil
	      rangeSource
	       (findfile (strcat (getvar 'dwgprefix)
				 "Range for this project.txt")))
	(setq range
	       (progn
		 (setq opf (open rangeSource "r"))
		 (while	(setq a (read-line opf))
		   (setq range (cons (atoi a) range))
		 )
		 (close opf)
		 (reverse range))
		       )
	(princ "\nActual values, ")
	(setq s (ssget "_:L" '((0 . "TEXT"))))
	)
 (repeat (setq i (sslength s))
   	(if
	  (setq	e (ssname s (setq i (1- i)))
		v   (atof (_L2S (getpropertyvalue e "TextString") ""))
		v   (Vl-some '(lambda (n m)
				(cond
				  ((&amp;lt;= v n) n)
				  ((&amp;lt;= n v m) m)
				)
			      ) range (Cdr range)
		    )
	  )
	  (setpropertyvalue e "TextString" (rtos v 2 0)))
	  	)
	  )
  (princ)
  )&lt;/LI-CODE&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 07:29:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9537636#M74283</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-25T07:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9537668#M74284</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;&amp;nbsp;wrote:&lt;BR /&gt;&amp;nbsp;To which the mechanic replies "&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;"There will be", Hey I have to look that up, that was a long time ago John&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=I-TyHa_-UmE" target="_blank" rel="noopener"&gt;The Mask&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 07:45:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9537668#M74284</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-25T07:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9537768#M74285</link>
      <description>&lt;P&gt;Thanks a lot for extra feature, by keeping the text file inside the same drawing path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of keeping in same drawing path, can we make an option to select file path from user end?&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 08:58:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9537768#M74285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-25T08:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9537893#M74286</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks a lot for extra feature, by keeping the text file inside the same drawing path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of keeping in same drawing path, can we make an option to select file path from user end?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Refer to updated attached file [&amp;nbsp;RoundUpFromRange.LSP ]&lt;/P&gt;
&lt;P&gt;Snippet:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;..
	(setq range nil
	      rs (getfiled "Select Source file"
				    (if	rs (vl-filename-directory rs)
				      (getvar 'dwgprefix)) "txt" 16)
	      )
	(setq range
	       (progn
		 (setq opf (open rs "r"))
		 (while	(setq a (read-line opf))
		   (if (numberp (setq a (Read a)))
		   (setq range (cons a range)))
		 )
		 (close opf)
		 (reverse range))
		       )
..&lt;/LI-CODE&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 10:20:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9537893#M74286</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-25T10:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9538013#M74287</link>
      <description>&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;working nice, except one thing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If input values having digits like 6.5, 10.25, 16.5, 32.5, Then output is coming like only 6, 10, 16, 32.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The lisp command not taking any digits.&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 11:23:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9538013#M74287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-25T11:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9538564#M74288</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks a lot,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;working nice, except one thing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If input values having digits like 6.5, 10.25, 16.5, 32.5, Then output is coming like only 6, 10, 16, 32.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The lisp command not taking any digits.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Really&amp;nbsp;@Anonymous&amp;nbsp;?&amp;nbsp; What did we say about being clear on what you are requesting.&amp;nbsp;&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-text-in-particular-range-value/m-p/9531401#M400087" target="_blank" rel="noopener"&gt;Reminder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add the sub and edit the line that matches the&amp;nbsp; line shown below [ between ... ]&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(setq RealorInt (lambda  (n)
      (if (zerop (rem n 1)) 0 2)
       )
      )
....
(setpropertyvalue e "TextString" (rtos v 2 (RealorInt v)))
....&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 16:46:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9538564#M74288</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-05-25T16:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding up selected values to user input standard values (Please see attach</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9538591#M74289</link>
      <description>Instead of that myopic RealorInt function, I think it's simpler...&lt;BR /&gt;Command: (type 3) INT&lt;BR /&gt;Command: (type 3.0) REAL</description>
      <pubDate>Mon, 25 May 2020 17:05:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rounding-up-selected-values-to-user-input-standard-values-please/m-p/9538591#M74289</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-05-25T17:05:32Z</dc:date>
    </item>
  </channel>
</rss>

