<?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: Copying value from one attribute and pasting value to a different attribute in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/copying-value-from-one-attribute-and-pasting-value-to-a/m-p/10085866#M64422</link>
    <description>&lt;P&gt;This has been asked before and pretty sure it was solved. If title block has all revisions in one block, you can make a list in order then replace 1 further down leaving current as is to change, Will try to find.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pbe solved another recently very much like this where it took text and put in title block a good starting point of multi filling a title block.&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-will-put-multiple-texts-into-a-block/td-p/10076232" target="_blank"&gt;Solved: LISP that will put multiple texts into a block - Autodesk Community - AutoCAD&amp;nbsp;&lt;/A&gt; Pbe link did not work in post above ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 03:49:02 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2021-02-16T03:49:02Z</dc:date>
    <item>
      <title>Copying value from one attribute and pasting value to a different attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/copying-value-from-one-attribute-and-pasting-value-to-a/m-p/10081020#M64418</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m looking to create a lisp routine to be able move the value of one attribute to another. It is basically for a title block where we would like to sort the list of revisions to always have the newest listed first in the list versus us just overwriting the oldest revision. If I could get the basic lisp I may be able to tweak it to fit my needs.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2021 17:49:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/copying-value-from-one-attribute-and-pasting-value-to-a/m-p/10081020#M64418</guid>
      <dc:creator>spartan_vng</dc:creator>
      <dc:date>2021-02-13T17:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Copying value from one attribute and pasting value to a different attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/copying-value-from-one-attribute-and-pasting-value-to-a/m-p/10081033#M64419</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2786116"&gt;@spartan_vng&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’m looking to create a lisp routine to be able move the value of one attribute to another. It is basically for a title block where we would like to sort the list of revisions to always have the newest listed first in the list versus us just overwriting the oldest revision. If I could get the basic lisp I may be able to tweak it to fit my needs.&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Bumping the values basically.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;- Collect and store current values to a list&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;- Trim/Do you thingy&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;- Return the value&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go and find a lisp similar to your task&amp;nbsp; in this forum. You'll find a bunch of it &lt;A href="https://forums.autodesk.com/t5/forums/searchpage/tab/message?advanced=false&amp;amp;allow_punctuation=false&amp;amp;filter=location&amp;amp;location=forum-board:130&amp;amp;q=bump%20" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2021 18:03:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/copying-value-from-one-attribute-and-pasting-value-to-a/m-p/10081033#M64419</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-02-13T18:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Copying value from one attribute and pasting value to a different attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/copying-value-from-one-attribute-and-pasting-value-to-a/m-p/10081223#M64420</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2786116"&gt;@spartan_vng&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is a lisp command that let you select a source block and a target block than copies all match attributes values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy&lt;/P&gt;&lt;P&gt;Moshe&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:cpyatt (/ ss0 ss1 AcDbBlkRef0 AcDbBlkRef1 AcDbAttrib0 AcDbAttrib1 attributes0 attributes1)
 (if (and
       (not (prompt "\nPick source block..."))
       (setq ss0 (ssget ":s:e+." '((0 . "insert") (66 . 1))))
       (not (prompt "\nPick target block..."))
       (setq ss1 (ssget ":s:e+." '((0 . "insert") (66 . 1))))
     )
  (progn
   ; allocating memory
   (setq AcDbBlkRef0 (vlax-ename-&amp;gt;vla-object (ssname ss0 0)))
   (setq AcDbBlkRef1 (vlax-ename-&amp;gt;vla-object (ssname ss1 0)))

   (foreach AcDbAttrib1 (setq attributes1 (vlax-invoke AcDbBlkRef1 'GetAttributes)) ; allocating memory

    (if (vl-some 
          '(lambda (obj)
            (if (eq (strcase (vla-get-tagString obj)) (strcase (vla-get-tagString AcDbAttrib1)))
             (setq AcDbAttrib0 obj)
            )
           ); lambda
          (setq attributes0 (vlax-invoke AcDbBlkRef0 'GetAttributes)) ; allocating memory
         ); vl-some
     ; copy attribute value 
     (vla-put-textstring AcDbAttrib1 (vla-get-textString AcDbAttrib0))
    ); if

    ; dispose memory
    (foreach obj attributes0
     (vlax-release-object obj)
    )
     
   ); foreach

   ; dispose memory
   (foreach obj attributes1
    (vlax-release-object obj)
   )
   
   ; dispose memory
   (vlax-release-object AcDbBlkRef1)
   (vlax-release-object AcDbBlkRef0)
  ); progn
 ); if

 (princ "\nDone.") 
 (princ) 
)
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2021 20:04:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/copying-value-from-one-attribute-and-pasting-value-to-a/m-p/10081223#M64420</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2021-02-13T20:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Copying value from one attribute and pasting value to a different attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/copying-value-from-one-attribute-and-pasting-value-to-a/m-p/10081536#M64421</link>
      <description>&lt;P&gt;Where I work now we have a separate revision block, you know ... #, DATE, DESCRIPTION, BY that we just copy up so that the oldest is at the bottom.&amp;nbsp; There's not enough effort involved to require any custom programming, and presumably no two descriptions are exactly the same, but you could copyclip the value of one into another if your typing is challenged.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2021 00:35:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/copying-value-from-one-attribute-and-pasting-value-to-a/m-p/10081536#M64421</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-02-14T00:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Copying value from one attribute and pasting value to a different attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/copying-value-from-one-attribute-and-pasting-value-to-a/m-p/10085866#M64422</link>
      <description>&lt;P&gt;This has been asked before and pretty sure it was solved. If title block has all revisions in one block, you can make a list in order then replace 1 further down leaving current as is to change, Will try to find.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pbe solved another recently very much like this where it took text and put in title block a good starting point of multi filling a title block.&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-will-put-multiple-texts-into-a-block/td-p/10076232" target="_blank"&gt;Solved: LISP that will put multiple texts into a block - Autodesk Community - AutoCAD&amp;nbsp;&lt;/A&gt; Pbe link did not work in post above ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 03:49:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/copying-value-from-one-attribute-and-pasting-value-to-a/m-p/10085866#M64422</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-02-16T03:49:02Z</dc:date>
    </item>
  </channel>
</rss>

