<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
<title>grread function</title>
<link>http://www.zwsoft.com/forum/viewthread.php?tid=1566</link>
<description>hi all,
 
this is my first post here.
I'm actually trying to load some of my bunch of program in ZWCAD....
but unfortunatly....none work.
 
after testing some code, It seem that many LISP and VLISP function
not working.
 
example...
&lt;img src=&quot;http://classic.zwcad.org/forum/uploads/20100512_055107_zwcpic1.JPG&quot; height=&quot;100&quot; width=&quot;269&quot; border=&quot;0&quot; /&gt;
 
so my question is...
It is better to wait the next release or to spend time modifying all my routines ?
 
 </description>
<author>zw_admin</author>
<pubDate>2010-05-12 05:59:39</pubDate>
<item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1566&amp;pid=12522</link>
<description>&lt;pre&gt;(defun GetExcel (ExcelFile$ SheetName$ MaxRange$ / Column# ColumnRow@ Data@ ExcelRange^
  ExcelValue ExcelValue ExcelVariant^ MaxColumn# MaxRow# Range$ Row# Worksheet)
  (if (= (type ExcelFile$) 'STR)
    (if (not (findfile ExcelFile$))
      (progn
        (alert (strcat &quot;Excel file &quot; ExcelFile$ &quot; not found.&quot;))
        (exit)
      );progn
    );if
    (progn
      (alert &quot;Excel file not specified.&quot;)
      (exit)
    );progn
  );if
  (gc)
  (if (setq *ExcelApp% (vlax-get-object &quot;Excel.Application&quot;))
    (progn
      (alert &quot;Close all Excel spreadsheets to continue!&quot;)
      (vlax-release-object *ExcelApp%)(gc)
    );progn
  );if
  (setq ExcelFile$ (findfile ExcelFile$))
  (setq *ExcelApp% (vlax-get-or-create-object &quot;Excel.Application&quot;))
  (vlax-invoke-method (vlax-get-property *ExcelApp% 'WorkBooks) 'Open ExcelFile$)
  (if SheetName$
    (vlax-for Worksheet (vlax-get-property *ExcelApp% &quot;Sheets&quot;)
      (if (= (vlax-get-property Worksheet &quot;Name&quot;) SheetName$)
        (vlax-invoke-method Worksheet &quot;Activate&quot;)
      );if
    );vlax-for
  );if
  (if MaxRange$
    (progn
      (setq ColumnRow@ (ColumnRow MaxRange$))
      (setq MaxColumn# (nth 0 ColumnRow@))
      (setq MaxRow# (nth 1 ColumnRow@))
    );progn
    (progn
      (setq CurRegion (vlax-get-property (vlax-get-property
        (vlax-get-property *ExcelApp% &quot;ActiveSheet&quot;) &quot;Range&quot; &quot;A1&quot;) &quot;CurrentRegion&quot;)
      );setq
      (setq MaxRow# (vlax-get-property (vlax-get-property CurRegion &quot;Rows&quot;) &quot;Count&quot;))
      (setq MaxColumn# (vlax-get-property (vlax-get-property CurRegion &quot;Columns&quot;) &quot;Count&quot;))
    );progn
  );if
  (setq *ExcelData@ nil)
  (setq Row# 1)
  (repeat MaxRow#
    (setq Data@ nil)
    (setq Column# 1)
    (repeat MaxColumn#
      (setq Range$ (strcat (Number2Alpha Column#)(itoa Row#)))
      (setq ExcelRange^ (vlax-get-property *ExcelApp% &quot;Range&quot; Range$))
      (setq ExcelVariant^ (vlax-get-property ExcelRange^ 'Value))
      (setq ExcelValue (vlax-variant-value ExcelVariant^))
      (setq ExcelValue
        (cond
          ((= (type ExcelValue) 'INT) (itoa ExcelValue))
          ((= (type ExcelValue) 'REAL) (rtosr ExcelValue))
          ((= (type ExcelValue) 'STR) (vl-string-trim &quot; &quot; ExcelValue))
          ((/= (type ExcelValue) 'STR) &quot;&quot;)
        );cond
      );setq
      (setq Data@ (append Data@ (list ExcelValue)))
      (setq Column# (1+ Column#))
    );repeat
    (setq *ExcelData@ (append *ExcelData@ (list Data@)))
    (setq Row# (1+ Row#))
  );repeat
  (vlax-invoke-method (vlax-get-property *ExcelApp% &quot;ActiveWorkbook&quot;) 'Close :vlax-False)
  (vlax-invoke-method *ExcelApp% 'Quit)
  (vlax-release-object *ExcelApp%)(gc)
  (setq *ExcelApp% nil)
  *ExcelData@
);defun GetExcel
&lt;/pre&gt;
==============================
&lt;a href=&quot;http://www.autopartsinc.com&quot; target=&quot;_blank&quot;&gt;Car Parts&lt;/a&gt; | &lt;a href=&quot;http://www.autopartsinc.com&quot; target=&quot;_blank&quot;&gt;Auto Parts&lt;/a&gt;

</description>
<author>cena2020</author>
<pubDate>2010-05-20 12:02:10</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1566&amp;pid=12502</link>
<description>
 
hi,Andra,
 

i am sorry that you havn't received reponsed email.
since many of our technical support engineers are  travelling  abroad on bussiness  , they may reply you as soon as they come back or  see the email.
sorry for any inconvenience.
 
 
 &quot;But I have better service in french release..&quot; do you mean that you have found the solution ?  
 
Best Regards,
Eric</description>
<author>ZWCAD_Eric</author>
<pubDate>2010-05-14 11:45:06</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1566&amp;pid=12492</link>
<description>hi Andrea,
i am sorry that the link is broken.
since i do not good at lisp or vlisp, i feel sorry i can not help you .
but you can send your  program with description or other problems to &lt;a href=&quot;mailto:tech@zwcad.com&quot; target=&quot;_blank&quot;&gt;tech@zwcad.com&lt;/A&gt; ,our technical support team will reply you as soon as they receive you email.
 
Best Regards,
Eric</description>
<author>ZWCAD_Eric</author>
<pubDate>2010-05-13 11:09:02</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1566&amp;pid=12481</link>
<description>
 
hi,Andrea,
 

thank you for youy feedback.
ZWCAD can support Vlisp and lisp very well. Especially in ZWCAD 2010 Beta version, this function is very convenient. If you have not downloaded this version, here is the link for you to have a try:
 
&lt;a href=&quot;http://www.zwcad.org/DownFile.asp?DownType=1&amp;amp;ID=20&quot; target=&quot;_blank&quot;&gt;http://www.zwcad.org/DownFile.asp?DownType=1&amp;amp;ID=20&lt;/A&gt;

to be frankly ,i do not good at lisp and vlisp,
As to the  program you mentioned,  please send the Vlisp program with description to &lt;a href=&quot;mailto:tech@zwcad.com&quot; target=&quot;_blank&quot;&gt;tech@zwcad.com&lt;/A&gt; . Our technical support team will try to find a solution for you ASAP. 

BTW,the new version will be released in the end of this month.
Best Regards,
Eric</description>
<author>ZWCAD_Eric</author>
<pubDate>2010-05-12 09:21:20</pubDate>
</item>  </channel>
</rss>