Python and Ansys link: omniORB.CORBA.TRANSIENT: CORBA.TRANSIENT(omniORB.TRANSIENT_ConnectFailed, CORBA.COMPLETED_NO)

Wouter Vuijk via omniORB-list <[email protected]> Thu, 15 Aug 2019 09:13:53 +0000
Newsgroups gmane.comp.corba.omniorb.user
Message-ID <AM6PR04MB580084C55025E2F49E61EC79F5AD0@AM6PR04MB5800.eurprd04.prod.outlook.com>
Hello everybody,

I want to link Ansys 19.0 to Python 2.7.16 with "omniORBpy-4.2.2.-win64-python2.7" on Windows 10 and I followed the instructions from this video published by Ansys:

https://www.youtube.com/watch?v=bSP9pi-4QW0

Everything goes well, the folders and the aaS_MapdlId.txt are created and linked, CORBA and AAS_CORBA can be imported in Python but when I want to enter a parameter into Ansys the following error occurs:

>>> mapdl_output = mapdlUnit.executeCommandToString('aas_parameter_test = 22')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ICoMapdlUnit_idl.py", line 206, in executeCommandToString
    return self._obj.invoke("executeCommandToString", _0_AAS_CORBA.MAPDL.Solvers.ICoMapdlUnit._d_executeCommandToString, args)
omniORB.CORBA.TRANSIENT: CORBA.TRANSIENT(omniORB.TRANSIENT_ConnectFailed, CORBA.COMPLETED_NO)

When Ansys MAPDL is launched in -aas I get the message that it is connected to the MAPDL RPC server, so that is working fine.

Does anybody know what could be the problem?

Thanks in advance for the help!

With kind regards,

Wouter

_______________________________________________
omniORB-list mailing list
[email protected]
http://www.omniorb-support.com/mailman/listinfo/omniorb-list