<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
<title>pause command LISP</title>
<link>http://www.zwsoft.com/forum/viewthread.php?tid=1222</link>
<description>&lt;strong&gt;pause &lt;/strong&gt;doesn't work in ZWCAD at all. sorry &lt;img src=&quot;http://www.zwcad.org/forum/smileys/smiley5.gif&quot; height=&quot;17&quot; width=&quot;17&quot; border=&quot;0&quot; align=&quot;absmiddle&quot; alt=&quot;C&#111;nfused&quot; /&gt;</description>
<author>zw_admin</author>
<pubDate>2008-10-21 04:40:04</pubDate>
<item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1222&amp;pid=11146</link>
<description>
 
Hi,
 

I think it might be a communications problem with &lt;strong&gt;LISP&lt;/strong&gt; and the main &lt;strong&gt;ZWCAD &lt;/strong&gt;program.  Your orignal codes should work with the addition of &lt;strong&gt;&quot;&quot;&lt;/strong&gt; after the second pause, but for some reason the software is not processing it properly, it seems like it is treating the codes as if it was written usng &lt;EM&gt;script&lt;/EM&gt;, which does not support the &lt;strong&gt;pause&lt;/strong&gt; command. I tried typing your codes in one single line in the command prompt as follows:
 
&lt;FONT color=#3366ff&gt;(command &quot;qleader&quot; (getpoint &quot;'nGeef startpunt op: &quot;) pause pause &quot;&quot; (strcat &quot;i.h.w. bepalen&quot;) (strcat d &quot;mm&quot; c &quot;&quot; k) &quot;&quot;)&lt;/FONT&gt;
 
and guess what? it works just fine!!
 
Anyway this is not the only issue observed with the &lt;strong&gt;pause&lt;/strong&gt; command. I hope they are able to resolve this with the upcoming 2009 release.
 
 
Mac
 
 </description>
