RARectangularSurface#
- class ansys.rocky.app.ra_rectangular_surface.RARectangularSurface#
Bases:
ansys.rocky.app.ra_base_geometry.RABaseGeometry,ansys.rocky.app._ra_orientation_mixin._RAOrientationMixin,ansys.rocky.app.motion._with_movement_mixin._WithMovementMixinRocky API “Rectangular Surface” model.
Overview#
Whether the geometry is linked to a motion frame. |
|
Get the value of “Center”. |
|
Set the values of “Center”. |
|
Get the value of “Length”. |
|
Set the value of “Length”. |
|
Get the value of “Name”. |
|
Set the value of “Name”. |
|
Get the value of “Width”. |
|
Set the value of “Width”. |
Import detail#
from ansys.rocky.app.ra_rectangular_surface import RARectangularSurface
Method detail#
- RARectangularSurface.HasMotionFrame() bool#
Whether the geometry is linked to a motion frame.
- Returns:
True if geometry is linked to a motion frame False otherwise
- RARectangularSurface.GetCenter(unit: str | None = None) list[float]#
Get the value of “Center”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RARectangularSurface.SetCenter(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Center”.
- 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.
- RARectangularSurface.GetLength(unit: str | None = None) float#
Get the value of “Length”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
- RARectangularSurface.SetLength(value: str | float, unit: str | None = None) None#
Set the value of “Length”.
- 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 “m”.
- RARectangularSurface.SetName(value: str) None#
Set the value of “Name”.
- Parameters:
value – The value to set.