ACT App Store, PythonCodeTools extension from Ansys, Please make it work with CPython as well
The extension is really useful when dealing with Python objects. Unfortunately some functions, like 'Run Python Code' are not working for Python objects which are using the CPython engine.
Setting the engine of the shell to CPython has no effect on this behavior.
Easys way of reproducing the behavior:
Set shell engine to CPython.
Insert Python code object. Set engine type to CPython in details.
Insert the following code inside the object.
import sys
ExtAPI.Log.WriteMessage("sys.version: " + sys.version)
Connect Python object.
Click on Run Python Code button.
The ancient Iron Python version 2.7.4. will be written to the log file.
Comments
-
Some of the formatting of my post seems odd. How can I edit the post?
0 -
This sounds like a mechanical application defect rather than a problem with the ACT extension.
Am I understanding correctly that you have a python code object that is set to C Python in the details window properties, but you believe it is executing in iron python? That behavior seems like a defect, regardless of how the object is created.
Can you provide the version you are using?
I would recommend opening a service request with your ANSYS vendor.0 -
Only when using the PythonCodeTools extension from Ansys and clicking on 'Run Python Code' the code seems to be executed with IronPython even if the engine is set to CPython for the code object.
If the same code object is excuted by the target callback the CPython engine is used as expected.
Ansys version used is 2024R2.
0 -
As I have written, the problem is just occuring when using the 'Run Python Code' in the ACT extension. Is the Extension still maintained? If so, could you please forward the issue to the developer(s) of the extension.
0