    

 ## On this page

  

 

 # Class OutputReader

 Last update: 09.03.2026 

<a id="VM_Post_API_OutputReader_OutputReader"></a>

Namespace: [VM.Post.API.OutputReader](VM.Post.API.OutputReader.md)  
Assembly: VM.Post.API.OutputReader.dll

Represents the API class for reading result files.

```csharp
public class OutputReader : IOutputReader

```

#### Inheritance

object ← [OutputReader](VM.Post.API.OutputReader.OutputReader.md)

#### Implements

[IOutputReader](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Models.OutputReader/Interfaces/IOutputReader.cs)

## Examples

For an example that includes information about interfaces, see this example. To view the examples, refer to the location of the 'Install\_Path\\Motion\\Document\\Postprocessor API for Python.zip' file.

```python
# OutputReader.py
import clr, os, sys
from pathlib import Path

# Get the current file's path and set the path for external modules.
current_dir = Path(__file__).resolve().parent
external_modules_path = Path(current_dir, r'../../Modules').resolve()
sys.path.append('{0}'.format(external_modules_path))

# Import necessary modules
from ResultFileReaderAPI import *

# Import result file
outputReader = OutputReader(get_result_file_path())

entities = outputReader.GetEntities(EntityType.Body)

print (f"File Path : {outputReader.Path}")
print (f"Version : {outputReader.Version}")

for entity in entities:
    print (f"Entity Name : {entity.FullName}")

# Close
outputReader.Close()

```

## Remarks

This class provides methods to interact with and retrieve information from result files.

## Constructors

### <a id="VM_Post_API_OutputReader_OutputReader__ctor_System_String_"></a> OutputReader(string)

Initializes a new instance of the  class, used to open the result file.

```csharp
public OutputReader(string filepath)

```

#### Parameters

`filepath` string

The path of the result file.

#### Examples

For an example that includes this property, see the [OutputReader](VM.Post.API.OutputReader.OutputReader.md).

#### Remarks

This constructor opens the specified result file.

## Properties

### <a id="VM_Post_API_OutputReader_OutputReader_Path"></a> Path

Gets the file path to the Ansys Motion result file (.dfr).

```csharp
public string Path { get; }

```

#### Property Value

string

#### Examples

For an example that includes this property, see the [OutputReader](VM.Post.API.OutputReader.OutputReader.md).

#### Remarks

This property stores the file path to the Ansys Motion result file (.dfr).

### <a id="VM_Post_API_OutputReader_OutputReader_Version"></a> Version

Gets the product version.

```csharp
public string Version { get; }

```

#### Property Value

string

#### Examples

For an example that includes this property, see the [OutputReader](VM.Post.API.OutputReader.OutputReader.md).

#### Remarks

This property stores the version of the product.

## Methods

### <a id="VM_Post_API_OutputReader_OutputReader_Close"></a> Close()

Closes the result file.

```csharp
public void Close()

```

#### Examples

For an example that includes this property, see the [OutputReader](VM.Post.API.OutputReader.OutputReader.md).

#### Remarks

This method closes the result file.

### <a id="VM_Post_API_OutputReader_OutputReader_CreateCoordinateSystem_System_String_System_String_"></a> CreateCoordinateSystem(string, string)

Creates a new coordinate system marker with the specified name and optional parent.

```csharp
public GeneralMarker CreateCoordinateSystem(string newName, string parentFullName = "Ground")

```

#### Parameters

`newName` string

The name of the new coordinate system marker.

`parentFullName` string

The full name of the parent marker. Defaults to .

#### Returns

[GeneralMarker](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Post/Data/Models/VM.Models.Post/Models/Markers/GeneralMarker.cs)

A  representing the newly created coordinate system marker.

#### Examples

The following example demonstrates how to use the `CreateCoordinateSystem` method:

```python
print ("===Creating Marker===")
# Create a Coordinate System
# Name - Set the name of instance.
# ParentInfo - Specifies The path of an parent entity.
ground_csys = outputReader.CreateCoordinateSystem("Ground_CSYS")
print(ground_csys.FullName)

rigid_csys = outputReader.CreateCoordinateSystem("Crank_CSYS", "Crank")
print(rigid_csys.FullName)

rigid_cm_csys = outputReader.CreateCoordinateSystem("Crank_CM_CSYS", "Crank/CM")
print(rigid_cm_csys.FullName)

nodal_node_csys = outputReader.CreateCoordinateSystem("FEBody_01_CSYS", "FEBody_01/Node/754")
print(nodal_node_csys.FullName)

```

#### Remarks

This method creates a new coordinate system marker with the given name. If the parent full name is not provided, it defaults to the ground marker name as defined by .

### <a id="VM_Post_API_OutputReader_OutputReader_CreateVector_System_String_System_String_System_String_"></a> CreateVector(string, string, string)

Creates a vector for a specified target entity and characteristic path.

```csharp
public IVectorDisplay CreateVector(string newName, string target, string path)

```

#### Parameters

`newName` string

The name of the new vector.

`target` string

Specifies the name of the vector displayable entity.

`path` string

Specifies the characteristic on the vector display.

#### Returns

IVectorDisplay

Returns an instance of the created vector.

#### Examples

The following example demonstrates how to use the `GetVector` method:

```python
print ("===CreateVector===")
vector = outputReader.CreateVector("vector", "TJ_01", "Action Force")
print(f"Name : {vector.FullName}")    
print(f"Type : {vector.Type}")
print(f"Characteristic : {vector.Characteristic}")
characteristics = list(vector.Target.Characteristics)
for characteristic in characteristics:
    print(f"Target VectorDisplayType : {characteristic.VectorDisplayType}")
    print(f"Target CharacteristicName : {characteristic.CharacteristicName}")

```

#### Remarks

This method creates a new vector. The method returns the instance of the newly created vector.

### <a id="VM_Post_API_OutputReader_OutputReader_ExportAcousticRawDataToFile_System_String_System_String_VM_Models_Post_BehaviorType_VM_Models_Post_ChartMathLib_FFTParameters_System_UInt32___"></a> ExportAcousticRawDataToFile(string, string, BehaviorType, FFTParameters, uint\[\])

Exports acoustic raw data to a file.

```csharp
public void ExportAcousticRawDataToFile(string filepath, string fullName, BehaviorType behaviorType, FFTParameters parameters, uint[] nodeIDs)

```

#### Parameters

`filepath` string

Specifies the file path to export.

`fullName` string

Specifies the name of the entity.

`behaviorType` BehaviorType

Specifies the type of the target for Displacement, Velocity, or Acceleration. The available options are:

- 
- 
- 

`parameters` [FFTParameters](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Post/Data/Models/VM.Models.Post.ChartMathLib/FFT/FFTParameters.cs)

Specifies the FFT parameters. For a description of the parameters, see  in the API Reference.

