Hello,
what I want to do is to run some Scripts, which are written as mechanical scripts, over the ACT Console (see fig 1).
What runs is the mecahnical Script, that calls a own written function (see fig.2)
Background:
I have different simulations, they are not connectet, and I want to automated them by calling different functions.
But often, they could use the same functions, so they should use the ONE func_Ans.py

fig 1

fig 2
### mech.py
import sys
functionPath = "D:\UserData\z003mfjt\Documents\Python_Skripting_Tutorial" + "\\"
sys.path.append(functionPath)
import func_Ans
func_Ans.Initialize(ExtAPI, Ansys, DataModel)
func_Ans.test()
func_Ans.py
from module_base import *
def Initialize(MyExtAPI, MyAnsys, MyDataModel):
global ExtAPI; global Ansys; global DataModel;
ExtAPI = MyExtAPI; Ansys = MyAnsys; DataModel = MyDataModel;
def test():
print("tested")
Thanks in advance for your help
PS:
How can I switch on the syntax highlighting in codes sections?