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

# RAPrescribedMoment

### *class* RAPrescribedMoment

Rocky PrePost Scripting wrapper representing an Additional Moment motion.

Retrieve this specific wrapper after setting the correct motion type on a [`RAMotion`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAMotion#generated.RAMotion). For
example:

```python theme={null}
motions = motion_frame.GetMotions()
motion_1 = motions.New()
motion_1.SetType('Additional Moment')
additional_moment = motion_1.GetTypeObject()
```

**Methods:**

| Name | Description |
| - | - |
| [`GetMomentValue`](#generated.RAPrescribedMoment.GetMomentValue)(\[unit]) | Get the value of "Moment Value". |
| [`SetMomentValue`](#generated.RAPrescribedMoment.SetMomentValue)(values\[, unit]) | Set the values of "Moment Value". |

#### GetMomentValue(unit: str | None = None)

Get the value of “Moment Value”.

* **Parameters:**
  **unit** – The unit for the returned values. If no unit is provided, the returned values will be in “N.m”.

#### SetMomentValue(values: Sequence\[str | float], unit: str | None = None)

Set the values of “Moment Value”.

* **Parameters:**
  * **values** – The values to set. The values can be heterogeneous, the element of values can be an
    expression with input variables or a float. Must have exactly 3 elements.
  * **unit** – The unit for values. If no unit is provided, values is assumed to be in “N.m”.
* **Raises:**
  **RockyApiError** – If values doesn’t have exactly 3 elements.