- - The window type of FFT.
- - An array of state IDs from the result file.
- - The number of data points for FFT.

`nodeIDs` uint\[\]

Specifies the ID array of the nodes.

#### Examples

The following example demonstrates how to use the `ExportAcousticRawDataToFile` method:

```python
print("===ExportAcousticRawDataToFile===")
parameters = FFTParameters()
parameters.WindowType = FFTWindowType.Rectangular
parameters.Points = 128

for ids in stateids:
    parameters.States.Add(ids)

nodeIDs = [1,2,3]

accoustic_result_path = os.path.join(output_dir, r'AcousticRawDataToFile.txt')
outputReader.ExportAcousticRawDataToFile(accoustic_result_path, target, BehaviorType.Displacement, parameters, nodeIDs)

accoustic_without_nodeids_result_path = os.path.join(output_dir, r'AcousticWithoutNodeIDsRawDataToFile.txt')
outputReader.ExportAcousticRawDataToFile(accoustic_without_nodeids_result_path, target, BehaviorType.Displacement, parameters)

```

#### Remarks

This method exports acoustic raw data to a specified file path.

### <a id="VM_Post_API_OutputReader_OutputReader_ExportAcousticRawDataToFile_System_String_System_String_VM_Models_Post_BehaviorType_VM_Models_Post_ChartMathLib_FFTParameters_"></a> ExportAcousticRawDataToFile(string, string, BehaviorType, FFTParameters)

Exports acoustic raw data to a file.

```csharp
public void ExportAcousticRawDataToFile(string filepath, string fullName, BehaviorType behaviorType, FFTParameters parameters)

```

#### Parameters

`filepath` string

Specifies the file path to export.

`fullName` string

Specifies the name of the entity.

`behaviorType` BehaviorType

Specifies the type of behavior for Displacement, Velocity, or Acceleration. The available options are:

- 
- 
- 

`parameters` [FFTParameters](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Post/Data/Models/VM.Models.Post.ChartMathLib/FFT/FFTParameters.cs)

Specifies the FFT parameters. For a description of the parameters, see  in the API Reference.

- - The window type of FFT.
- - An array of state IDs from the result file.
- - The number of data points for FFT.

#### Examples

The following example demonstrates how to use the `ExportAcousticRawDataToFile` method:

```python
print("===ExportAcousticRawDataToFile===")
parameters = FFTParameters()
parameters.WindowType = FFTWindowType.Rectangular
parameters.Points = 128

for ids in stateids:
    parameters.States.Add(ids)

nodeIDs = [1,2,3]

accoustic_result_path = os.path.join(output_dir, r'AcousticRawDataToFile.txt')
outputReader.ExportAcousticRawDataToFile(accoustic_result_path, target, BehaviorType.Displacement, parameters, nodeIDs)

accoustic_without_nodeids_result_path = os.path.join(output_dir, r'AcousticWithoutNodeIDsRawDataToFile.txt')
outputReader.ExportAcousticRawDataToFile(accoustic_without_nodeids_result_path, target, BehaviorType.Displacement, parameters)

```

#### Remarks

This method exports acoustic raw data to a specified file path.

### <a id="VM_Post_API_OutputReader_OutputReader_ExportContourResultToFile_System_String_System_IO_FileMode_System_Collections_Generic_IList_System_Int32__System_String_VM_Models_ContourMappingType_System_String_VM_Models_AnalysisResultType_VM_Models_FileFormatType_"></a> ExportContourResultToFile(string, FileMode, IList&lt;int&gt;, string, ContourMappingType, string, AnalysisResultType, FileFormatType)

Exports contour results to a file.

```csharp
public void ExportContourResultToFile(string resultpath, FileMode mode, IList<int> stateids, string fullName, ContourMappingType type, string path, AnalysisResultType analysisResultType = AnalysisResultType.Dynamics, FileFormatType formatType = FileFormatType.BINARY)

```

#### Parameters

`resultpath` string

Specifies the file path to export.

`mode` FileMode

Specifies how the operating system should open a file. The available options are:

- 
- 
- 
- 
- 
- 

`stateids` IList&lt;int&gt;

Specifies the list of state IDs to time.

`fullName` string

Specifies the name of the entities.

`type` ContourMappingType

Specifies the type of the target for displaying contour. The available options are:

- 
- 
- 
- 
- 
- 
- 
- 
- 

`path` string

This is a combination of characteristic and component.

`analysisResultType` AnalysisResultType

Specifies the type of analysis result for displaying contour. The default value is . The available options are:

- 
- 
- 
- 
- 
- 
- 
- 

`formatType` FileFormatType

Specifies the file format type. The default value is . The available options are:

- 
- 

#### Examples

The following example demonstrates how to use the `ExportContourResultToFile` method:

```python
print("===ExportContourResultToFile===")
# resultpath - Specifies the file path to export
# mode - Specifies how the operating system should open a file.
# stateids - Specifies the id list of the states to time.
# fullName - Specifies the names of the entities.
# type - Specifies the type of the target for displaying contour(None, FENode, FEElement, FEElementNode, FEMaterial, BeamGroup, Contact, ChainedSystem, Usersubroutine).
# path - Specifies the path of result to save.
# analysisResultType - Specifies the type of analysis result type for displaying contour.
# formatType - Specifies a file format type.

# State ID Array
stateids = outputReader.GetStateIDArray()
target = "FEBody_01"
path = "Top Stress/X"

# The output path is 'examples/Output'.
output_dir = get_output_directory()
nodal_result_path = os.path.join(output_dir, r'ContourResultToFile.txt')
outputReader.ExportContourResultToFile(nodal_result_path, FileMode.Create, stateids, target, ContourMappingType.FENode, path, analysisResultType = AnalysisResultType.Dynamics, formatType = FileFormatType.BINARY)

```

#### Remarks

This method exports contour results to a specified file path.

### <a id="VM_Post_API_OutputReader_OutputReader_ExportContourResultToFile_System_String_System_IO_FileMode_System_Collections_Generic_IList_System_Int32__System_Collections_Generic_IList_System_String__VM_Models_ContourMappingType_System_String_VM_Models_AnalysisResultType_VM_Models_FileFormatType_"></a> ExportContourResultToFile(string, FileMode, IList&lt;int&gt;, IList&lt;string&gt;, ContourMappingType, string, AnalysisResultType, FileFormatType)

Exports contour results to a file.

```csharp
public void ExportContourResultToFile(string resultpath, FileMode mode, IList<int> stateids, IList<string> fullNames, ContourMappingType type, string path, AnalysisResultType analysisResultType = AnalysisResultType.Dynamics, FileFormatType formatType = FileFormatType.BINARY)

```

#### Parameters

`resultpath` string

Specifies the file path to export.

`mode` FileMode

