How to open Workbench ACT and launch a wizard by script
charlie.wang
Member, Employee Posts: 2
✭✭✭
Best Answers
-
Your wizard is ultimately a callback to a python function. You can call that python function within your extension with your inputs.
Lets assume you run your script in a bat file like following
"%AWP_ROOT231%\Framework\bin\win64\RunWB2.exe" -B -R my_script.py
then, my_script would activate the extension and run the python callback
appAPI = Ansys.ACT.Core.ApplicationRepository.GetApplication("Project") ExtAPI = appAPI.GetExtensionApi(None) myACTName = "SomeACTextension" extension = [x for x in ExtAPI.ExtensionManager.Extensions if x.Name == myACTName] if len(extension) == 1: appFormat = "Scripted" # or = "Binary" GUID = "some-GUID-value" Extensions.LoadExtension(Id=GUID, Format=appFormat) ext=ExtAPI.ExtensionManager.GetExtensionByName(myACTName).GetModule() ext.SomeWizardCallback(arg1, arg2, arg3...)
1 -
Thank you. It works now!
1
Answers
-
0
-
how to send the input to ACT using script
0