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

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

Represents a view model for the simplemath line data series.

```python theme={null}
public interface IOperationsSimpleMathLineDataSeriesViewModel
```

## 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 theme={null}
# IOperationsSimpleMathLineDataSeriesViewModel.py
import sys

current_dir = __file__.rsplit('\\', 1)[0]
external_modules_path = current_dir + '\\..\\..\\Modules'
sys.path.append(external_modules_path)

from OperationAPI import *

# Start the headless application interface
applicationHandler = ApplicationHandler()

# Import result file
result_file_path = get_result_file_path()

# Set array about result file
filepaths = List[str]()
filepaths.Add(result_file_path)

# Open about result files
applicationHandler.AddDocument(filepaths)

# Get Page
page = applicationHandler.GetActivePage()

# Create PlotView
chartView = page.CreateChart("Chart")

# Set array about combination of characteristic and component
curvePaths = List[str]()
curvePaths.Add(r'Displacement/Magnitude')
curvePaths.Add(r'Displacement/Z')

# Set a Curve Parameter
parameters = PlotParameters()
parameters.Paths = curvePaths
parameters.Target = "Crank"

# Add Curves (FilePath, Curve Parameter)
# FilePath - The path of the result to access.
# parameters - The class used as a parameter of the AddCurve function.
# The instance of the curve.
curves = chartView.AddCurves(result_file_path, parameters)

# Documentation Example
# SeriesNames - A list of curve names.
# SimpleMathType - The types of the simple math are as follows.
# Points - The number of data points for interpolation.

# Add
curve = chartView.CreateSimpleMath(curves, SimpleMathType.Add, 100)
curve.MathType = SimpleMathType.Subtract
curve.Points = 200

# Close the Pages
page.Close()

# Close the Document
applicationHandler.CloseDocument(result_file_path)
```

## Properties

### MathType

Gets or sets the type of simple math operation.

```python theme={null}
SimpleMathType MathType { get; set; }
```

#### Property Value

SimpleMathType

#### Examples

For an example that includes this property, see the [Interface IOperationsSimpleMathLineDataSeriesViewModel](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r2/lib/VM.Operations.Post.Interfaces.IOperationsSimpleMathLineDataSeriesViewModel.md).

#### Remarks

Use this property to specify or retrieve the type of simple math operation.
The supported types are:
<ul><li>Add</li><li>Subtract</li><li>Multiply</li></ul>

### Points

Gets or sets the number of data points for interpolation.

```python theme={null}
int Points { get; set; }
```

#### Property Value

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

#### Examples

For an example that includes this property, see the [Interface IOperationsSimpleMathLineDataSeriesViewModel](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r2/lib/VM.Operations.Post.Interfaces.IOperationsSimpleMathLineDataSeriesViewModel.md).

#### Remarks

Use this property to specify or retrieve the number of data points to be used for interpolation.