Specifies how the operating system should open a file. The available options are:

- 
- 
- 
- 
- 
- 

`stateids` IList&lt;int&gt;

Specifies the list of state IDs to time.

`fullNames` IList&lt;string&gt;

Specifies the names of the entities.

`type` ContourMappingType

Specifies the type of the target for displaying contour. The available options are:

- 
- 
- 
- 
- 
- 
- 
- 
- 

`path` string

This is a combination of characteristic and component.

`analysisResultType` AnalysisResultType

Specifies the type of analysis result for displaying contour. The default value is . The available options are:

- 
- 
- 
- 
- 
- 
- 
- 

`formatType` FileFormatType

Specifies the file format type. The default value is . The available options are:

- 
- 

#### Examples

The following example demonstrates how to use the `ExportContourResultToFile` method:

```python
print("===ExportContourResultToFile===")
# resultpath - Specifies the file path to export
# mode - Specifies how the operating system should open a file.
# stateids - Specifies the id list of the states to time.
# fullName - Specifies the names of the entities.
# type - Specifies the type of the target for displaying contour(None, FENode, FEElement, FEElementNode, FEMaterial, BeamGroup, Contact, ChainedSystem, Usersubroutine).
# path - Specifies the path of result to save.
# analysisResultType - Specifies the type of analysis result type for displaying contour.
# formatType - Specifies a file format type.

# State ID Array
stateids = outputReader.GetStateIDArray()
target = "FEBody_01"
path = "Top Stress/X"

# The output path is 'examples/Output'.
output_dir = get_output_directory()
nodal_result_path = os.path.join(output_dir, r'ContourResultToFile.txt')
outputReader.ExportContourResultToFile(nodal_result_path, FileMode.Create, stateids, target, ContourMappingType.FENode, path, analysisResultType = AnalysisResultType.Dynamics, formatType = FileFormatType.BINARY)

```

#### Remarks

This method exports contour results to a specified file path.

### <a id="VM_Post_API_OutputReader_OutputReader_ExportMarkerToFile_System_String_System_Int32___VM_Models_Post_IResultMarker___"></a> ExportMarkerToFile(string, int\[\], IResultMarker\[\])

Exports marker results to a file.

```csharp
public void ExportMarkerToFile(string filePath, int[] stateids, IResultMarker[] markers)

```

#### Parameters

`filePath` string

Specifies the file path to export.

`stateids` int\[\]

Specifies the list of state IDs to time.

`markers` IResultMarker\[\]

Specifies the list of the marker entities.

#### Examples

The following example demonstrates how to use the `ExportMarkerToFile` method:

```python
print("===ExportMarkerToFile===")
# markers = List[IResultMarker](1)
# markers.Add(ground_csys)

# outputReader.ExportMarkerToFile(r'D:\MarkerToFile.txt', stateids, markers)

```

#### Remarks

This method exports marker results to a specified file path.

### <a id="VM_Post_API_OutputReader_OutputReader_ExportModalBodyRawDataToFile_System_String_System_String_System_Boolean_System_Boolean_"></a> ExportModalBodyRawDataToFile(string, string, bool, bool)

Exports raw data about the FE modal body to a file.

```csharp
public void ExportModalBodyRawDataToFile(string filePath, string target, bool includeGeometry, bool includeModeShape)

```

#### Parameters

`filePath` string

Specifies the file path to export.

`target` string

Specifies the name of the entity.

`includeGeometry` bool

Specifies whether to include geometry data.

`includeModeShape` bool

Specifies whether to include mode shape data.

#### Examples

The following example demonstrates how to use the `ExportModalBodyRawDataToFile` method:

```python
print("===ExportModalBodyRawDataToFile===")
# State ID Array
stateids = outputReader.GetStateIDArray()

modal_result_path = os.path.join(output_dir, r'ModalBodyRawDataToFile.txt')
outputReader.ExportModalBodyRawDataToFile(modal_result_path, "FEBody_01", True, True)

```

#### Remarks

This method exports raw data about the FE modal body to a specified file path, including options to include geometry and mode shape data.

### <a id="VM_Post_API_OutputReader_OutputReader_ExportVectorDisplayToFile_System_String_System_Int32___System_Collections_Generic_IEnumerable_System_Object__System_Boolean_System_Boolean_System_Boolean_VM_Models_AnalysisResultType_"></a> ExportVectorDisplayToFile(string, int\[\], IEnumerable&lt;object&gt;, bool, bool, bool, AnalysisResultType)

Exports vector results to a file.

```csharp
public void ExportVectorDisplayToFile(string filepath, int[] stateids, IEnumerable<object> targets, bool isIncludePosition, bool includeVector, bool includeMagnitude, AnalysisResultType analysisResultType)

```

#### Parameters

`filepath` string

Specifies the file path to export.

`stateids` int\[\]

Specifies the list of state IDs to time.

`targets` IEnumerable&lt;object&gt;

Specifies the list of the entities.

`isIncludePosition` bool

Specifies whether to include position data.

`includeVector` bool

Specifies whether to include vector data.

`includeMagnitude` bool

Specifies whether to include magnitude data.

`analysisResultType` AnalysisResultType

Specifies the type of analysis result.

#### Examples

The following example demonstrates how to use the `ExportVectorDisplayToFile` method:

```python
print("===ExportVectorDisplayToFile===")
targets = List[IVectorDisplay]()

# target - Specifies the name of vector displayable entity
# path - Specifies characteristc on vector display
vector = outputReader.CreateVector("vector", target, "Base Force")
targets.Add(vector)

vector_result_path = os.path.join(output_dir, r'VectorDisplayToFile.txt')
outputReader.ExportVectorDisplayToFile(vector_result_path, stateids, targets, True, True, True, AnalysisResultType.Dynamics)

vectors_result_path = os.path.join(output_dir, r'VectorsDisplayToFile.txt')
outputReader.ExportVectorDisplayToFile(vectors_result_path, stateids, target, "Base Force", True, True, True, AnalysisResultType.Dynamics)

```

#### Remarks

This method exports vector results to a specified file path.

### <a id="VM_Post_API_OutputReader_OutputReader_ExportVectorDisplayToFile_System_String_System_Int32___System_String_System_String_System_Boolean_System_Boolean_System_Boolean_VM_Models_AnalysisResultType_"></a> ExportVectorDisplayToFile(string, int\[\], string, string, bool, bool, bool, AnalysisResultType)

Exports vector results to a file.

```csharp
public void ExportVectorDisplayToFile(string filepath, int[] stateids, string target, string characteristic, bool isIncludePosition, bool includeVector, bool includeMagnitude, AnalysisResultType analysisResultType)

```

#### Parameters

`filepath` string

Specifies the file path to export.

`stateids` int\[\]

Specifies the list of state IDs to time.

`target` string

Specifies the list of the entities.

