OperationCopyObjectMirror Method |
Creates a mirrored copy of the given model object.
Namespace: Tekla.Structures.Model.Operations
Assembly: Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2026.0.0-alpha00057080+93cd22c410a086ecc356b7088d4daaf2e12907eb
public static ModelObject CopyObjectMirror( ModelObject modelObject, double x, double y, double angle )
Parameters
- modelObject
- Type: Tekla.Structures.ModelModelObject
The model object to copy. - 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: ModelObjectThe copied model object if successful.
In the following example a connection to the Tekla Structures model has already been established.
The example code creates a beam to the model and copies 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"; if(Beam1.Insert()) { Beam Beam2 = Operation.CopyObjectMirror(Beam1, 10000.0, 0.0, Math.PI / 2.0) as Beam; if(Beam2 != null) MessageBox.Show("Copy succeeded"); } } }