ThreadMarshaller#

class ansys.stk.core.stkdesktop.ThreadMarshaller#

object

Automate multiple STK instances from one Python script using threads.

Overview#

get_marshalled_to_current_thread

Return an instance of the original stk_object that may be used on the current thread. May only be called once.

initialize_thread

Must be called on the destination thread prior to calling GetMarshalledToCurrentThread().

release_thread

Call in the destination thread after all calls to STK are finished.

Import detail#

from ansys.stk.core.stkdesktop import ThreadMarshaller

Method detail#

ThreadMarshaller.get_marshalled_to_current_thread(self)#

Return an instance of the original stk_object that may be used on the current thread. May only be called once.

ThreadMarshaller.initialize_thread(self) None#

Must be called on the destination thread prior to calling GetMarshalledToCurrentThread().

Returns:

None

ThreadMarshaller.release_thread(self) None#

Call in the destination thread after all calls to STK are finished.

Returns:

None