Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

draw bodies or sketches during script loop ?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
lionel.courgnaud
95 Views, 2 Replies

draw bodies or sketches during script loop ?

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 🙂

 

2 REPLIES 2
Message 2 of 3

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

thanks.

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

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report