`characteristic` string

The name of the characteristic.

`isIncludePosition` bool

Specifies whether to include position data.

`includeVector` bool

Specifies whether to include vector data.

`includeMagnitude` bool

Specifies whether to include magnitude data.

`analysisResultType` AnalysisResultType

Specifies the type of analysis result.

#### Examples

The following example demonstrates how to use the `ExportVectorDisplayToFile` method:

```python
print("===ExportVectorDisplayToFile===")
targets = List[IVectorDisplay]()

# target - Specifies the name of vector displayable entity
# path - Specifies characteristc on vector display
vector = outputReader.CreateVector("vector", target, "Base Force")
targets.Add(vector)

vector_result_path = os.path.join(output_dir, r'VectorDisplayToFile.txt')
outputReader.ExportVectorDisplayToFile(vector_result_path, stateids, targets, True, True, True, AnalysisResultType.Dynamics)

vectors_result_path = os.path.join(output_dir, r'VectorsDisplayToFile.txt')
outputReader.ExportVectorDisplayToFile(vectors_result_path, stateids, target, "Base Force", True, True, True, AnalysisResultType.Dynamics)

```

#### Remarks

This method exports vector results to a specified file path.

### <a id="VM_Post_API_OutputReader_OutputReader_GetAssemblyInfo_VM_Enums_Post_AssemblyType_"></a> GetAssemblyInfo(AssemblyType)

Retrieves an array of state IDs representing sequential states.

```csharp
public AssemblyInfo[] GetAssemblyInfo(AssemblyType assemblyType = AssemblyType.All)

```

#### Parameters

`assemblyType` [AssemblyType](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Post/Common/VM.Enums.Post/Enums/AssemblyType.cs)

The available options are:

- 
- 
- 
- 

#### Returns

[AssemblyInfo](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Post/Data/Models/VM.Models.Post.EntityTypes/Assembly/AssemblyInfo.cs)\[\]

#### Examples

The following example demonstrates how to use the `CreateCoordinateSystem` method:

```python
print ("===Assembly Info===")
assemblyInfo = outputReader.GetAssemblyInfo()
for assembly in assemblyInfo:
    print(assembly.FullName)

```

### <a id="VM_Post_API_OutputReader_OutputReader_GetBodies_VM_Models_Post_BodyType_System_Boolean_"></a> GetBodies(BodyType, bool)

Retrieves the types and names of bodies based on the specified type and optional inclusion of dummy bodies.

```csharp
public IEnumerable<(BodyType, string)> GetBodies(BodyType type, bool includeDuymmy = false)

```

#### Parameters

`type` BodyType

Specifies the type of bodies to retrieve. The available options are:

- 
- 
- 
- 
- 
- 

`includeDuymmy` bool

Specifies whether to include dummy bodies in the result.

#### Returns

IEnumerable&lt;(BodyType, string)&gt;

An enumerable collection of tuples where each tuple contains a BodyType and its corresponding name.

#### Examples

The following example demonstrates how to use the `GetBodies` method:

```python
print ("===Get Bodies===")
bodies = outputReader.GetBodies(BodyType.RIGID)
bodiesList = list(bodies)
for body in bodiesList:
    print(f"Body Type : {body.Item1}, Body Name : {body.Item2}")

```

#### Remarks

This method retrieves information about bodies based on the specified type and includes optional dummy bodies if specified. The returned collection contains tuples where each tuple represents a body type and its associated name.

### <a id="VM_Post_API_OutputReader_OutputReader_GetBodiesNodeCount_System_Collections_Generic_IList_System_String__"></a> GetBodiesNodeCount(IList&lt;string&gt;)

Gets the count of nodes for the specified bodies.

```csharp
public long GetBodiesNodeCount(IList<string> bodyNames)

```

#### Parameters

`bodyNames` IList&lt;string&gt;

Specifies the list of names of the entities.

#### Returns

long

The count of nodes for the specified bodies.

#### Examples

The following example demonstrates how to use the `GetBodiesNodeCount` method:

```python
print("===Bodies Node Count===")
entities = List[str]()
entities.Add(r'FEBody_01')
nodecount = outputReader.GetBodiesNodeCount(entities)
print(nodecount)

```

#### Remarks

This method retrieves the count of nodes for the specified bodies.

### <a id="VM_Post_API_OutputReader_OutputReader_GetConnectors_System_String_"></a> GetConnectors(string)

Retrieves information about connectors associated with the specified body.

```csharp
public IList<(ConnectorType, ActionType, string)> GetConnectors(string name)

```

#### Parameters

`name` string

The name of the body to retrieve connector information for.

#### Returns

IList&lt;(ConnectorType, ActionType, string)&gt;

A list of tuples containing the connector type, action type, and names of connectors such as joint, force, and contact. The available connector type are:

- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 

The available action type are: - 
- 

#### Examples

The following example demonstrates how to use the `GetConnectors` method:

```python
print ("===GetConnectors===")
connectors = outputReader.GetConnectors("Crank")
connectorlist = list(connectors)

for connector in connectorlist:
    print (f"ConnectorType : {connector.Item1}")
    print (f"Action Type : {connector.Item2}")
    print (f"Name : {connector.Item3}")

```

#### Remarks

This method retrieves and returns information about connectors associated with the body identified by the `name` parameter. The returned list includes tuples where each tuple consists of the connector type, action type, and names of connectors such as joint, force, and contact.

### <a id="VM_Post_API_OutputReader_OutputReader_GetContourResult_System_Collections_Generic_IList_System_Int32__System_String_VM_Models_ContourMappingType_System_String_System_Action_System_Int32_System_Collections_Generic_IList_System_Double_____VM_Models_AnalysisResultType_"></a> GetContourResult(IList&lt;int&gt;, string, ContourMappingType, string, Action&lt;int, IList&lt;double\[\]&gt;&gt;, AnalysisResultType)

Exports contour results to a file.

```csharp
public void GetContourResult(IList<int> stateids, string fullName, ContourMappingType type, string path, Action<int, IList<double[]>> fncallback, AnalysisResultType analysisType = AnalysisResultType.Dynamics)

```

#### Parameters

`stateids` IList&lt;int&gt;

Specifies the list of state IDs to time.

`fullName` string

Specifies the name of an entity.

`type` ContourMappingType

Specifies the type of a target for displaying contour. The available options are:

- 
- 
- 
- 
- 
- 
- 
- 
- 

`path` string

Specifies the path of the result file to save.

`fncallback` Action&lt;int, IList&lt;double\[\]&gt;&gt;

Specifies the callback function for getting contour results by report step.

`analysisType` AnalysisResultType

Specifies the type of analysis result for displaying contour. The default value is . The available options are:

- 
- 
- 
- 
- 
- 
- 
- 

#### Examples

The following example demonstrates how to use the `GetContourResult` method:

