class RAConeCrusherFrame
Rocky PrePost Scripting wrapper for a cone crusher frame. The class contains methods to configure a cone crusher frame. There are some options to retrieve a specificRAConeCrusherFrame in a project from a RAStudy,
a RAMotionFrameSource, another RAConeCrusherFrame or a RAMotionFrame:
RAStudy.GetMotionFrameSource()), or as a ‘child’ frame of a pre-existing cone crusher frame:
GetInitialOrientation(unit: str | None = None)
Get the value of “Initial Orientation”.- Parameters: unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
GetMotionFrame(frame_name)
Get a specific motion frame given its name.- Parameters: frame_name (unicode)
- Return type: RAMotionFrame
GetParentMotionFrame()
Gets the parent motion frame. If the Motion Frame is a RAMotionFrameSource it returns None.- Return type: RAMotionFrame
GetPivotPoint(unit: str | None = None)
Get the value of “Pivot Point”.- Parameters: unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
GetRotationAxis(unit: str | None = None)
Get the value of “Rotation Axis”.- Parameters: unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
GetRotationalVelocity(unit: str | None = None)
Get the value of “Rotational Velocity”.- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “rad/s”.
GetStartTime(unit: str | None = None)
Get the value of “Start Time”.- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
GetStopTime(unit: str | None = None)
Get the value of “Stop Time”.- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
IterMotionFrames()
Iterates over all the motion frames available (recursively).- Return iter(RAMotionFrame):
NewConeCrusherFrame()
Creates a new cone crusher frame.- Return type: RAConeCrusherFrame
NewFrame()
Creates a new motion frame.RemoveFrame(motion_frame)
Removes a previously-created motion frame.- Parameters: motion_frame (RAMotionFrame or RAConeCrusherFrame)
SetInitialOrientation(values: Sequence[str | float], unit: str | None = None)
Set the values of “Initial Orientation”.- 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 “m”.
- Raises: RockyApiError – If values doesn’t have exactly 3 elements.
SetPivotPoint(values: Sequence[str | float], unit: str | None = None)
Set the values of “Pivot Point”.- 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 “m”.
- Raises: RockyApiError – If values doesn’t have exactly 3 elements.
SetRotationAxis(values: Sequence[str | float], unit: str | None = None)
Set the values of “Rotation Axis”.- 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 “m”.
- Raises: RockyApiError – If values doesn’t have exactly 3 elements.
SetRotationalVelocity(value: str | float, unit: str | None = None)
Set the value of “Rotational Velocity”.- Parameters:
- value – The value to set. This value can be an expression with input variables or float type.
- unit – The unit for value. If no unit is provided, value is assumed to be in “rad/s”.
SetStartTime(value: str | float, unit: str | None = None)
Set the value of “Start Time”.- Parameters:
- value – The value to set. This value can be an expression with input variables or float type.
- unit – The unit for value. If no unit is provided, value is assumed to be in “s”.
SetStopTime(value: str | float, unit: str | None = None)
Set the value of “Stop Time”.- Parameters:
- value – The value to set. This value can be an expression with input variables or float type.
- unit – The unit for value. If no unit is provided, value is assumed to be in “s”.