<author>_mac</author>
<pubDate>2008-12-02 00:19:50</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1222&amp;pid=11143</link>
<description>&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN-GB style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB&quot;&gt;Hi all, &lt;?:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN-GB style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN-GB style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB&quot;&gt;I've got this lisp working for a while now, I've contacted the ZWcad support center by email. I can recommend mailing the ZWcad support center, the replies are fast and good to use. It's faster then using the forum.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN-GB style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN-GB style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB&quot;&gt;Anyway, for those interested, this is a piece of the code I've used.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN style=&quot;FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: Verdana; mso-ansi-: EN&quot;&gt;    (setq p1 (getpoint &quot;'nGeef startpunt op:&quot;))
    (setq p2 (getpoint p1 &quot;'nGeef eindpunt op:&quot;))
    (command &quot;qleader&quot;
       &quot;&quot;
      p1
      p2
             &quot;&quot;
      (strcat &quot;i.h.w. bepalen&quot;)
      (strcat d &quot; mm &quot; c &quot; &quot; k)
      &quot;&quot;
  )&lt;/SPAN&gt;&lt;SPAN lang=EN style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN-GB style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB&quot;&gt;This works fine. About the pause command, it seams to work some times. Maybe only at certain commands? The following code works only with the pause command....&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN-GB style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN style=&quot;FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: Verdana; mso-ansi-: EN&quot;&gt;        (if (= kz &quot;v&quot;)
                (progn
  (ipeins)
                (front)
  (command &quot;rotate&quot; profiel tekst &quot;&quot; pt1 pause)
                (setvar &quot;osmode&quot; os)
                (setvar &quot;clayer&quot; lay)
                (setvar &quot;cmdecho&quot; ce1)
                (setvar &quot;attdia&quot; att1)
                (command &quot;_.UNDO&quot; &quot;End&quot;)
                (setq *error* olderr )
                )
                (progn
                (princ)
                )&lt;/SPAN&gt;&lt;SPAN lang=EN style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 

&lt;P =Ms&#111;normal style=&quot;MARGIN: 0cm 0cm 0pt&quot;&gt;&lt;SPAN lang=EN-GB style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB&quot;&gt;Perhaps someone could tell us more about the pause command?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
 
</description>
<author>zw_admin</author>
<pubDate>2008-12-01 02:27:49</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1222&amp;pid=11135</link>
<description>[QUOTE=Steven Sun][QUOTE=EG-P]in acad2000 lisp routines I use the &lt;FONT color=#0000ff&gt;pause &lt;/FONT&gt;&lt;FONT color=#000000&gt;command, to pick a point using the cursor. It doesn't seem to work in ZWcad 2008? Below I've posted a fragment form the lisp routine: 
 


&lt;FONT color=#0000ff&gt;(command &quot;qleader&quot;
      (getpoint &quot;'nGeef startpunt op:&quot;)
      pause
      pause 
      (strcat &quot;i.h.w. bepalen&quot;)
      (strcat d &quot; mm &quot; c &quot; &quot; k)
      &quot;&quot;
    )&lt;/FONT&gt;
&lt;FONT color=#0000ff&gt;&lt;/FONT&gt; 
&lt;FONT color=#000000&gt;is there anyone out there who can help me?&lt;/FONT&gt;&lt;/FONT&gt; 
 
I don't know why you used the &lt;FONT color=#0000ff&gt;code below:&lt;/FONT&gt;
&lt;FONT color=#0000ff&gt;      (strcat &quot;i.h.w. bepalen&quot;)
      (strcat d &quot; mm &quot; c &quot; &quot; k)
      &quot;&quot;&lt;/FONT&gt;
&lt;FONT color=#0000ff&gt;&lt;/FONT&gt; 
&lt;FONT color=#0000ff&gt;I hope you can comment block these and try again.&lt;/FONT&gt;
&lt;FONT color=#0000ff&gt;Acturally, I don't know why you want to use these codes. &lt;/FONT&gt; 
 
EG-P,
 
Qleader by default requires user to input 3 points for the leader arrow and line, hence you would need to either terminate that on the second point with a &lt;strong&gt;&quot;&quot;&lt;/strong&gt; to proceed to the next option, or to add an extra &lt;strong&gt;pause&lt;/strong&gt; for the third point. After which it would request for another user input for the text width which ypu can supply by adding either a value or a &lt;strong&gt; &quot;&quot;&lt;/strong&gt; before inputing the mtext strings.
 
Try these codes:
 
(command &quot;qleader&quot; pause pause pause &quot;&quot;
  (strcat &quot;i.h.w. bepalen&quot;)
  (strcat d &quot;mm&quot; c &quot;&quot; k)
&quot;&quot;)
 
 
or 
 
(command &quot;qleader&quot; pause pause &quot;&quot; &quot;&quot;
  (strcat &quot;i.h.w. bepalen&quot;)
  (strcat d &quot;mm&quot; c &quot;&quot; k)
&quot;&quot;)
 
 
I hope this helps.
 
Happy CADDing,
 
Mac</description>
<author>_mac</author>
<pubDate>2008-11-26 07:14:54</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1222&amp;pid=11134</link>
<description>[QUOTE=Pavel]&lt;strong&gt;pause &lt;/strong&gt;doesn't work in ZWCAD at all. sorry &lt;img src=&quot;http://www.zwcad.org/forum/smileys/smiley5.gif&quot; height=&quot;17&quot; width=&quot;17&quot; border=&quot;0&quot; align=&quot;absmiddle&quot; alt=&quot;C&#111;nfused&quot; /&gt; 
 
Pavel,
 
I'm sorry but you might have been mis-informed. Pause does work in ZWcad. To test this type this to the command prompt:
 
(command &quot;line&quot; pause pause &quot;&quot;)
 
This should execute a line command and after entering 2 points (pause = user entry required), terminates the line command returning you to the command prompt.
 
Cheers,
 
Mac</description>
<author>_mac</author>
<pubDate>2008-11-26 06:56:59</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1222&amp;pid=11127</link>
<description>[QUOTE=i1patrick]I wrote a LISP command in AutoCAD which allowed me to insert a trim symbol, pause for the user to place it on the drawing, perform a trim operation, and finally erase the trim symbol.  (Additional code included to preserve the settings of the osnap)

I have  been trying to use the following code in ZWCAD with no luck:

(setq oldosmode (getvar &quot;osmode&quot;))
(setvar &quot;osmode&quot; 32)
(setq pt1 (getpoint &quot;'nIntersection: &quot;)
      pt2 (polar pt1 0.0 0.03))


(command &quot;insert&quot; &quot;tr&quot; pt1 &quot;&quot; &quot;&quot; &quot;&quot;)

(command &quot;explode&quot; &quot;l&quot; &quot;&quot;)
(command &quot;trim&quot; &quot;p&quot; &quot;&quot; pt2 &quot;&quot;)
(command &quot;erase&quot; &quot;p&quot; &quot;&quot;)

(setvar &quot;osmode&quot; oldosmode)
(EXIT)


Any suggestions?
 
 
Try inserting 
  (setvar &quot;osmode&quot; 0)
before the trim command, it seems like the osap mode 32 (_int) might be interferring with the object selection at pt2 especially when pt2 is very close to pt1.
 
mac</description>
<author>_mac</author>
<pubDate>2008-11-20 22:42:43</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1222&amp;pid=11125</link>
<description>I wrote a LISP command in AutoCAD which allowed me to insert a trim symbol, pause for the user to place it on the drawing, perform a trim operation, and finally erase the trim symbol.  (Additional code included to preserve the settings of the osnap)

I have  been trying to use the following code in ZWCAD with no luck:

(setq oldosmode (getvar &quot;osmode&quot;))
(setvar &quot;osmode&quot; 32)
(setq pt1 (getpoint &quot;'nIntersection: &quot;)
      pt2 (polar pt1 0.0 0.03))


(command &quot;insert&quot; &quot;tr&quot; pt1 &quot;&quot; &quot;&quot; &quot;&quot;)

(command &quot;explode&quot; &quot;l&quot; &quot;&quot;)
(command &quot;trim&quot; &quot;p&quot; &quot;&quot; pt2 &quot;&quot;)
(command &quot;erase&quot; &quot;p&quot; &quot;&quot;)

(setvar &quot;osmode&quot; oldosmode)
(EXIT)


Any suggestions?

</description>
<author>i1patrick</author>
<pubDate>2008-11-20 10:36:02</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1222&amp;pid=11104</link>
<description>[QUOTE=EG-P]in acad2000 lisp routines I use the &lt;FONT color=#0000ff&gt;pause &lt;/FONT&gt;&lt;FONT color=#000000&gt;command, to pick a point using the cursor. It doesn't seem to work in ZWcad 2008? Below I've posted a fragment form the lisp routine: 
 


&lt;FONT color=#0000ff&gt;(command &quot;qleader&quot;
      (getpoint &quot;'nGeef startpunt op:&quot;)
      pause
      pause 
      (strcat &quot;i.h.w. bepalen&quot;)
      (strcat d &quot; mm &quot; c &quot; &quot; k)
      &quot;&quot;
    )&lt;/FONT&gt;
&lt;FONT color=#0000ff&gt;&lt;/FONT&gt; 
&lt;FONT color=#000000&gt;is there anyone out there who can help me?&lt;/FONT&gt;&lt;/FONT&gt; 
 
I don't know why you used the &lt;FONT color=#0000ff&gt;code below:&lt;/FONT&gt;
&lt;FONT color=#0000ff&gt;      (strcat &quot;i.h.w. bepalen&quot;)
      (strcat d &quot; mm &quot; c &quot; &quot; k)
      &quot;&quot;&lt;/FONT&gt;
&lt;FONT color=#0000ff&gt;&lt;/FONT&gt; 
&lt;FONT color=#0000ff&gt;I hope you can comment block these and try again.&lt;/FONT&gt;
&lt;FONT color=#0000ff&gt;Acturally, I don't know why you want to use these codes. &lt;/FONT&gt;</description>
<author>zw_admin</author>
<pubDate>2008-10-24 16:23:10</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1222&amp;pid=11102</link>
<description>that not very nice &lt;img src=&quot;http://www.zwcad.org/Forum/smileys/smiley21.gif&quot; height=&quot;17&quot; width=&quot;23&quot; border=&quot;0&quot; align=&quot;absmiddle&quot; alt=&quot;Thumbs%20Down&quot; /&gt; is there a alternative? EG-P2008-10-23 22:20:35</description>
<author>zw_admin</author>
<pubDate>2008-10-23 14:50:33</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=1222&amp;pid=11098</link>
<description>in acad2000 lisp routines I use the &lt;FONT color=#0000ff&gt;pause &lt;/FONT&gt;&lt;FONT color=#000000&gt;command, to pick a point using the cursor. It doesn't seem to work in ZWcad 2008? Below I've posted a fragment form the lisp routine:
 


&lt;FONT color=#0000ff&gt;(command &quot;qleader&quot;
      (getpoint &quot;'nGeef startpunt op:&quot;)
      pause
      pause 
      (strcat &quot;i.h.w. bepalen&quot;)
      (strcat d &quot; mm &quot; c &quot; &quot; k)
      &quot;&quot;
    )&lt;/FONT&gt;
&lt;FONT color=#0000ff&gt;&lt;/FONT&gt; 
&lt;FONT color=#000000&gt;is there anyone out there who can help me?&lt;/FONT&gt;&lt;/FONT&gt;</description>
<author>zw_admin</author>
<pubDate>2008-10-17 15:56:51</pubDate>
</item>  </channel>
</rss>