> ## 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 IPage

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

The IPage interface manages views within a page. It provides functionalities for creating, finding, and closing views.

```csharp theme={null}
public interface IPage
```

## Properties

### FullName

Gets or sets the name of the page.

```csharp theme={null}
string FullName { get; set; }
```

#### Property Value

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

#### Examples

The following example demonstrates how to use the `FullName` property:

```csharp theme={null}
applicationHandler = new ApplicationHandler();
page = applicationHandler.GetPage("page1");
page.FullName = "page2";
```

#### Remarks

The FullName property provides a simple way to manage the name of a page.
It is a read-write property, meaning it can be both retrieved and modified.
This property is typically used in scenarios where the page's name is needed for display, logging, or processing purposes.

### ID

Gets the unique identifier of the page.

```csharp theme={null}
Guid ID { get; }
```

#### Property Value

[Guid](https://learn.microsoft.com/dotnet/api/system.guid)

#### Examples

The following example demonstrates how to use the `ID` property:

```csharp theme={null}
var applicationHandler = new ApplicationHandler();
var page = applicationHandler.GetPage("page1");
Console.WriteLine(page.ID);
```

#### Remarks

The ID property provides a way to uniquely identify a page.
It is a read-only property, meaning the value can only be retrieved and not modified.
This unique identifier is typically used in scenarios where a distinct and consistent reference to the page is required, such as in databases or collections.

## Methods

### Activate()

Activates the page.

```csharp theme={null}
void Activate()
```

#### Examples

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

```csharp theme={null}
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
page2 = applicationHandler.AddPage("page2")
page.Activate();
```

#### Remarks

The Activate method activates the page, ensuring that it is the only active page.
When this method is called on a page, all other pages that are currently active will be deactivated, and only the selected page will remain active.
Only one page can be active at any given time.

### Close()

Closes the current page.

```csharp theme={null}
void Close()
```

#### Examples

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

```csharp theme={null}
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
page.Close();
```

#### Remarks

The Close method is used to close the current page.
When this method is called, the page will be removed from view and any resources associated with it will be released.

### CloseView(IView)

Closes a view within the current page.

```csharp theme={null}
void CloseView(IView view)
```

#### Parameters

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

The view to be closed. This can be an Animation View or a Chart View.

#### Examples

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

```csharp theme={null}
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chartview = page.CreateChart("Chart1");
page.CloseView(chartview);
```

#### Remarks

The CloseView method is used to close a specific view within the current page.
When this method is called with the specified view, the view will be removed from the page.
The view parameter represents either an Animation View or a Chart View that is to be closed.

### CloseView(int)

Closes a view within the current page.

```csharp theme={null}
void CloseView(int id)
```

#### Parameters

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

The unique identifier of the view to be closed. This can represent an Animation View or a Chart View.

#### Examples

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

```csharp theme={null}
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chartview = page.CreateChart("Chart1");
page.CloseView(chartview.ID);
```

#### Remarks

The CloseView method is used to close a specific view within the current page.
When this method is called with the specified view's ID, the view will be located and removed from the page.
The viewID parameter represents the unique identifier of either an Animation View or a Chart View that is to be closed.

### CloseView(string)

Closes a view within the current page.

```csharp theme={null}
void CloseView(string name)
```

#### Parameters

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

The name of the view to be closed. This can represent an Animation View or a Chart View.

#### Examples

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

```csharp theme={null}
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chartview = page.CreateChart("Chart1");
page.CloseView(chartview.FullName);
```

#### Remarks

The CloseView method is used to close a specific view within the current page.
When this method is called with the specified view's name, the view will be located and removed from the page.
The name parameter represents the name of either an Animation View or a Chart View that is to be closed.

### CreateAnimation(IAnalysisResultViewModel, string)

Creates an animation view to display the analyzed results on the current page.
The CreateAnimation method is used to create an animation view that displays the analyzed results on the current page.

```csharp theme={null}
IOperationsAnimation CreateAnimation(IAnalysisResultViewModel analysis, string name = null)
```

#### Parameters

`analysis` IAnalysisResultViewModel

Represents one of the multiple analysis results contained within the analyzed data.

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

The initial name for the animation view. If not specified, a default name will be used.

#### Returns

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

An instance of IOperationsAnimation representing the created animation view.

#### Examples

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

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
page.CreateAnimation(dynamic_analysis, "ResultAnimation");
```

#### Remarks

The CreateAnimation method facilitates the visualization of analyzed results by creating an animation view.
The analysis parameter specifies the particular result to be visualized, while the optional name parameter allows for naming the animation view during its creation.

### CreateChart(string)

Creates a chart view to draw a 2D curve.
The CreateChart method is used to create a chart view for drawing 2D curves.

```csharp theme={null}
IOperationsLine2DViewModelBase CreateChart(string name = null)
```

#### Parameters

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

The initial name for the chart view. If not specified, a default name will be used.

#### Returns

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

An instance of IOperationsLine2DViewModelBase representing the created chart view.

#### Examples

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

```csharp theme={null}
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
page.CreateChart("CurveChart");
```

#### Remarks

The CreateChartView method facilitates the creation of a chart view specifically for plotting 2D curves.
The optional name parameter allows for naming the chart view during its creation.

### GetActiveView()

Retrieves the currently active view within the page.

```csharp theme={null}
IView GetActiveView()
```

#### Returns

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

The currently active view within the page. If no view is active, the method returns null.

#### Examples

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

```csharp theme={null}
applicationHandler = new ApplicationHandler();
page = applicationHandler.GetPage("page1");
activeview = page.GetActiveView();
```

#### Remarks

The GetActiveView method is used to locate and return the view that is currently active within the current page.
If no view is currently active, the method returns null.

### GetView(int)

Finds and returns a view within the current page.
The GetView method is used to retrieve a specific view within the page by its ID.

```csharp theme={null}
IView GetView(int id)
```

#### Parameters

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

The unique identifier of the view to be retrieved.

#### Returns

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

The view corresponding to the specified ID. If the view is not found, the method returns null.

#### Examples

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

```csharp theme={null}
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
chartView = page.CreateChart("Chart1");
chartView1 = page.GetView(chartView.ID);
```

#### Remarks

The GetView method is used to locate and return a specific view within the current page using its unique identifier.
If the view with the specified ID is not found, the method returns null.

### GetView(string)

Finds and returns a view within the current page.
The GetView method is used to retrieve a specific view within the page by its name.

```csharp theme={null}
IView GetView(string name)
```

#### Parameters

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

The name of the view to be retrieved.

#### Returns

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

The view corresponding to the specified name. If the view is not found, the method returns null.

#### Examples

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

```csharp theme={null}
applicationHandler = ApplicationHandler();
page = applicationHandler.GetPage("page1");
page.CreateChart("Chart1");
page.GetView("Chart1");
```

#### Remarks

The GetView method is used to locate and return a specific view within the current page using its name.
If the view with the specified name is not found, the method returns null.

### GetViews()

Retrieves all views within the current page.

```csharp theme={null}
IView[] GetViews()
```

#### Returns

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

An array of views within the current page. If no views exist, the method returns an empty array.

#### Examples

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

```csharp theme={null}
applicationHandler = new ApplicationHandler();
page = applicationHandler.GetPage("page1");
views = page.GetViews();
```

#### Remarks

The GetViews method is used to locate and return all views within the current page. If no views are present, the method returns an empty array.
