-
-
July 20, 2023 at 10:20 amakash.purushothamanSubscriber
I have a wbex file for an Ansys ACT. I would like to make some updates to the ACT.
Inorder to do the updates, I need the source code of the script from which the wbex file was built.
Unfortunately, we don't have the source code!
Is there any way to extract the source code (files) from the wbex file? -
July 21, 2023 at 7:45 ammjmiddleAnsys Employee
If the wbex file was built with the option compiled=”True”, then you can’t get the source code. That’s one of the purposes for building the wbex if you are the ACT extension builder: to protect your confidential code.
It will unpack the extension to a scripted version to the user’s home directory: %APPDATA%\Ansys\v{version}\ACT\extensions.
If the xml had ‘script src=file.py compiled=”True”‘ before compiling, then you’ll see all the folders and files of the scripted extension in the user’s directory except these python files. In this case the *.wbex file will also be copied to the user’s directory, since it must look inside the wbex file for the compiled src files.
-
September 27, 2023 at 5:48 amakash.purushothamanSubscriber
Thank you @mjmiddle
I understand.
So in case when I create a new ACT, and if I set compiled = “False”, is there a way to retrieve the source code from the wbex?
-
-
September 27, 2023 at 6:11 ammjmiddleAnsys Employee
It will unpack the extension to a scripted version to the user’s home directory: %APPDATA%\Ansys\v{version}\ACT\extensions.
-
- The topic ‘How to extract source code from wbex file?’ is closed to new replies.
- Speed up simulation in HFSS
- Workbench license error
- ansys fluent error when opening it “unexpected license problem”
- Unexpected error on Workbench: Root element not found.
- not able to get result
- Unable to recover corrupted project in Workbench
- Unattended (silent) installation of 2024R2 & -productfile switch
- Unexpected issues with SCCM deployment of Ansys Fluids and Structures 2024 R1
- Questions and recommendations: Septum Horn Antenna
- AQWA: Hydrodynamic response error
-
1191
-
513
-
488
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.