Skip to main content

Post-processing tools 2023 R2

ensightservice::PythonRequest Struct Reference

Last update: 17.04.2023

Public Types

enum  CmdType { EXEC_NO_RESULT = 0 , EXEC_RETURN_PYTHON = 1 , EXEC_RETURN_JSON = 2 }
 Specify the execution type and return value for the Python command. More...
 

Public Attributes

CmdType type = 1
 Specify how the string should be executed and what the return value should be.
 
string command = 2
 UTF8 encoded string to be exec() or eval() by the EnSight Python interpreter.
 

Detailed Description

A string to execute in the EnSight Python interpreter and execution options

Definition at line 202 of file ensight.proto.

Member Enumeration Documentation

◆ CmdType

Specify the execution type and return value for the Python command.

Enumerator
EXEC_NO_RESULT 

Run the command with exec() with no return value.

EXEC_RETURN_PYTHON 

Run the string using eval() and return the resulting Python object via Python repr()

EXEC_RETURN_JSON 

Run the string using eval() and return the resulting Python object encoded via json.

Definition at line 205 of file ensight.proto.


The documentation for this struct was generated from the following file:
  • D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/ensight/client/rpc_interface/ensight.proto