Compute all parameters

mikko.husari
Enthusiast

Compute all parameters

mikko.husari
Enthusiast
Enthusiast

Hello,

 

I have a very parameter heavy design that gets its parameters via script. Part of my script fails after setting all necessary parameters, but can continue if I hit "compute all" from Modify menu (or ctrl+b). Is there a way to run that computation from API?

2 Likes
Reply
Accepted solutions (1)
1,120 Views
3 Replies
Replies (3)

mikko.husari
Enthusiast
Enthusiast
Accepted solution

Well, I figured it out a while a go but did not think about posting an answer as it was my own question.

 

This did the trick:

            adsk.doEvents()

 

4 Likes

esumft
Advocate
Advocate

Thought you might want to know you just saved someone's monitor from going out the window. 😁

2 Likes

mikko.husari
Enthusiast
Enthusiast

I really hope someone finds a better way as this is quite questionable. But, glad it did help 🙂

 

check this out: https://xkcd.com/979/

0 Likes