mirror_objects#

dlubal.api.rsection.Application.mirror_objects(self, objs, mirroring_type=None, point_1=None, point_2=None, axis=None, create_copy=False, model_id=None)#

Mirrors or copies the specified objects.

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

  • mirroring_type (MirroringAxisSpecificationType) – Specifies the type of mirroring axis.

  • point_1 (Vector2d | None) – Specifies point 1 for mirror axis definition.

  • point_2 (Vector2d | None) – Specifies point 2 for mirror axis definition.

  • axis (CoordinateAxis | None) – Specifies the axis for mirror axis definition.

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

  • 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.mirror_objects(
    objs=[
        rsection.structure_core.Point(no=1),
        rsection.structure_core.Line(no=1),
    ],
    mirroring_type=rsection.manipulation.MIRRORING_PLANE_SPECIFICATION_TYPE_POINT_AND_PARALLEL_AXIS,
    point_1=common.Vector2d(y=0.0, z=0.0),
    axis=rsection.manipulation.COORDINATE_AXIS_Z,
    create_copy=True
)