mirror_objects#

dlubal.api.rstab.Application.mirror_objects(self, objs, mirroring_type=None, coordinate_system=1, point_1=None, point_2=None, point_3=None, plane=None, create_copy=False, copy_including_loading=False, copy_including_imperfections=False, connect_members=False, rotate_local_coordinate_systems_of_members=False, adjust_loading_nodal_loads=False, model_id=None)#

Mirrors or copies the specified objects about defined plane.

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

  • mirroring_type (MirroringPlaneSpecificationType) – Specifies the type of mirroring plane.

  • coordinate_system (int | 1) – Specifies the coordination system to use.

  • point_1 (Vector3d | None) – Specifies point 1 for plane definition.

  • point_2 (Vector3d | None) – Specifies point 2 for plane definition.

  • point_3 (Vector3d | None) – Specifies point 3 for plane definition.

  • plane (Plane | None) – Specifies the plane for parallel plane definition.

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

  • copy_including_loading (bool | False) – Specifies whether to include the loading when copying the objects.

  • copy_including_imperfections (bool | False) – Specifies whether to include imperfections when copying the objects.

  • connect_members (bool | False) – Specifies whether to connect members when they overlap in the copy.

  • rotate_local_coordinate_systems_of_members (bool | False) – Specifies whether the objects’ local coordinate systems (LCS) should be mirrored together with the members.

  • adjust_loading_nodal_loads (bool | False) – Specifies whether to also update nodal loads so their force and moment vectors remain correct in world coordinates after the transform.

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

Returns:

None

Method Type: Core


Usage

rstab_app.mirror_objects(
    objs=[
        rstab.structure_core.Node(no=1),
        rstab.structure_core.Node(no=2),
        rstab.structure_core.Member(no=1),
    ],
    mirroring_type=rstab.manipulation.MIRRORING_PLANE_SPECIFICATION_TYPE_POINT_AND_PARALLEL_PLANE,
    plane=rstab.manipulation.PLANE_YZ,
    point_1=common.Vector3d(x=5.5, y=0.0, z=-6.0),
    create_copy=True,
)

Examples