<?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: Correction elevation (Z) of polyline. in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/correction-elevation-z-of-polyline/m-p/12812602#M13311</link>
    <description>&lt;P&gt;edit elevation&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rolisonfelipe_0-1717301314838.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1370656iDB1E32FEF88FE142/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rolisonfelipe_0-1717301314838.png" alt="rolisonfelipe_0-1717301314838.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;rolisonfelipe_0-1717301314838.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jun 2024 04:08:48 GMT</pubDate>
    <dc:creator>rolisonfelipe</dc:creator>
    <dc:date>2024-06-02T04:08:48Z</dc:date>
    <item>
      <title>Correction elevation (Z) of polyline.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/correction-elevation-z-of-polyline/m-p/12812582#M13310</link>
      <description>&lt;P&gt;Hi everyone&lt;BR /&gt;How to correction elevation (Z) of polyline:&lt;/P&gt;&lt;P&gt;Z=980.00112108 ==&amp;gt; 980.00&lt;/P&gt;&lt;P&gt;Z=939.99999986 ==&amp;gt; 940.00&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 03:38:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/correction-elevation-z-of-polyline/m-p/12812582#M13310</guid>
      <dc:creator>neam</dc:creator>
      <dc:date>2024-06-02T03:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Correction elevation (Z) of polyline.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/correction-elevation-z-of-polyline/m-p/12812602#M13311</link>
      <description>&lt;P&gt;edit elevation&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rolisonfelipe_0-1717301314838.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1370656iDB1E32FEF88FE142/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rolisonfelipe_0-1717301314838.png" alt="rolisonfelipe_0-1717301314838.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;rolisonfelipe_0-1717301314838.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 04:08:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/correction-elevation-z-of-polyline/m-p/12812602#M13311</guid>
      <dc:creator>rolisonfelipe</dc:creator>
      <dc:date>2024-06-02T04:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Correction elevation (Z) of polyline.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/correction-elevation-z-of-polyline/m-p/12812611#M13312</link>
      <description>&lt;P&gt;thanx for reply dear&amp;nbsp;rolisonfelipe&lt;/P&gt;&lt;P&gt;I have a lot of polylines with different elevation that I wanted to do with Lisp.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 04:20:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/correction-elevation-z-of-polyline/m-p/12812611#M13312</guid>
      <dc:creator>neam</dc:creator>
      <dc:date>2024-06-02T04:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Correction elevation (Z) of polyline.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/correction-elevation-z-of-polyline/m-p/12812616#M13313</link>
      <description>&lt;P&gt;&lt;FONT&gt;The process will be the same, but you will have to enter the elevation for each line&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;(defun c:ChangeElevation (/ ss elevation i ent dataEnt)&lt;BR /&gt;(setq elevation (getreal "\nDigite a nova elevação: ")) ; Solicita ao usuário a nova elevação&lt;BR /&gt;(setq ss (ssget)) ; Solicita ao usuário que selecione os objetos&lt;BR /&gt;(if ss&lt;BR /&gt;(progn&lt;BR /&gt;(setq i 0)&lt;BR /&gt;(while (&amp;lt; i (sslength ss))&lt;BR /&gt;(setq ent (ssname ss i))&lt;BR /&gt;(setq dataEnt (entget ent))&lt;BR /&gt;(if (assoc 38 dataEnt)&lt;BR /&gt;(progn&lt;BR /&gt;(setq dataEnt (subst (cons 38 elevation) (assoc 38 dataEnt) dataEnt)) ; Altera a elevação&lt;BR /&gt;(entmod dataEnt) ; Aplica a alteração&lt;BR /&gt;)&lt;BR /&gt;(progn&lt;BR /&gt;(setq dataEnt (append dataEnt (list (cons 38 elevation)))) ; Adiciona elevação se não existir&lt;BR /&gt;(entmod dataEnt) ; Aplica a alteração&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(setq i (1+ i))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(princ)&lt;/FONT&gt;&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;good job for you&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 04:29:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/correction-elevation-z-of-polyline/m-p/12812616#M13313</guid>
      <dc:creator>rolisonfelipe</dc:creator>
      <dc:date>2024-06-02T04:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Correction elevation (Z) of polyline.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/correction-elevation-z-of-polyline/m-p/12812633#M13314</link>
      <description>&lt;P&gt;may be this:&lt;/P&gt;&lt;P&gt;(defun c:Test ( / int sel ent)&lt;BR /&gt;(setq int 0)&lt;BR /&gt;(setq sel (ssget "_:L" '((0 . "LWPOLYLINE"))))&lt;BR /&gt;(setq m (sslength sel))&lt;BR /&gt;(repeat m&lt;BR /&gt;(setq ent (ssname sel int))&lt;BR /&gt;(setq obj (vlax-ename-&amp;gt;vla-object (ssname sel int)))&lt;BR /&gt;(setq el (vla-get-elevation obj))&lt;BR /&gt;(setq ele (atoi (rtos el 2 2)))&lt;BR /&gt;(vlax-put obj 'Elevation ele)&lt;BR /&gt;(setq int (1+ int))&lt;BR /&gt;)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 05:03:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/correction-elevation-z-of-polyline/m-p/12812633#M13314</guid>
      <dc:creator>neam</dc:creator>
      <dc:date>2024-06-02T05:03:49Z</dc:date>
    </item>
  </channel>
</rss>

