<?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: Change multiple values by same amount in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10745034#M52774</link>
    <description>&lt;P&gt;You can use Express Tool Block ATTOUT,&lt;/P&gt;&lt;P&gt;Open the TXT file into Excel.&lt;/P&gt;&lt;P&gt;Sort the file and remove the ones with X's.&lt;/P&gt;&lt;P&gt;Then use a formula to subtract.&lt;/P&gt;&lt;P&gt;The use Express Tool Block ATTIN.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Done.&lt;/P&gt;&lt;P&gt;See Attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JRR.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 12:59:50 GMT</pubDate>
    <dc:creator>jrreid</dc:creator>
    <dc:date>2021-11-09T12:59:50Z</dc:date>
    <item>
      <title>Change multiple values by same amount</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744687#M52767</link>
      <description>&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there is a shortcut or LISP that would enable me to change multiple values by the same amount.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example is I want to drop a site by say 300mm therefore I want 100 values to drop by 0.3. I am trying to avoid doing this manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 09:58:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744687#M52767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-09T09:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple values by same amount</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744710#M52768</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How your elevation texts are created. as a text entity or block?&lt;/P&gt;
&lt;P&gt;Are they placed in single or multiple layers. Do you want to pick texts one by one or automatically select all text (mtext) entities in particular layer?&lt;/P&gt;
&lt;P&gt;If you want lisp solution post your request in &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank" rel="noopener"&gt;Visual Lisp, AutoLISP and General Customization forum.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Attach sample drawing (dwg) to help make code easier, without need for many additional questions.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 10:10:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744710#M52768</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-11-09T10:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple values by same amount</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744718#M52769</link>
      <description>&lt;P&gt;Morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are on the same layer and in blocks. I would want to select the ones to change as not all will.&lt;/P&gt;&lt;P&gt;What is the best way going forward. I have included a dwg with the blocks in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 10:17:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744718#M52769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-09T10:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple values by same amount</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744746#M52770</link>
      <description>&lt;P&gt;I'll make a script for your particular case. Since I'm currently at work I'll work on it during a break.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 10:28:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744746#M52770</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-11-09T10:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple values by same amount</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744761#M52771</link>
      <description>&lt;P&gt;Thats very kind of you. Is there somewhere I can learn to write scripts/LISPs?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 10:34:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744761#M52771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-09T10:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple values by same amount</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744840#M52772</link>
      <description>&lt;P&gt;You can read about&amp;nbsp; autolisp and visual lisp in Autocad help, check site like &lt;A href="http://afralisp.net" target="_blank" rel="noopener"&gt;AfraLisp&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and you have autolisp forum link in previous post.&lt;/P&gt;
&lt;P&gt;I'll have to postpone my answer for later today since your level attribute values are not consistent. In some of them you have value like "102.5x" , so code will be a bit longer, and I'm flooded with work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 11:16:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744840#M52772</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-11-09T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple values by same amount</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744981#M52773</link>
      <description>&lt;P&gt;Ignore the ones with x, they are existing and therefore will never change. Sorry I forgot about those&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 12:30:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10744981#M52773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-09T12:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple values by same amount</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10745034#M52774</link>
      <description>&lt;P&gt;You can use Express Tool Block ATTOUT,&lt;/P&gt;&lt;P&gt;Open the TXT file into Excel.&lt;/P&gt;&lt;P&gt;Sort the file and remove the ones with X's.&lt;/P&gt;&lt;P&gt;Then use a formula to subtract.&lt;/P&gt;&lt;P&gt;The use Express Tool Block ATTIN.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Done.&lt;/P&gt;&lt;P&gt;See Attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JRR.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 12:59:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10745034#M52774</guid>
      <dc:creator>jrreid</dc:creator>
      <dc:date>2021-11-09T12:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple values by same amount</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10745039#M52775</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Ignore the ones with x, they are existing and therefore will never change. Sorry I forgot about those&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Take care about this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-within-a-block-by-same-amount/td-p/10744723" target="_blank" rel="noopener"&gt;OP has accepted solution at Visual lisp forum&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 13:01:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10745039#M52775</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-11-09T13:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple values by same amount</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10746695#M52776</link>
      <description>&lt;P&gt;Somewhere in this vast repository of donated code is my EDITNUM.lsp, for which I once charged a bundle but nowadays everyone wants the same for free.&amp;nbsp; So search and enjoy.&amp;nbsp; I think it handles most kinds of textstrings, but maybe mtext formatting will not provide desired results.&amp;nbsp; I don't remember.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 00:54:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10746695#M52776</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-11-10T00:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple values by same amount</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10747109#M52777</link>
      <description>&lt;P&gt;This is quick and dirty.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; adjust level 1 attribute block if more atts need to look at tag name
; By AlanH NOV 2021


(defun c:add2att ( / lay ss num val x)
(setq num (getreal "\nEnter change "))

(setq lay (cdr (assoc 8 (entget (car (entsel "\nPick a block for layer "))))))
(setq ss (ssget "X" (list (cons 0 "INSERT")(cons 8 lay)(cons 410 "Model"))))

(repeat (setq x (sslength ss))
(setq obj (vlax-ename-&amp;gt;vla-object (ssname ss (setq x (- x 1)))))
(if (= (Vla-get-EffectiveName obj) "ACE-EL-POINT_LEVEL")
  (progn
  (foreach att (vlax-invoke  obj 'getattributes)
    (setq val (vla-get-textstring att))
    (if (or (wcmatch val "*x*")(wcmatch val "*X*" ))
    (princ "\nmiss existing")
    (progn
    (setq val (+ num (atof val)))
    (vla-put-textstring att (rtos val 2 2))
    )
   )
  )
)
)
)
(princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Nov 2021 06:53:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-multiple-values-by-same-amount/m-p/10747109#M52777</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-11-10T06:53:38Z</dc:date>
    </item>
  </channel>
</rss>

