Script timing inside lisp

Script timing inside lisp

Anonymous
Not applicable
157 Views
5 Replies
Message 1 of 6

Script timing inside lisp

Anonymous
Not applicable
I'm calling a script from inside a lisp routine, but the lisp is continuing to execute before the script is finished. How can I prevent this?

Partial code example:

(command "script" "myscript")
(alert "what the heck?")

Given the above, myscript will NOT execute UNTIL I CLICK OK on the alert box!

How do I get the alert box to only appear AFTER myscript has run to completion?

Thanks,
Karen
0 Likes
158 Views
5 Replies
Replies (5)
Message 1 of 6

Anonymous
Not applicable
I'm calling a script from inside a lisp routine, but the lisp is continuing to execute before the script is finished. How can I prevent this?

Partial code example:

(command "script" "myscript")
(alert "what the heck?")

Given the above, myscript will NOT execute UNTIL I CLICK OK on the alert box!

How do I get the alert box to only appear AFTER myscript has run to completion?

Thanks,
Karen
0 Likes
Message 3 of 6

Anonymous
Not applicable
(command "_.script" "myscript")
(while (= (logand (getvar "cmdactive") 4) 4)
(command pause))
(alert "what the heck")
__
"Karen" wrote in message
news:eee234a.0@WebX.SaUCah8kaAW...
> I'm calling a script from inside a lisp routine, but the lisp is
continuing to execute before the script is finished. How can I prevent
this?
>
> Partial code example:
>
> (command "script" "myscript")
> (alert "what the heck?")
>
> Given the above, myscript will NOT execute UNTIL I CLICK OK on the
alert box!
>
> How do I get the alert box to only appear AFTER myscript has run to
completion?
0 Likes
Message 4 of 6

Anonymous
Not applicable
Sorry, that's the way it is.

My theory is that long long ago in the days of overlays, the AutoLISP
overlay and the script overlay occupied the same memory space. You
couldn't have them both at the same time.

For whatever reason, scripts activated from LISP start executing when the
LISP completes.

What are you trying to do? Maybe you can do it without a script ...

jrf
Member of the Autodesk Discussion Forum Moderator Program

In article , Karen wrote:
> I'm calling a script from inside a lisp routine, but the lisp is
continuing to execute before the script is finished. How can I prevent
this?
>
> Partial code example:
>
> (command "script" "myscript")
> (alert "what the heck?")
>
> Given the above, myscript will NOT execute UNTIL I CLICK OK on the
alert box!
>
> How do I get the alert box to only appear AFTER myscript has run to
completion?
0 Likes
Message 5 of 6

Anonymous
Not applicable
Thanks, Paul. I think your code works as it should, but I'm not getting the results I need. See my new post.

K
0 Likes
Message 5 of 6

Anonymous
Not applicable
Thanks, Paul. I think your code works as it should, but I'm not getting the results I need. See my new post.

K
0 Likes