RABaseMotionFrame#
- class ansys.rocky.app.motion.ra_base_motion.RABaseMotionFrame(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItemBase class for Api representations of MotionFrames and MotionFrameSources. Provides methods to create, iterate and remove motion frames.
Overview#
Creates a new motion frame. |
|
Creates a new cone crusher frame. |
|
Iterates over all the motion frames available (recursively). |
|
Get a specific motion frame given its name. |
|
Removes a previously-created motion frame. |
|
Gets the parent motion frame. |
Import detail#
from ansys.rocky.app.motion.ra_base_motion import RABaseMotionFrame
Method detail#
- RABaseMotionFrame.NewFrame() ansys.rocky.app.motion.ra_motion_frame.RAMotionFrame#
Creates a new motion frame.
- RABaseMotionFrame.NewConeCrusherFrame() ansys.rocky.app.motion.ra_cone_crusher_frame.RAConeCrusherFrame#
Creates a new cone crusher frame.
- Return type:
- RABaseMotionFrame.IterMotionFrames() Iterator[ansys.rocky.app.motion.ra_motion_frame.RAMotionFrame | ansys.rocky.app.motion.ra_cone_crusher_frame.RAConeCrusherFrame]#
Iterates over all the motion frames available (recursively).
- Return iter(RAMotionFrame):
- RABaseMotionFrame.GetMotionFrame(frame_name: str) ansys.rocky.app.motion.ra_motion_frame.RAMotionFrame | ansys.rocky.app.motion.ra_cone_crusher_frame.RAConeCrusherFrame#
Get a specific motion frame given its name.
- Parameters:
frame_name (unicode)
- Return type:
- RABaseMotionFrame.RemoveFrame(motion_frame: ansys.rocky.app.motion.ra_motion_frame.RAMotionFrame | ansys.rocky.app.motion.ra_cone_crusher_frame.RAConeCrusherFrame) None#
Removes a previously-created motion frame.
- Parameters:
motion_frame (RAMotionFrame or RAConeCrusherFrame)
- RABaseMotionFrame.GetParentMotionFrame() ansys.rocky.app.motion.ra_motion_frame.RAMotionFrame | None#
Gets the parent motion frame. If the Motion Frame is a RAMotionFrameSource it returns None.
- Return type: