    

 ## On this page

  

 

 # ensightservice::PythonRequest Struct Reference

 Last update: 16.07.2025 

## <a id="pub-types" name="pub-types"></a>Public Types

enum [CmdType](structensightservice_1_1_python_request.xhtml#a5b38efa006c583052c1fd92c01811b4c) { [EXEC\_NO\_RESULT](structensightservice_1_1_python_request.xhtml#a5b38efa006c583052c1fd92c01811b4caa457d5ed12f0a22855fc9cbf11ab8f12) = 0 , [EXEC\_RETURN\_PYTHON](structensightservice_1_1_python_request.xhtml#a5b38efa006c583052c1fd92c01811b4caf7efb6586d41f7ef06f9430899dccf33) = 1 , [EXEC\_RETURN\_JSON](structensightservice_1_1_python_request.xhtml#a5b38efa006c583052c1fd92c01811b4ca3d0d8c2e0e4e07259828979638233e5d) = 2 } Specify the execution type and return value for the Python command. [More...](structensightservice_1_1_python_request.xhtml#a5b38efa006c583052c1fd92c01811b4c)  
 ## <a id="pub-attribs" name="pub-attribs"></a>Public Attributes

<a id="a69df81025a161dbe3efbb1ce5be37951"></a>[CmdType](structensightservice_1_1_python_request.xhtml#a5b38efa006c583052c1fd92c01811b4c) [type](structensightservice_1_1_python_request.xhtml#a69df81025a161dbe3efbb1ce5be37951) = 1 Specify how the string should be executed and what the return value should be.   
 <a id="ae6161a1f28bc6b6d0774346cea096b05"></a>string [command](structensightservice_1_1_python_request.xhtml#ae6161a1f28bc6b6d0774346cea096b05) = 2 UTF8 encoded string to be exec() or eval() by the EnSight Python interpreter.   
 <a id="details" name="details"></a>## Detailed Description

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

Definition at line [202](ensight_8proto_source.xhtml#l00202) of file [ensight.proto](ensight_8proto_source.xhtml).



## Member Enumeration Documentation

<a id="a5b38efa006c583052c1fd92c01811b4c"></a>## [◆ ](#a5b38efa006c583052c1fd92c01811b4c)CmdType

 enum [ensightservice::PythonRequest::CmdType](structensightservice_1_1_python_request.xhtml#a5b38efa006c583052c1fd92c01811b4c)

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

Enumerator<a id="a5b38efa006c583052c1fd92c01811b4caa457d5ed12f0a22855fc9cbf11ab8f12"></a>EXEC\_NO\_RESULT Run the command with exec() with no return value.

<a id="a5b38efa006c583052c1fd92c01811b4caf7efb6586d41f7ef06f9430899dccf33"></a>EXEC\_RETURN\_PYTHON Run the string using eval() and return the resulting Python object via Python repr()

<a id="a5b38efa006c583052c1fd92c01811b4ca3d0d8c2e0e4e07259828979638233e5d"></a>EXEC\_RETURN\_JSON Run the string using eval() and return the resulting Python object encoded via json.

Definition at line [205](ensight_8proto_source.xhtml#l00205) of file [ensight.proto](ensight_8proto_source.xhtml).





---

The documentation for this struct was generated from the following file:- D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/ensight/client/rpc\_interface/[ensight.proto](ensight_8proto_source.xhtml)