```python
#print ("===GetContourResult===")
## resultpath - Specifies the file path to export
## mode - Specifies how the operating system should open a file.
## stateids - Specifies the id list of the states to time.
## fullName - Specifies the names of the entities.
## type - Specifies the type of the target for displaying contour(None, FENode, FEElement, FEElementNode, FEMaterial, BeamGroup, Contact, ChainedSystem, Usersubroutine).
## path - Specifies the path of result to save.
## analysisResultType - Specifies the type of analysis result type for displaying contour.
## formatType - Specifies a file format type.

## State ID Array
stateids = outputReader.GetStateIDArray()
target = "FEBody_01"
path = "Top Stress/X"

#contour_result_path = os.path.join(pathSource, r'ExportContourResultToFile.dfr')

# Call GetContourResult with the delegate
def python_action(stateid, resultGroup):
    print("State ID: {0}".format(stateid))
    for result in resultGroup:
        print(f"Array: {[x for x in result]}")

action = Action[Int32, IList[Array[Double]]](python_action)
outputReader.GetContourResult(stateids, target, ContourMappingType.FENode, path, action, AnalysisResultType.Dynamics)


```

#### Remarks

This method exports contour results to a specified file path.

### <a id="VM_Post_API_OutputReader_OutputReader_GetContourResult_System_Collections_Generic_IList_System_Int32__System_Collections_Generic_IList_System_String__VM_Models_ContourMappingType_System_String_System_Action_System_Int32_System_Collections_Generic_IList_System_Double_____VM_Models_AnalysisResultType_"></a> GetContourResult(IList&lt;int&gt;, IList&lt;string&gt;, ContourMappingType, string, Action&lt;int, IList&lt;double\[\]&gt;&gt;, AnalysisResultType)

Exports contour results to a file.

```csharp
public void GetContourResult(IList<int> stateids, IList<string> fullNames, ContourMappingType type, string path, Action<int, IList<double[]>> fncallback, AnalysisResultType analysisType = AnalysisResultType.Dynamics)

```

#### Parameters

`stateids` IList&lt;int&gt;

Specifies the list of state IDs to time.

`fullNames` IList&lt;string&gt;

Specifies the names of entities.

`type` ContourMappingType

Specifies the type of a target for displaying contour. The available options are:

- 
- 
- 
- 
- 
- 
- 
- 
- 

`path` string

Specifies the path of the result file to save.

`fncallback` Action&lt;int, IList&lt;double\[\]&gt;&gt;

Specifies the callback function for getting contour results by report step.

`analysisType` AnalysisResultType

Specifies the type of analysis result for displaying contour. The default value is . The available options are:

- 
- 
- 
- 
- 
- 
- 
- 

#### Examples

The following example demonstrates how to use the `GetContourResult` method:

```python
#print ("===GetContourResult===")
## resultpath - Specifies the file path to export
## mode - Specifies how the operating system should open a file.
## stateids - Specifies the id list of the states to time.
## fullName - Specifies the names of the entities.
## type - Specifies the type of the target for displaying contour(None, FENode, FEElement, FEElementNode, FEMaterial, BeamGroup, Contact, ChainedSystem, Usersubroutine).
## path - Specifies the path of result to save.
## analysisResultType - Specifies the type of analysis result type for displaying contour.
## formatType - Specifies a file format type.

## State ID Array
stateids = outputReader.GetStateIDArray()
target = "FEBody_01"
path = "Top Stress/X"

#contour_result_path = os.path.join(pathSource, r'ExportContourResultToFile.dfr')

# Call GetContourResult with the delegate
def python_action(stateid, resultGroup):
    print("State ID: {0}".format(stateid))
    for result in resultGroup:
        print(f"Array: {[x for x in result]}")

action = Action[Int32, IList[Array[Double]]](python_action)
outputReader.GetContourResult(stateids, target, ContourMappingType.FENode, path, action, AnalysisResultType.Dynamics)


```

#### Remarks

This method exports contour results to a specified file path.

### <a id="VM_Post_API_OutputReader_OutputReader_GetCurves_VM_Models_OutputReader_PlotParameters_"></a> GetCurves(PlotParameters)

Retrieves plot data based on the specified plot parameters.

```csharp
public IDictionary<string, Point2D[]> GetCurves(PlotParameters parameter)

```

#### Parameters

`parameter` [PlotParameters](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Models.OutputReader/Models/PlotParameters.cs)

For a description of parameter, see PlotParameters in the API Reference. The parameters used for plotting the curves, including target entity, data paths, coordinate system, and plot data type.

- - The target entity for plotting the curves.
- - Default or Plot Data.
- - An Paths representing the paths to the data to be read. This is a combination of characteristic and component.
- - The coordinate system to be used.

#### Returns

IDictionary&lt;string, [Point2D](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/Point2D.cs)\[\]&gt;

A dictionary containing plot data where each key represents the name or identifier of the curve, and each value is an array of  representing the plot points (x, y). The name of plot, List of X and Y data point of plot

#### Examples

The following example demonstrates how to use the `GetCurves` method:

```python
print ("===Plot Info===")
curvepaths = List[str]()

curve_paths = List[str]()
curve_paths.Add(r'Displacement/Magnitude')

# Create a PlotParameters object to specify the parameters for the plot.
# Set the Entity to Plot.
# The Target is the name of the target for which you want to retrieve the curves.
# Set the paths for the curves you want to retrieve.
# This is where you specify the characteristics and components you want to plot.
parameters = PlotParameters()
parameters.Paths = curve_paths
parameters.Target = "Crank"

curves = outputReader.GetCurves(parameters)

for curve in curves:
    print(curve.Key)
    for point in curve.Value:
        print(f"X : {point.X}, Y : {point.Y}")

```

#### Remarks

This method retrieves and returns plot data based on the provided plot parameters. It generates x and y coordinates for each curve specified in the parameters.

### <a id="VM_Post_API_OutputReader_OutputReader_GetEntities_VM_Models_Post_EntityType_"></a> GetEntities(EntityType)

Retrieves all entities of the specified type.

```csharp
public IEnumerable<EntityBase> GetEntities(EntityType entityType)

```

#### Parameters

`entityType` EntityType

The type of the entities to be retrieved.

#### Returns

IEnumerable&lt;[EntityBase](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Post/Data/Models/VM.Models.Post/Models/EntityBase.Series.cs)&gt;

An  containing all entities of the specified type.

#### Examples

For an example that includes this property, see the [OutputReader](VM.Post.API.OutputReader.OutputReader.md).

#### Remarks

This method retrieves all entities that match the specified entity type. The available options are:

- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 

### <a id="VM_Post_API_OutputReader_OutputReader_GetFlexibleBodyReferenceFrame_System_String_System_Boolean_"></a> GetFlexibleBodyReferenceFrame(string, bool)

