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: 

Compute all parameters

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
mikko.husari
828 Views, 3 Replies

Compute all parameters

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?

3 REPLIES 3
Message 2 of 4
mikko.husari
in reply to: mikko.husari

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()

 

Message 3 of 4
esumft
in reply to: mikko.husari

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

Message 4 of 4
mikko.husari
in reply to: esumft

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/

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