4.2.2. ICoFluentSchemeController

The ICoSchemeController interface includes functions for more advanced control of a Fluent session, such as issuing direct Scheme or menu commands and manipulating rpvars. An example of a simple client that uses the interface is given in A Fluent Client Example.

ICoFluentSchemeController
void execScheme(in string p_szSchemeCommand);

issues a scheme command to the connected Fluent session. Output from the command is not returned.

string execSchemeToString(in string p_szSchemeCommand);

issues a scheme command to the connected Fluent session and returns the output as a string.

void doMenuCommand(in string p_szMenuCommand);

issues a TUI or aaS command to the connected Fluent session (for a list of available commands, see Fluent Text Command List and aaS Commands (aaS.)). Output from the command is not returned.

string doMenuCommandToString(in string p_szMenuCommand);

issues a TUI or aaS command to the connected Fluent session and returns the output as a string. For a list of available commands, see Fluent Text Command List and aaS Commands (aaS.).

void setRpVar(in string p_szRpVar, in string p_szRpVarValue);

sets the value of the rpvar p_szRpVar to p_szRpVarValue.

string getRpVar(in string p_szRpVar);

returns a string with the value of the rpvar p_szRpVar.

void uploadFileFromBuffer(in string p_szFileName, in CoOctetBuffer p_pFileContent);

writes a file named p_szFileName in the remote Fluent session working directory with the contents of p_pFileContent. If p_szFileName exists, it is overwritten.

CoOctetBuffer downloadFileFromBuffer(in string p_szFileName);

returns the contents of the file named p_szFileName in the remote Fluent session working directory.


Release 18.2 - © ANSYS, Inc. All rights reserved.