Gets the reference frame of a flexible body.

```csharp
public IList<double[]> GetFlexibleBodyReferenceFrame(string target, bool recalculateOrientation = false)

```

#### Parameters

`target` string

The name of the flexible body.

`recalculateOrientation` bool

Get the orientation from element reference frame instead of FE body reference frame

#### Returns

IList&lt;double\[\]&gt;

Postion and orientation array with the number of states.

#### Examples

The following example demonstrates how to use the `GetFlexibleBodyReferenceFrame` method:

```python
print("===GetFlexibleBodyReferenceFrame===")

# State ID Array
stateids = outputReader.GetStateIDArray()
target = "FEBody_01"

referenceframes = outputReader.GetFlexibleBodyReferenceFrame(target)
position_base_force = []    
for i in range(len(referenceframes)):
    print("Index :", i)
    print(referenceframes[i][0])
    print(referenceframes[i][1])
    print(referenceframes[i][2])
    print(referenceframes[i][3])
    print(referenceframes[i][4])
    print(referenceframes[i][5])
    print(referenceframes[i][6])
    print(referenceframes[i][7])
    print(referenceframes[i][8])
    print(referenceframes[i][9])
    print(referenceframes[i][10])
    print(referenceframes[i][11])

```

#### Remarks

This method retrieves the reference frame of the specified flexible body.

### <a id="VM_Post_API_OutputReader_OutputReader_GetFrequenciesInfoArray"></a> GetFrequenciesInfoArray()

Retrieves information about all instances of frequencies.

```csharp
public IList<(string path, double time, double[] frequencies)> GetFrequenciesInfoArray()

```

#### Returns

IList&lt;(string path, double time, double\[\] frequencies)&gt;

A list containing tuples where each tuple contains:

- path: The file path of the frequency instance.
- time: The available sampling time.
- frequencies: An array of doubles representing the frequencies for the specified sampling time index.

#### Examples

The following example demonstrates how to use the `GetFrequenciesInfoArray` method:

```python
print ("===GetFrequenciesInfoArray===")
frequencies = outputReader.GetFrequenciesInfoArray()
frequencyInfoArray = list(frequencies)
for frequency in frequencyInfoArray:
    print (f"File Path : {frequency.Item1}")
    print(f"Sampling Time : {frequency.Item2}")
    indexes = list(frequency.Item3)
    print("Sampling Index :", *indexes, sep=',')

```

#### Remarks

This method retrieves and returns information about all instances of frequencies, including their file paths, available sampling times, and corresponding frequency arrays.

### <a id="VM_Post_API_OutputReader_OutputReader_GetGeometryInfo_System_String_"></a> GetGeometryInfo(string)

Gets the geometry information for a specified entity.

```csharp
public IDataPart GetGeometryInfo(string target)

```

#### Parameters

`target` string

Specifies the name of the entity.

#### Returns

IDataPart

An instance of  containing the geometry information.

#### Examples

The following example demonstrates how to use the `GetGeometryInfo` method:

```python
print("===Geometry Info===")
nodal = outputReader.GetGeometryInfo("FEBody_01")
print(nodal.DummyNodes)
print(nodal.ElementCount)
print(nodal.ElementsNodeCount)
print(nodal.NodesCount)
print(nodal.PartIndex)

```

#### Remarks

This method retrieves the geometry information for the specified entity.

### <a id="VM_Post_API_OutputReader_OutputReader_GetGeometryInfoArray"></a> GetGeometryInfoArray()

Gets an array of geometry information.

```csharp
public IEnumerable<BodyBase> GetGeometryInfoArray()

```

#### Returns

IEnumerable&lt;[BodyBase](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Post/Data/Models/VM.Models.Post/Models/Bodies/BodyBase.cs)&gt;

An  containing the geometry information.

#### Examples

The following example demonstrates how to use the `GetGeometryInfoArray` method:

```python
print("===GeometryArray===")
geometries = outputReader.GetGeometryInfoArray()
geometry_list = list(geometries)
for geometry in geometry_list:
    print(geometry.FullName)

```

#### Remarks

This method retrieves an array of geometry information for all entities.

### <a id="VM_Post_API_OutputReader_OutputReader_GetGeometryNodes_System_String_"></a> GetGeometryNodes(string)

Gets the nodes of a specified geometry.

```csharp
public double[] GetGeometryNodes(string target)

```

#### Parameters

`target` string

Specifies the path of the entity.

#### Returns

double\[\]

An array of doubles representing the nodes of the geometry.

#### Examples

The following example demonstrates how to use the `GetGeometryNodes` method:

```python
print("===Geometry Nodes===")
geometries = outputReader.GetGeometryNodes("FEBody_01")
for geometry_value in geometries:
    print(geometry_value)

```

#### Remarks

This method retrieves the nodes of the specified geometry entity.

### <a id="VM_Post_API_OutputReader_OutputReader_GetMarkerInfo_System_String_"></a> GetMarkerInfo(string)

Gets the marker information including position, orientation, velocity, angular velocity, acceleration, and angular acceleration.

```csharp
public IList<double[]> GetMarkerInfo(string name)

```

#### Parameters

`name` string

Specifies the name of the marker.

#### Returns

IList&lt;double\[\]&gt;

A list of double arrays representing the marker values from the start state to the end state, stored sequentially.

#### Examples

The following example demonstrates how to use the `GetMarkerInfo` method:

```python
print ("===Marker Info===")
marker_name = r'Crank/CM'
marker = outputReader.GetMarkerInfo(marker_name)

for marker_values in marker:
    for marker_value in marker_values:
        print(marker_value)

```

#### Remarks

This method retrieves detailed information about the specified marker, including its position, orientation, velocity, angular velocity, acceleration, and angular acceleration.

### <a id="VM_Post_API_OutputReader_OutputReader_GetMarkerPosition_System_Collections_Generic_IList_System_String__"></a> GetMarkerPosition(IList&lt;string&gt;)

Gets the marker positions for the specified list of marker names.

```csharp
public IDictionary<string, IList<double[]>> GetMarkerPosition(IList<string> names)

```

#### Parameters

`names` IList&lt;string&gt;

Specifies the list of marker names to retrieve positions for.

#### Returns

IDictionary&lt;string, IList&lt;double\[\]&gt;&gt;

A dictionary where each key is a marker name and the value is a list of double arrays representing marker positions from the start state to the end state, stored sequentially.

#### Examples

The following example demonstrates how to use the `GetMarkerPosition` method:

```python
print ("===Marker Position===")

entities = List[str]()
entities.Add(marker_name)
markers = outputReader.GetMarkerPosition(entities)

marker_position = markers[marker_name]
for marker_values in marker_position:
    for marker_value in marker_values:
        print(marker_value)

```

#### Remarks

