<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
<title>polyline coords in LISP</title>
<link>http://www.zwsoft.com/forum/viewthread.php?tid=1285</link>
<description>Hello all!
 
I have the same error in zwcad 2010 vernum 30-06-2010 :
 
(setq ent_pol (entsel &quot;'nSelect poly: &quot;)) 'Ok

(setq ss_ob (vlax-ename-&gt;vla-object (car ent_pol))) 'Ok

(setq ss_pts (vlax-get-property ss_ob 'coordinates)) &amp;lt;---- Here fails

  
Very strange, it ran ok in vernum 12-12-2009
 
Regards,
 
William
 </description>
<author>adecco</author>
<pubDate>2010-10-05 20:27:35</pubDate>
<item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1285&amp;pid=12974</link>
<description> &lt;img src=&quot;smileys/smiley1.gif&quot; border=&quot;0&quot; align=&quot;middle&quot; /&gt; 
by the other words &quot;be ready to pay for fixing our bugs again&quot;</description>
<author>vlad_simple</author>
<pubDate>2010-10-18 04:39:24</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1285&amp;pid=11469</link>
<description>Any solution for this post, or an Workaround?</description>
<author>zw_admin</author>
<pubDate>2009-06-23 23:52:54</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1285&amp;pid=11315</link>
<description>
 
&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 10.5pt; COLOR: #1f497d&quot;&gt;&lt;FONT face=&#23435;&#20307;&gt;In general, you can create a LIST according to the following method in LISP application:&lt;/FONT&gt;&lt;/SPAN&gt;
 


 
&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 10.5pt; COLOR: #1f497d&quot;&gt;&lt;FONT face=&#23435;&#20307;&gt; &lt;/FONT&gt;&lt;/SPAN&gt;
 

&lt;P style=&quot;TEXT-INDENT: 5.25pt&quot;&gt;&lt;I&gt;&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 10.5pt&quot;&gt;&lt;FONT face=&#23435;&#20307;&gt;(vl-load-com)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;
 


 
&lt;I&gt;&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 10.5pt&quot;&gt;&lt;FONT face=&#23435;&#20307;&gt;  (setq myent (car(entsel &quot;please select a polyline 'n&quot;)))&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;
 


 
&lt;I&gt;&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 10.5pt&quot;&gt;&lt;FONT face=&#23435;&#20307;&gt;  (setq my-vla-obj (vlax-ename-&gt;vla-object myent))&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;
 


 
&lt;I&gt;&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 10.5pt&quot;&gt;&lt;FONT face=&#23435;&#20307;&gt;         &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;
 


 
&lt;I&gt;&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 10.5pt&quot;&gt;&lt;FONT face=&#23435;&#20307;&gt;  (setq temp1 (vlax-get-property my-vla-obj 'coordinates))&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;
 


 
&lt;I&gt;&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 10.5pt&quot;&gt;&lt;FONT face=&#23435;&#20307;&gt;  (setq temp2(vlax-variant-value temp1))&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;
 


 
&lt;I&gt;&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 10.5pt&quot;&gt;&lt;FONT face=&#23435;&#20307;&gt;  (setq my-list(vlax-safearray-&gt;list temp2))&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;
 


 
&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 10.5pt; COLOR: #1f497d&quot;&gt;&lt;FONT face=&#23435;&#20307;&gt; &lt;/FONT&gt;&lt;/SPAN&gt;
 
&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 10.5pt; COLOR: #1f497d; FONT-FAMILY: &#23435;&#20307;; mso-bidi-font-family: &#23435;&#20307;; mso-font-kerning: 0pt; mso-ansi-: EN-US; mso-fareast-: ZH-CN; mso-bidi-: AR-SA&quot;&gt;But, the return value of &lt;B&gt;&lt;I&gt;(vlax-get-property my-vla-obj 'coordinates) &lt;/I&gt;&lt;/B&gt;in ZWCAD is different from AutoCAD, which stops the&lt;B&gt;&lt;I&gt; (vlax-variant-value temp1)&lt;/I&gt;&lt;/B&gt; function getting the value of coordinates. We are trying to solve the problem, and the solution will be sent to you as soon as possible.  Sorry for the inconvenient.&lt;/SPAN&gt;</description>
<author>zw_admin</author>
<pubDate>2009-04-18 15:54:09</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1285&amp;pid=11309</link>
<description>Hi,
 
I tried to get LWPolyline coords using vlax functions but I can't convert the points to a list.
I'm trying to migrate from ACAD but I have some little problems,as you can see &lt;img src=&quot;http://www.zwcad.org/forum/smileys/smiley19.gif&quot; height=&quot;17&quot; width=&quot;17&quot; border=&quot;0&quot; align=&quot;absmiddle&quot; alt=&quot;Cry&quot; /&gt;.
 
My code:
 
 (setq curba (entlast))
         (setq curba_obj (vlax-ename-&gt;vla-object curba)
                  coords (vlax-get-property curba_obj 'Coordinates)
                  coords (vlax-safearray-&gt;list coords)
 )
 
The vlax-safearray-&gt;list leads to a &quot;bad argument type&quot; error.
 
Please let me know how to solve this.
 
Thx,
 
ALin</description>
<author>adecco</author>
<pubDate>2009-04-14 03:22:52</pubDate>
</item>  </channel>
</rss>