draw bodies or sketches during script loop ?

draw bodies or sketches during script loop ?

lionel.courgnaud
Enthusiast Enthusiast
418 Views
2 Replies
Message 1 of 3

draw bodies or sketches during script loop ?

lionel.courgnaud
Enthusiast
Enthusiast

Hello,

 

I have huge loop treatment in my scripts, and I always have to wait the end of the script to see the result.

Is there a way to render the design before the and of a script ?

 

I tried design.ComputeAll() but it's not working for me

 

Thanks a lot 🙂

 

0 Likes
Accepted solutions (1)
419 Views
2 Replies
Replies (2)
Message 2 of 3

Jorge_Jaramillo
Collaborator
Collaborator
Accepted solution

Hi,

 

This is the instruction for that:

adsk.doEvents()

 

From the documentation:

Process any pending system events or messages. This allows the Fusion UI to update and perform any event or message driven operations. This may be useful to avoid blocking UI updates while performing a long operation, or while waiting for asynchronous operations to be processed.

 

Give it a try.

 

Regards,

Jorge

Message 3 of 3

lionel.courgnaud
Enthusiast
Enthusiast

thanks.

It's working fine. It's not refreshing each loop, but it's fast enough for me 🙂

 

0 Likes