Stop Addin From Running

Stop Addin From Running

isocam
Collaborator Collaborator
508 Views
1 Reply
Message 1 of 2

Stop Addin From Running

isocam
Collaborator
Collaborator

Can anybody help?

 

I have a Fusion 360 Python addin that "Runs on Startup"

 

The user, can set an external parameter to switch on or off the application (via the registry), even though the addin is still running in the background.

 

At present, if the user has switched off the application, I have put a "return" in my code.

 

Is it possible to  completely stop/end the application via Python so that the api is no longer running in the background?

 

Many thanks

 

Darren

0 Likes
Accepted solutions (1)
509 Views
1 Reply
Reply (1)
Message 2 of 2

tykapl.breuil
Advocate
Advocate
Accepted solution

I think the adsk.terminate() function does exactly what you wish for !