> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface IOperationsDynamicAnalysisResultViewModel

Namespace: [VM.Operations.Post.Interfaces](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces)\
Assembly: VM.Operations.Post.dll

Interface representing information for the dynamic analysis result view model.

```csharp theme={null}
public interface IOperationsDynamicAnalysisResultViewModel : IOperationAnalysisResultViewModel, IOperationsBase
```

#### Implements

[IOperationAnalysisResultViewModel](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationAnalysisResultViewModel.md),
[IOperationsBase](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationsBase.md)

## Methods

### CreateExpression(string)

Creates a new function expression in the Motion Postprocessor.

```csharp theme={null}
IOperationsPythonExpressionViewModel CreateExpression(string newName)
```

#### Parameters

`newName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the new function expression to be created.

#### Returns

[IOperationsPythonExpressionViewModel](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationsPythonExpressionViewModel.md)

An instance of [IOperationsPythonExpressionViewModel](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationsPythonExpressionViewModel.md) representing the created function expression.

#### Examples

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

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
dynamic_analysis.CreateExpression("Expression");
```

#### Remarks

This method allows the creation of a new function expression within the Motion Postprocessor.
The `newName` parameter specifies the name of the new function expression instance.

### CreateVectorDisplay(string, string)

Creates a vector display for the specified entity and characteristic.

```csharp theme={null}
IOperationsVectorDisplayBaseViewModel CreateVectorDisplay(string entityName, string characteristic)
```

#### Parameters

`entityName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the target entity for the vector display.

`characteristic` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the characteristic. Refer to the UI for Vector Display for available characteristics.

#### Returns

[IOperationsVectorDisplayBaseViewModel](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationsVectorDisplayBaseViewModel.md)

An instance of [IOperationsVectorDisplayBaseViewModel](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationsVectorDisplayBaseViewModel.md) representing the created vector display.

#### Examples

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

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
dynamic_analysis.CreateVectorDisplay("FJ_01", "Base Force");
```

#### Remarks

This method allows the creation of a vector display based on the specified entity and characteristic.
The `entityName` parameter specifies the target entity for the vector display.
The `characteristic` parameter specifies the characteristic to be displayed, which can be referred to in the UI for Vector Display.

### SetAnimationFrame(int)

Sets a specified number of animation frames.

```csharp theme={null}
void SetAnimationFrame(int nFrames)
```

#### Parameters

`nFrames` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The number of frames to load. This parameter should be within the range of 0 to the total number of frames available.

#### Examples

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

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
dynamic_analysis.SetAnimationFrame(50);
SetAnimationFrame(50);
```

#### Remarks

This method sets the specified number of frames for the animation.
The number of frames to load is specified by the `nFrames` parameter.

### SetAnimationFrame(IEnumerable\<int>)

Sets the specified animation frames based on the provided state IDs.

```csharp theme={null}
void SetAnimationFrame(IEnumerable<int> stateIDs)
```

#### Parameters

`stateIDs` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[int](https://learn.microsoft.com/dotnet/api/system.int32)>

An enumerable collection of state IDs representing the frames to load.

#### Examples

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

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
stateIDs = analysis.GetStateIDArray();
skipIDs = List[int]();
py_stateIDs= list();
for stateID in stateIDs :
    py_stateIDs.append(stateID);
for i in range(0, len(py_stateIDs), 7) :
    skipIDs.Add(stateIDs[i]);
dynamic_analysis.SetAnimationFrame(skipIDs);
```

#### Remarks

This method sets only the specified frames for the animation, as indicated by the `stateIDs` parameter.
