Speed Event
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpSpeedEvent |
| Module | cenpylib.CENPyOlpSpeedEvent |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 6 |
| Inherits from | CENPyOlpBuiltInEvent |
Inheritance
Quick Start
# Boilerplate Example
# Acquire the event object from the runtime context
speedEvent = ... # provided by the frameworkMethod Index
| Method | Returns | Summary |
|---|---|---|
GetSpeed | float | Get the speed value. |
SetSpeed | — | Set the speed value. |
GetPathType | int | Get the path type that this event is for. |
SetPathType | — | Set the path type that this event is for. |
GetUnit | int | Get the event units. |
SetUnit | — | Set the event units. |
Query Methods
GetSpeed
def GetSpeed() -> floatGet the speed value.
Returns: float — Speed value.
GetPathType
def GetPathType() -> intGet the path type that this event is for.
Returns: int — Path type.
GetUnit
def GetUnit() -> intGet the event units.
Returns: int — Event units.
Mutation Methods
SetSpeed
def SetSpeed(speed: float)Set the speed value.
Parameters:
| Name | Type | Description |
|---|---|---|
speed | float | New speed value. |
SetPathType
def SetPathType(inPathType: int)Set the path type that this event is for.
Parameters:
| Name | Type | Description |
|---|---|---|
inPathType | int | New path type. |
SetUnit
def SetUnit(inUnit: int)Set the event units. The units must be in the list of allowed units for the event, otherwise, the method does nothing.
Parameters:
| Name | Type | Description |
|---|---|---|
inUnit | int | New event units. |
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?