OperationMoveObjectMirror Method |
Mirrors the object in the plane defined by the given data is the current workplane.
Namespace: Tekla.Structures.Model.Operations
Assembly: Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2026.0.0-alpha00057080+93cd22c410a086ecc356b7088d4daaf2e12907eb
public static bool MoveObjectMirror( ModelObject modelObject, double x, double y, double angle )
Parameters
- modelObject
- Type: Tekla.Structures.ModelModelObject
The model object to mirror. - x
- Type: SystemDouble
The x coordinate of a point on the mirror line. - y
- Type: SystemDouble
The y coordinate of a point on the mirror line. - angle
- Type: SystemDouble
The angle of the mirror line in radians to the x axis.
Return Value
Type: BooleanTrue if successful.
In the following example a connection to the Tekla Structures model has already been established.
The example code creates a beam (Beam1) to the model and moves the beam mirroring in the plane y=x.
using Tekla.Structures.Model; using Tekla.Structures.Model.Operations; using Tekla.Structures.Geometry3d; using System.Windows.Forms; public class Example { public void Example1() { Beam Beam1 = new Beam(new Point(0, 0, 0), new Point(3000, 0, 0)); Beam1.Profile.ProfileString = "PL10*140"; Beam1.Insert(); if(Operation.MoveObjectMirror(Beam1, 0.0, 0.0, Math.PI / 4.0)) MessageBox.Show("Move succeeded"); } }