<?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: call lisp / sendcommand in VBA in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/call-lisp-sendcommand-in-vba/m-p/1537966#M37373</link>
    <description>proc1 calls lisp1&lt;BR /&gt;
lisp1 calls proc2&lt;BR /&gt;
&lt;BR /&gt;
Look into the "USER" variables.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
gl - Paul&lt;BR /&gt;
&lt;SUPERJOE&gt; wrote in message news:5066689@discussion.autodesk.com...&lt;BR /&gt;
VBA won't pause till LISP / SendCommand ends, how to solve it? seems an old &lt;BR /&gt;
issue.&lt;BR /&gt;
&lt;BR /&gt;
i have a VBA routine like this:&lt;BR /&gt;
Sub test()&lt;BR /&gt;
   proc1&lt;BR /&gt;
   proc2&lt;BR /&gt;
End Sub&lt;BR /&gt;
proc1 may load &amp;amp; run LISP file&lt;BR /&gt;
proc2 may use ThisDrawing.SendCommand&lt;BR /&gt;
proc2 have to use the result of proc1 which requires the end of proc1 before &lt;BR /&gt;
proc2 can start run&lt;BR /&gt;
&lt;BR /&gt;
the reason to do in this way is VBA object model doesn't support Topology so &lt;BR /&gt;
i have to use LISP to build it.&lt;BR /&gt;
it's continuous processing, really don't want to manually seperate into &lt;BR /&gt;
pieces, any tricks to get around? thanks.&lt;BR /&gt;
&lt;BR /&gt;
by the way, i use 2004.&lt;/SUPERJOE&gt;</description>
    <pubDate>Tue, 24 Jan 2006 13:42:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-01-24T13:42:28Z</dc:date>
    <item>
      <title>call lisp / sendcommand in VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/call-lisp-sendcommand-in-vba/m-p/1537964#M37371</link>
      <description>VBA won't pause till LISP / SendCommand ends, how to solve it? seems an old issue.&lt;BR /&gt;
&lt;BR /&gt;
i have a VBA routine like this:&lt;BR /&gt;
Sub test()&lt;BR /&gt;
   proc1&lt;BR /&gt;
   proc2&lt;BR /&gt;
End Sub&lt;BR /&gt;
proc1 may load &amp;amp; run LISP file&lt;BR /&gt;
proc2 may use ThisDrawing.SendCommand&lt;BR /&gt;
proc2 have to use the result of proc1 which requires the end of proc1 before proc2 can start run&lt;BR /&gt;
&lt;BR /&gt;
the reason to do in this way is VBA object model doesn't support Topology so i have to use LISP to build it.&lt;BR /&gt;
it's continuous processing, really don't want to manually seperate into pieces, any tricks to get around? thanks.&lt;BR /&gt;
&lt;BR /&gt;
by the way, i use 2004.</description>
      <pubDate>Tue, 24 Jan 2006 07:50:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/call-lisp-sendcommand-in-vba/m-p/1537964#M37371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-24T07:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: call lisp / sendcommand in VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/call-lisp-sendcommand-in-vba/m-p/1537965#M37372</link>
      <description>Public Sub wait()&lt;BR /&gt;
    Dim PauseTime, Start, Finish, TotalTime&lt;BR /&gt;
    PauseTime = 5    ' Set duration.&lt;BR /&gt;
    Start = Timer    ' Set start time.&lt;BR /&gt;
    Do While Timer &amp;lt; Start + PauseTime&lt;BR /&gt;
        DoEvents    ' Yield to other processes.&lt;BR /&gt;
    Loop&lt;BR /&gt;
    Finish = Timer    ' Set end time.&lt;BR /&gt;
    TotalTime = Finish - Start    ' Calculate total time.&lt;BR /&gt;
End Sub&lt;BR /&gt;
i just modifed the timer example in the help file, this pauses the app for 5 secs. you could just set the timer for however long is the max time it usually takes for the lisp program to finish.</description>
      <pubDate>Tue, 24 Jan 2006 08:50:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/call-lisp-sendcommand-in-vba/m-p/1537965#M37372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-24T08:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: call lisp / sendcommand in VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/call-lisp-sendcommand-in-vba/m-p/1537966#M37373</link>
      <description>proc1 calls lisp1&lt;BR /&gt;
lisp1 calls proc2&lt;BR /&gt;
&lt;BR /&gt;
Look into the "USER" variables.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
gl - Paul&lt;BR /&gt;
&lt;SUPERJOE&gt; wrote in message news:5066689@discussion.autodesk.com...&lt;BR /&gt;
VBA won't pause till LISP / SendCommand ends, how to solve it? seems an old &lt;BR /&gt;
issue.&lt;BR /&gt;
&lt;BR /&gt;
i have a VBA routine like this:&lt;BR /&gt;
Sub test()&lt;BR /&gt;
   proc1&lt;BR /&gt;
   proc2&lt;BR /&gt;
End Sub&lt;BR /&gt;
proc1 may load &amp;amp; run LISP file&lt;BR /&gt;
proc2 may use ThisDrawing.SendCommand&lt;BR /&gt;
proc2 have to use the result of proc1 which requires the end of proc1 before &lt;BR /&gt;
proc2 can start run&lt;BR /&gt;
&lt;BR /&gt;
the reason to do in this way is VBA object model doesn't support Topology so &lt;BR /&gt;
i have to use LISP to build it.&lt;BR /&gt;
it's continuous processing, really don't want to manually seperate into &lt;BR /&gt;
pieces, any tricks to get around? thanks.&lt;BR /&gt;
&lt;BR /&gt;
by the way, i use 2004.&lt;/SUPERJOE&gt;</description>
      <pubDate>Tue, 24 Jan 2006 13:42:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/call-lisp-sendcommand-in-vba/m-p/1537966#M37373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-24T13:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: call lisp / sendcommand in VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/call-lisp-sendcommand-in-vba/m-p/1537967#M37374</link>
      <description>thanks Squid.&lt;BR /&gt;
1) it's hard to estimate the running time of lisp, besides, different machine &amp;amp; OS will also affect running time.&lt;BR /&gt;
2) if i set pause time more than actual time needed for running lisp, no way to resume VBA running early? (immediately after finishing lisp running)</description>
      <pubDate>Wed, 25 Jan 2006 02:08:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/call-lisp-sendcommand-in-vba/m-p/1537967#M37374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-25T02:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: call lisp / sendcommand in VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/call-lisp-sendcommand-in-vba/m-p/1537968#M37375</link>
      <description>thanks Paul, i'll try this method.&lt;BR /&gt;
seems using "USERxx" variables is the way to get around, no other better way?</description>
      <pubDate>Wed, 25 Jan 2006 02:11:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/call-lisp-sendcommand-in-vba/m-p/1537968#M37375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-25T02:11:36Z</dc:date>
    </item>
  </channel>
</rss>

