Offset Class

The Offset class defines the offset value of start points and end points. The offset is the distance from the current work plane in the three global directions.
Inheritance Hierarchy
SystemObject
  Tekla.Structures.ModelOffset

Namespace:  Tekla.Structures.Model
Assembly:  Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2024.0.0+a110b435391768740483e3032720a566518c9a63
Syntax
[SerializableAttribute]
public sealed class Offset

The Offset type exposes the following members.

Constructors
  NameDescription
Public methodOffset
Instantiates an offset with zero distance.
Top
Properties
  NameDescription
Public propertyDx
The current object's Dx offset. This value is defined using the object's coordinate system.
Public propertyDy
The current object's Dy offset. This value is defined using the current work plane.
Public propertyDz
The current object's Dz offset. This value is defined using the current work plane.
Top
Examples
using Tekla.Structures.Model;
using Tekla.Structures.Geometry3d;

public class Example
{
       public void Example1()
       {
           Point point = new Point(0, 0, 0);
           Point point2 = new Point(1000, 0, 0);

           Beam beam = new Beam(point, point2);

           beam.StartPointOffset.Dx = 105.0;
           beam.StartPointOffset.Dy = 205.0;
           beam.StartPointOffset.Dz = 305.0;

           beam.EndPointOffset.Dx = 405.0;
           beam.EndPointOffset.Dy = 505.0;
           beam.EndPointOffset.Dz = 605.0;

           beam.Profile.ProfileString = "HEA400";
           beam.Finish = "PAINT";

           bool result = false;
           result = beam.Insert();
       }
}
See Also
Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next