This method retrieves the positions of markers identified by the provided list of names. Each entry in the dictionary corresponds to a marker name and contains its position values over time.

### <a id="VM_Post_API_OutputReader_OutputReader_GetModalModeCount_System_String_"></a> GetModalModeCount(string)

Retrieves the count of modes for the finite element modal body specified by its name.

```csharp
public int GetModalModeCount(string target)

```

#### Parameters

`target` string

The name of the entity representing the finite element modal body.

#### Returns

int

The number of modes available for the specified finite element modal body.

#### Examples

The following example demonstrates how to use the `GetModalModeCount` method:

```python
print ("===Get Modal Mode Count===")
modecount = outputReader.GetModalModeCount("FEBody_01")
print (modecount)

```

#### Remarks

This method retrieves and returns the count of modes available for the specified finite element modal body, identified by its name passed as the `target` parameter.

### <a id="VM_Post_API_OutputReader_OutputReader_GetNamedSelections"></a> GetNamedSelections()

Gets the named selection information.

```csharp
public NamedSelection[] GetNamedSelections()

```

#### Returns

[NamedSelection](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Post/Data/Models/VM.Models.Post/Models/SubEntities/NamedSelection.cs)\[\]

An array of  instances representing the named selections.

#### Examples

The following example demonstrates how to use the `GetNamedSelections` method:

```python
print("===Named Selections===")
namedselections = outputReader.GetNamedSelections()
for namedselection in namedselections:
    print(namedselection.FullName)

```

#### Remarks

This method retrieves the named selection information for the entities.

### <a id="VM_Post_API_OutputReader_OutputReader_GetOuterface_System_String_"></a> GetOuterface(string)

Gets the geometry connectivity of an outer face.

```csharp
public uint[] GetOuterface(string target)

```

#### Parameters

`target` string

Specifies the name of the entity.

#### Returns

uint\[\]

An array of unsigned integers representing the geometry connectivity of the outer face.

#### Examples

The following example demonstrates how to use the `GetOuterface` method:

```python
print("===Outerface===")
outerface = outputReader.GetOuterface("FEBody_01")
for outerface_value in outerface:
    print(outerface_value)

```

#### Remarks

This method retrieves the geometry connectivity information for the outer face of the specified entity. The connectivity is structured in a triangular patch form, allowing for efficient representation and manipulation of 3D surface geometries. Each set of three consecutive integers in the array represents a triangle in the patch.

### <a id="VM_Post_API_OutputReader_OutputReader_GetPreviousBodiesNodeCount_System_Collections_Generic_IList_System_String__System_String_"></a> GetPreviousBodiesNodeCount(IList&lt;string&gt;, string)

Gets the count of nodes for the specified bodies before a certain entity.

```csharp
public long GetPreviousBodiesNodeCount(IList<string> bodyNames, string target)

```

#### Parameters

`bodyNames` IList&lt;string&gt;

Specifies the list of names of the bodies.

`target` string

Specifies the name of the entity.

#### Returns

long

The count of nodes for the previous bodies.

#### Examples

The following example demonstrates how to use the `GetPreviousBodiesNodeCount` method:

```python
print("===Previous Bodies NodeCount===")
targets = List[str]()
targets.Add("FEBody_01")
nodeCount = outputReader.GetPreviousBodiesNodeCount(targets, "FEBody_01")

print(nodeCount)

```

#### Remarks

This method retrieves the count of nodes for the specified bodies that are processed before the specified entity.

### <a id="VM_Post_API_OutputReader_OutputReader_GetPrimaryAnalysisResultType"></a> GetPrimaryAnalysisResultType()

Retrieves the type of the primary analysis result.

```csharp
public AnalysisResultType GetPrimaryAnalysisResultType()

```

#### Returns

AnalysisResultType

The type of the primary analysis result. If no primary analysis result is available, returns . The available analysis are:

- 
- 
- 
- 
- 
- 
- 
- 

#### Examples

The following example demonstrates how to use the `GetPrimaryAnalysisResultType` method:

```python
print ("===GetPrimaryAnalysisResultType===")
analysistype = outputReader.GetPrimaryAnalysisResultType()
print (analysistype)

```

#### Remarks

This method retrieves and returns the type of the primary analysis result from the source data. If the primary analysis result is not set or available, it returns .

### <a id="VM_Post_API_OutputReader_OutputReader_GetReferenceTimeArray"></a> GetReferenceTimeArray()

Retrieves an array of reference times from the result report.

```csharp
public IList<double> GetReferenceTimeArray()

```

#### Returns

IList&lt;double&gt;

A list of doubles representing time values from the start state to the end state sequentially.

#### Examples

The following example demonstrates how to use the `GetReferenceTimeArray` method:

```python
print ("===Reference TimeArray===")
referenceTimeArray = outputReader.GetReferenceTimeArray()
for referenceTime in referenceTimeArray:
    print(referenceTime)

```

#### Remarks

This method retrieves an array of time values that correspond to sequential states within the result report. The times are stored in a list in sequential order.

### <a id="VM_Post_API_OutputReader_OutputReader_GetStateIDArray"></a> GetStateIDArray()

Get id array of state

```csharp
public IList<int> GetStateIDArray()

```

#### Returns

IList&lt;int&gt;

A list of integers representing state IDs from the start state to the end state sequentially.

#### Examples

The following example demonstrates how to use the `GetStateIDArray` method:

```python
print ("===Get StateIDArray===")
stateIDs = outputReader.GetStateIDArray()
for ids in stateIDs:
    print(ids)

```

#### Remarks

This method retrieves an array of state IDs that correspond to sequential states within the system. The IDs are stored in a list in sequential order.

### <a id="VM_Post_API_OutputReader_OutputReader_GetUnits"></a> GetUnits()

Retrieves units of results including type, unit, and factor.

```csharp
public Dictionary<string, KeyValuePair<string, double>> GetUnits()

```

#### Returns

Dictionary&lt;string, KeyValuePair&lt;string, double&gt;&gt;

A dictionary where:

- The key is the type of the result.
- The value is a key-value pair where: 
    - Key: The unit of the result.
    - Value: The factor associated with the unit.

#### Examples

The following example demonstrates how to use the `GetUnits` method:

```python
print ("===GetUnits===")
units = outputReader.GetUnits()
for unit in units:
    print(f"Unit Symbol : {unit.Key}")    
    print(f"Unit : {unit.Value.Key}, Value : {unit.Value.Value}")

```

#### Remarks

This method returns units associated with different types of results. The dictionary contains entries where each key represents a type of result, and each value is a key-value pair consisting of the unit and its corresponding factor.

### <a id="VM_Post_API_OutputReader_OutputReader_GetUnitsFromModeShapeFile_System_String_"></a> GetUnitsFromModeShapeFile(string)

Retrieves unit information from a dfmf file for a specified target.

