<?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 elevation of object based on another in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-elevation-of-object-based-on-another/m-p/11368424#M41965</link>
    <description>&lt;P&gt;Try this code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;
(defun c:Zmatch ( / s d)
  
  (and (setq s (car (entsel "\nSource: ")))
       (setq s (last (assoc 10 (entget s))))
       (setq d (car (entsel (strcat "\nObject to apply z=" (rtos s) " to: "))))
       (setq d (entget d))
       (entmod (subst (reverse (cons s (cdr (reverse (assoc 10 d))))) (assoc 10 d) d))
       )
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 08:31:31 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2022-08-19T08:31:31Z</dc:date>
    <item>
      <title>Change elevation of object based on another</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-elevation-of-object-based-on-another/m-p/11368250#M41962</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;is there a lisp that I can use to change the elevation of an object based on the selection of another object?&lt;BR /&gt;For example, object 1 has an elevation of 0, and object 2 has an elevation of 155, I want object 1 to change elevation based on the selection of object 2.&lt;BR /&gt;Of course, the X and Y coordinates of object 1 must not change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mladen&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 06:31:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-elevation-of-object-based-on-another/m-p/11368250#M41962</guid>
      <dc:creator>projektiranje88</dc:creator>
      <dc:date>2022-08-19T06:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change elevation of object based on another</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-elevation-of-object-based-on-another/m-p/11368255#M41963</link>
      <description>&lt;P&gt;lots of results searching online:&lt;/P&gt;&lt;P&gt;&lt;A href="https://cadtips.cadalyst.com/object-data/match-elevations" target="_blank"&gt;Match Elevations | CAD Tips (cadalyst.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/match-elevation-of-any-object-lisp/td-p/5596143" target="_blank"&gt;match elevation of any object lisp - Autodesk Community - AutoCAD&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 06:39:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-elevation-of-object-based-on-another/m-p/11368255#M41963</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2022-08-19T06:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change elevation of object based on another</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-elevation-of-object-based-on-another/m-p/11368356#M41964</link>
      <description>&lt;P&gt;Not work for my case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see dwg in the attachment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 07:34:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-elevation-of-object-based-on-another/m-p/11368356#M41964</guid>
      <dc:creator>projektiranje88</dc:creator>
      <dc:date>2022-08-19T07:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change elevation of object based on another</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-elevation-of-object-based-on-another/m-p/11368424#M41965</link>
      <description>&lt;P&gt;Try this code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;
(defun c:Zmatch ( / s d)
  
  (and (setq s (car (entsel "\nSource: ")))
       (setq s (last (assoc 10 (entget s))))
       (setq d (car (entsel (strcat "\nObject to apply z=" (rtos s) " to: "))))
       (setq d (entget d))
       (entmod (subst (reverse (cons s (cdr (reverse (assoc 10 d))))) (assoc 10 d) d))
       )
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 08:31:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-elevation-of-object-based-on-another/m-p/11368424#M41965</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-08-19T08:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change elevation of object based on another</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-elevation-of-object-based-on-another/m-p/11368440#M41966</link>
      <description>It's work!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Than you!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;br</description>
      <pubDate>Fri, 19 Aug 2022 08:43:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-elevation-of-object-based-on-another/m-p/11368440#M41966</guid>
      <dc:creator>projektiranje88</dc:creator>
      <dc:date>2022-08-19T08:43:58Z</dc:date>
    </item>
  </channel>
</rss>

