test.bat
PATH="C:\Program Files\AnsysEM\v221\Win64\common\IronPython";%PATH%
ipy64 .\test.py
pause
test.py
import sys
sys.path.append(r'C:\Program Files\AnsysEM\v221\Win64\PythonFiles\DesktopPlugin')
sys.path.append(r'C:\Program Files\AnsysEM\v221\Win64')
import ScriptEnv
ScriptEnv.Initialize("Ansoft.ElectronicsDesktop")
oDesktop.RestoreWindow()
oProject = oDesktop.NewProject()
沒有留言:
張貼留言