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: 

Stale Python Imports.

1 REPLY 1
Reply
Message 1 of 2
mpieper
125 Views, 1 Reply

Stale Python Imports.

I'm trying to develop general toolsets that I can use in between script files.

I've found that if I make a change in one of these scripts, the changes do not take hold unless I do a complete restart of fusion360 or manually reload the module from a script.

 

e.g.

from importlib import reload

reload(module)

 

Is there any way to force this without explicitly calling it e.g. is there any way to reboot the api backend from fusion360?  I'm guessing it would be a text-command or command-prompt input.

1 REPLY 1
Message 2 of 2
BrianEkins
in reply to: mpieper

There is a single instance of Python that is running and all scripts and add-ins are running within that instance. There isn't a way to re-start it without stopping and restarting Fusion.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com

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