How do I do "Reload Extensions" via script
Mike.Thompson
Member, Employee Posts: 356
✭✭✭✭
in Structures
What is the API that is identical to clicking the "Reload Extensions" button? Also, is there a way to only reload a specific extension?
Tagged:
0
Answers
-
The Project Page has the methods:
Extensions.ReloadAllExtensions() Extensions.ReloadOneExtension("Extension's InternalName")
Combining with this post https://discuss.ansys.com/discussion/2478/how-do-i-communicate-with-the-project-page-from-within-mechanical , you should be able to do something like:
import System from System.Threading import * def RunWBJN(cmds): def Internal_RunWBJN(): import wbjn wbjn.ExecuteCommand(ExtAPI,cmds) thread = System.Threading.Thread(System.Threading.ThreadStart(Internal_RunWBJN)) thread.Start() project_cmds = ''' Extensions.ReloadAllExtensions() ''' RunWBJN(project_cmds)
I have not tested it.
0 -
@Landon Mitchell Kanner , How about in Mechanical stand alone?
0