```csharp
public Dictionary<string, KeyValuePair<string, double>> GetUnitsFromModeShapeFile(string target)

```

#### Parameters

`target` string

Specifies the target entity for which unit information is retrieved.

#### Returns

Dictionary&lt;string, KeyValuePair&lt;string, double&gt;&gt;

A dictionary where:

- Key: Dimension of the result (e.g., length, time).
- Value: A key-value pair where: 
    - Key: The unit string associated with the dimension.
    - Value: The scale factor for converting the unit.

#### Examples

The following example demonstrates how to use the `GetUnitsFromModeShapeFile` method:

```python
print ("===GetUnitsFromModeShapeFile===")
units = outputReader.GetUnitsFromModeShapeFile("FEBody_01")
for unit in units:
    print(f"Unit Symbol : {unit.Key}")    
    print(f"Unit : {unit.Value.Key}, Value : {unit.Value.Value}")

```

#### Remarks

This method retrieves unit information from a dfmf file specifically for mode shapes. The dictionary contains entries where each key represents a dimension of the result (e.g., length, time), and each value is a key-value pair consisting of the unit string and its corresponding scale factor.

### <a id="VM_Post_API_OutputReader_OutputReader_GetVector_System_String_System_String_"></a> GetVector(string, string)

Retrieves vector results for a specified target entity and characteristic path.

```csharp
public IDictionary<string, IVectorDisplayAnimationData> GetVector(string target, string path)

```

#### Parameters

`target` string

Specifies the name of the vector displayable entity.

`path` string

Specifies the characteristic on the vector display.

#### Returns

IDictionary&lt;string, [IVectorDisplayAnimationData](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Models.OutputReader/Interfaces/IVectorDisplayAnimationData.cs)&gt;

A dictionary where:

- Key: String identifier associated with the vector data.
- Value: Object implementing  interface, containing vector display animation data.

#### Examples

The following example demonstrates how to use the `GetVector` method:

```python
print ("===GetVector===")
vectors = outputReader.GetVector("TJ_01", "Action Force")
for vector in vectors:
    print(f"Vector : {vector.Key}")
    animation_data = vector.Value

    positions = len(list(animation_data.Positions))
    for i in range(positions):
        first_positions = len(list(animation_data.Positions[i]))
        for j in range(first_positions):
            second_positions = list(animation_data.Positions[i][j])
            print("Positions :", *second_positions, sep=',')

    vectors = len(list(animation_data.Vectors))
    for i in range(vectors):
        first_vectors = len(list(animation_data.Vectors[i]))
        for j in range(first_vectors):
            second_vectors = list(animation_data.Vectors[i][j])
            print("Vectors :", *second_vectors, sep=',')

```

#### Remarks

This method retrieves vector results for a specified entity and characteristic path. The returned dictionary contains entries where each key represents a string identifier associated with the vector data, and each value is an object that implements the  interface, containing animation data specific to the vector display.

### <a id="VM_Post_API_OutputReader_OutputReader_GetVector_System_String_System_String_VM_Models_AnalysisResultType_"></a> GetVector(string, string, AnalysisResultType)

Retrieves vector results for a specified target entity, characteristic path, and analysis result type.

```csharp
public IDictionary<string, IVectorDisplayAnimationData> GetVector(string target, string path, AnalysisResultType analysisResultType = AnalysisResultType.Dynamics)

```

#### Parameters

`target` string

Specifies the name of the vector displayable entity.

`path` string

Specifies the characteristic on the vector display.

`analysisResultType` AnalysisResultType

Specifies the type of analysis result for the vector display. The available options are:

- 
- 
- 
- 
- 
- 
- 
- 

#### Returns

IDictionary&lt;string, [IVectorDisplayAnimationData](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Models.OutputReader/Interfaces/IVectorDisplayAnimationData.cs)&gt;

A dictionary where:

- Key: String identifier associated with the vector data.
- Value: Object implementing  interface, containing vector display animation data.

#### Examples

The following example demonstrates how to use the `GetVector` method:

```python
print ("===GetVector===")
vectors = outputReader.GetVector("TJ_01", "Action Force")
for vector in vectors:
    print(f"Vector : {vector.Key}")
    animation_data = vector.Value

    positions = len(list(animation_data.Positions))
    for i in range(positions):
        first_positions = len(list(animation_data.Positions[i]))
        for j in range(first_positions):
            second_positions = list(animation_data.Positions[i][j])
            print("Positions :", *second_positions, sep=',')

    vectors = len(list(animation_data.Vectors))
    for i in range(vectors):
        first_vectors = len(list(animation_data.Vectors[i]))
        for j in range(first_vectors):
            second_vectors = list(animation_data.Vectors[i][j])
            print("Vectors :", *second_vectors, sep=',')

```

#### Remarks

This method retrieves vector results for a specified entity, characteristic path, and analysis result type. The returned dictionary contains entries where each key represents a string identifier associated with the vector data, and each value is an object that implements the  interface, containing animation data specific to the vector display.

### <a id="VM_Post_API_OutputReader_OutputReader_InterpolationAkimaSpline_System_Double___System_Double___System_Int32_System_Int32_System_Double_System_Double_"></a> InterpolationAkimaSpline(double\[\], double\[\], int, int, double, double)

Interpolates data series using the Akima spline method.

```csharp
public (InterpolationErrorType, double[], double[]) InterpolationAkimaSpline(double[] X, double[] Y, int NoOfPnt, int NoOfDesiredPnt, double StartPnt, double EndPnt)

```

#### Parameters

`X` double\[\]

The array of x-values representing plot data.

`Y` double\[\]

The array of y-values representing plot data.

`NoOfPnt` int

The number of points in the original data series.

`NoOfDesiredPnt` int

The number of points desired in the interpolated data series.

`StartPnt` double

The start point for using the curve on the plot data.

`EndPnt` double

The end point for using the curve on the plot data.

#### Returns

(InterpolationErrorType, double\[\], double\[\])

A tuple containing:

- An  indicating the interpolation error type.

- - The target entity for plotting the curves.
- - Default or Plot Data.

- An array of x-values representing the interpolated data points. - An array of y-values representing the interpolated data points. #### Examples

The following example demonstrates how to use the `InterpolationAkimaSpline` method:

```python
print ("===Interpolation===")
x = [1,2,3,4,5]
y = [1,2,3,4,5]
plot = outputReader.InterpolationAkimaSpline(x, y, 5, 100, 0.0, 10.0);
count = len(list(plot.Item2))
print(f"InterpolationErrorType : {plot.Item1}")

for index in range(count):
    print(f"X : {plot.Item2[index]}, Y : {plot.Item3[index]}")

```

#### Remarks

This method interpolates the given data series using the Akima spline interpolation method. It returns the interpolated x and y data points based on the specified parameters.