rotate_objects#

dlubal.api.rsection.Application.rotate_objects(self, objs, rotation_angle, point_1=None, create_copy=False, number_of_steps=None, model_id=None)#

Moves or copies the specified objects in a defined direction.

Parameters:
  • objs (list) – The list of specified model objects.

  • rotation_angle (float) – Specifies the angle for rotation.

  • point_1 (Vector2d | None) – Specifies the point 1 for vector-based rotation.

  • create_copy (bool | False) – Specifies whether copies of the specified objects should be created.

  • number_of_steps (int | None) – Specifies the number of copies to create.

  • model_id (ModelId | None) – The unique identifier of the model. If None, the active model is used.

Returns:

None

Method Type: Core


Usage

rsection_app.rotate_objects(
   objs=rsection_app.get_object_list(
         objs=[rsection.structure_core.Point()]
   ),
   rotation_angle=math.pi,
   point_1=common.Vector3d(x=0,y=0,z=0),
   axis=rsection.manipulation.COORDINATE_AXIS_Y,
   rotation_axis=rsection.manipulation.ROTATION_AXIS_SPECIFICATION_TYPE_POINT_AND_PARALLEL_AXIS,
   create_copy=True,
   number_of_steps=1
)