<?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: vlax-put-property and coordinates in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-put-property-and-coordinates/m-p/10707658#M53613</link>
    <description>&lt;LI-CODE lang="general"&gt;(setq p1 '(0 0 0) p2 '(5 5 5) p3 '(10 10 0))
(vlax-put eo 'Coordinates (apply 'append (list p1 p2 p3)))&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 22 Oct 2021 20:10:22 GMT</pubDate>
    <dc:creator>hak_vz</dc:creator>
    <dc:date>2021-10-22T20:10:22Z</dc:date>
    <item>
      <title>vlax-put-property and coordinates</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-put-property-and-coordinates/m-p/10707475#M53611</link>
      <description>&lt;P&gt;Hello boys how are you.&lt;BR /&gt;I wanted to ask if someone could show me an example of how I can modify the vertices of a 3dpolyline.&lt;BR /&gt;But specifically with this function vlax-put-property and coordinates.&lt;BR /&gt;I just don't understand how it works with the coordinates property.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 18:29:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-put-property-and-coordinates/m-p/10707475#M53611</guid>
      <dc:creator>carlos_m_gil_p</dc:creator>
      <dc:date>2021-10-22T18:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-put-property and coordinates</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-put-property-and-coordinates/m-p/10707643#M53612</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2573929"&gt;@carlos_m_gil_p&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;this function vlax-put-property and coordinates.&lt;BR /&gt;I just don't understand how it works with the coordinates property. ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That property is just a list of XYZ coordinate values, strung into one undifferentiated list.&amp;nbsp; With a VLA object of a 3DPolyline [here one with three vertices] saved to the 'obj' variable, it looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(vlax-get obj 'Coordinates)&lt;BR /&gt;&lt;STRONG&gt;(6612.31 5235.21 0.0 12695.1 10862.8 3.0 7964.04 12288.4 -1.0)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the case of a 3D [or "heavy" 2D] Polyline, there are 3 coordinates for each vertex, so that list represents the following three points:&lt;BR /&gt;&lt;STRONG&gt;(6612.31 5235.21 0.0)&amp;nbsp; (12695.1 10862.8 3.0)&amp;nbsp; (7964.04 12288.4 -1.0)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are numerous examples of dividing such a list up into the sets of coordinates for each vertex, to save them as point locations.&amp;nbsp; Then you can manipulate the values in those as points, and when you're done, (append) them all back into one undifferentiated list, and "put" that list into the Coordinates property of the object.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 19:53:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-put-property-and-coordinates/m-p/10707643#M53612</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-10-22T19:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-put-property and coordinates</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-put-property-and-coordinates/m-p/10707658#M53613</link>
      <description>&lt;LI-CODE lang="general"&gt;(setq p1 '(0 0 0) p2 '(5 5 5) p3 '(10 10 0))
(vlax-put eo 'Coordinates (apply 'append (list p1 p2 p3)))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 22 Oct 2021 20:10:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-put-property-and-coordinates/m-p/10707658#M53613</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-10-22T20:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-put-property and coordinates</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-put-property-and-coordinates/m-p/10709185#M53614</link>
      <description>&lt;P&gt;Hi guys, thanks for the explanations and examples.&lt;BR /&gt;I'll continue studying.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 22:12:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-put-property-and-coordinates/m-p/10709185#M53614</guid>
      <dc:creator>carlos_m_gil_p</dc:creator>
      <dc:date>2021-10-23T22:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: vlax-put-property and coordinates</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-put-property-and-coordinates/m-p/10710487#M53615</link>
      <description>&lt;P&gt;All you need to study is what&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp;showed you... (apply 'append ...))&lt;/P&gt;
&lt;P&gt;Now to get the coordinates in a meaningful form you can use this function...&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;   ;; Function to group a flat list of items into a list of
   ;; multiple lists, each of length N, e.g.
   ;; '(A B C D E F G H I) -&amp;gt; '((A B C)(D E F)(G H I))
   (defun @group (lst n / item new)
     (foreach element (reverse lst)
       (setq item (cons element item))
       (if (= (length item) n)
         (setq new (cons item new) item nil)
       )
     )
     new
   )
&lt;/LI-CODE&gt;
&lt;P&gt;For heavy and 3D polylines, use an N value of 3.&lt;/P&gt;
&lt;P&gt;For lightweights use an N value of 2 (because each vertex has no Z, just X and Y)&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 23:05:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vlax-put-property-and-coordinates/m-p/10710487#M53615</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-10-24T23:05:38Z</dc:date>
    </item>
  </channel>
</rss>

