Tekla Open API

Detailed and full API reference helps you master Tekla Open API

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

Weld Class

The Weld class represents a normal weld in the model. A normal weld has a main part and a secondary part.
Inheritance Hierarchy

Namespace:  Tekla.Structures.Model
Assembly:  Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2018.1.0.0 (2018.1.0.0)
Syntax
[SerializableAttribute]
public sealed class Weld : BaseWeld

The Weld type exposes the following members.

Constructors
  Name Description
Public method Weld
Creates a new weld instance.
Top
Properties
  Name Description
Public property AdditionalSizeAbove
Gets or sets the additional size above for combination welds.
(Inherited from BaseWeld.)
Public property AdditionalSizeBelow
Gets or sets the additional size below for combination welds.
(Inherited from BaseWeld.)
Public property AngleAbove
Gets or sets the angle above.
(Inherited from BaseWeld.)
Public property AngleBelow
Gets or sets the angle below.
(Inherited from BaseWeld.)
Public property AroundWeld
Gets or sets a value indicating whether the weld is an around weld (true) or an edge weld (false).
(Inherited from BaseWeld.)
Public property ConnectAssemblies
Gets or sets a value indicating whether to connect a part or an assembly as a secondary part (false) or as a sub-assembly (true).
(Inherited from BaseWeld.)
Public property ContourAbove
Gets or sets the contour above.
(Inherited from BaseWeld.)
Public property ContourBelow
Gets or sets the contour below.
(Inherited from BaseWeld.)
Public property Direction
Defines the Weld edge search direction normalized to length 1000.0. Overrides Position if set.
Public property EffectiveThroatAbove
Gets or sets the effective throat above.
(Inherited from BaseWeld.)
Public property EffectiveThroatBelow
Gets or sets the effective throat below.
(Inherited from BaseWeld.)
Public property ElectrodeClassification
Gets or sets the weld electrode classification.
(Inherited from BaseWeld.)
Public property ElectrodeCoefficient
Gets or sets the electrode strength coefficient.
(Inherited from BaseWeld.)
Public property ElectrodeStrength
Gets or sets the electrode strength.
(Inherited from BaseWeld.)
Public property FinishAbove
Gets or sets the finish above.
(Inherited from BaseWeld.)
Public property FinishBelow
Gets or sets the finish below.
(Inherited from BaseWeld.)
Public property Identifier
The identifier of the object.
(Inherited from Object.)
Public property IncrementAmountAbove
Gets or sets the increment amount above.
(Inherited from BaseWeld.)
Public property IncrementAmountBelow
Gets or sets the increment amount below.
(Inherited from BaseWeld.)
Public property IntermittentType
Gets or sets the weld intermittent type.
(Inherited from BaseWeld.)
Public property IsUpToDate
Gets if the object does not have a modification which is not shared.
(Inherited from ModelObject.)
Public property LengthAbove
Gets or sets the length above.
(Inherited from BaseWeld.)
Public property LengthBelow
Gets or sets the length below.
(Inherited from BaseWeld.)
Public property MainObject
Gets or sets the main part of the weld.
(Inherited from BaseWeld.)
Public property ModificationTime
Gets latest time of the object was modified or created.
(Inherited from ModelObject.)
Public property NDTInspection
Gets or sets the NDT inspection level.
(Inherited from BaseWeld.)
Public property PitchAbove
Gets or sets the pitch above.
(Inherited from BaseWeld.)
Public property PitchBelow
Gets or sets the pitch below.
(Inherited from BaseWeld.)
Public property Placement
Gets or sets the weld placement.
(Inherited from BaseWeld.)
Public property Position
Defines the position. Use of Direction is preferred over this.
Public property PrefixAboveLine
Gets or sets the size prefix above the line.
(Inherited from BaseWeld.)
Public property PrefixBelowLine
Gets or sets the size prefix below the line.
(Inherited from BaseWeld.)
Public property Preparation
Gets or sets the weld preparation.
(Inherited from BaseWeld.)
Public property ProcessType
Gets or sets the process type.
(Inherited from BaseWeld.)
Public property ReferenceText
Gets or sets the reference text.
(Inherited from BaseWeld.)
Public property RootFaceAbove
Gets or sets the root face above.
(Inherited from BaseWeld.)
Public property RootFaceBelow
Gets or sets the root face below.
(Inherited from BaseWeld.)
Public property RootOpeningAbove
Gets or sets the root opening above.
(Inherited from BaseWeld.)
Public property RootOpeningBelow
Gets or sets the root opening below.
(Inherited from BaseWeld.)
Public property SecondaryObject
Gets or sets the secondary part of the weld.
(Inherited from BaseWeld.)
Public property ShopWeld
Gets or sets a value indicating whether the weld is a shop weld (true) or a site weld (false).
(Inherited from BaseWeld.)
Public property SizeAbove
Gets or sets the size above.
(Inherited from BaseWeld.)
Public property SizeBelow
Gets or sets the size below.
(Inherited from BaseWeld.)
Public property Standard Obsolete.
Gets or sets the weld detail/standard.
(Inherited from BaseWeld.)
Public property StitchWeld Obsolete.
Gets or sets a value indicating whether the weld is stitched (true) or not stitched (false).
(Inherited from BaseWeld.)
Public property TypeAbove
Gets or sets the type above.
(Inherited from BaseWeld.)
Public property TypeBelow
Gets or sets the type below.
(Inherited from BaseWeld.)
Public property WeldNumber
Gets the weld number.
(Inherited from BaseWeld.)
Public property WeldNumberPrefix
Gets or sets the weld number prefix.
(Inherited from BaseWeld.)
Top
Methods
  Name Description
Public method CompareTo
Compares Identifiers of model objects.
(Inherited from ModelObject.)
Public method Delete
Deletes the weld instance with the given identifier from the model database.
(Overrides ModelObjectDelete.)
Public method Equals
Check if Identifiers of model objects are same.
(Inherited from ModelObject.)
Public methodCode example GetAllReportProperties
Retrieves all properties for the model object in one hashtable. Type for the returned value must be checked using type casting.
(Inherited from ModelObject.)
Public method GetAllUserProperties
Retrieves all properties for the model object in one hashtable. Type for the returned value must be checked using type casting.
(Inherited from ModelObject.)
Public method GetChildren
Returns an enumerator of all the children model objects.
(Inherited from ModelObject.)
Public method GetCoordinateSystem
Returns the coordinate system for the given model object.
(Inherited from ModelObject.)
Public method GetDoubleReportProperties
Retrieves multiple double report properties for the model object. It is faster to fetch multiple properties at once.
(Inherited from ModelObject.)
Public method GetDoubleUserProperties
Retrieves all double properties for the model object.
(Inherited from ModelObject.)
Public method GetDynamicStringProperty
Gets a dynamic string property from the model object.
(Inherited from ModelObject.)
Public method GetFatherComponent
Returns the father component of the model object.
(Inherited from ModelObject.)
Public method GetHierarchicObjects
Returns an enumerator of all the connected hierarchic objects.
(Inherited from ModelObject.)
Public method GetIntegerReportProperties
Retrieves multiple integer report properties for the model object. It is faster to fetch multiple properties at once.
(Inherited from ModelObject.)
Public method GetIntegerUserProperties
Retrieves all integer properties for the model object.
(Inherited from ModelObject.)
Public method GetLogicalWeld
Gets the logical weld where the weld belongs. Returns false if the weld does not belong to any logical weld.
Public method GetPhase
Retrieves the phase of the model object (the phase number, the phase name, the phase comment and whether the phase is the current one or not).
(Inherited from ModelObject.)
Public method GetReportProperty(String, Double)
Retrieves a double property of the report for the model object.
(Inherited from ModelObject.)
Public method GetReportProperty(String, Int32)
Retrieves an integer property of the report for the model object.
(Inherited from ModelObject.)
Public method GetReportProperty(String, String)
Retrieves a string property of the report for the model object.
(Inherited from ModelObject.)
Public method GetSolid
Method for getting the weld solid.
(Inherited from BaseWeld.)
Public method GetStringReportProperties
Retrieves multiple string report properties for the model object. It is faster to fetch multiple properties at once.
(Inherited from ModelObject.)
Public method GetStringUserProperties
Retrieves all string properties for the model object.
(Inherited from ModelObject.)
Public method GetUserProperty(String, Double)
Retrieves a double property for the model object.
(Inherited from ModelObject.)
Public method GetUserProperty(String, Int32)
Retrieves an integer property for the model object.
(Inherited from ModelObject.)
Public method GetUserProperty(String, String)
Retrieves a string property for the model object.
(Inherited from ModelObject.)
Public method GetWeldGeometries
Method for getting weld seam geometries. Every result represents one individual seam geometry in current weld.
(Inherited from BaseWeld.)
Public method Insert
Inserts the weld into the model database. All the attributes must be set.
(Overrides ModelObjectInsert.)
Public method Modify
Modifies the existing weld in the model database to match the current one. The modification cannot be done if the weld is a part of a logical weld.
(Overrides ModelObjectModify.)
Public method Select
Selects a weld from the model database. The weld identifier must be set.
(Overrides ModelObjectSelect.)
Public method SetDynamicStringProperty
Sets a dynamic string property for the model object.
(Inherited from ModelObject.)
Public method SetLabel
Sets a label for an object when a new instance is created. The label is used in plug-ins for identifying the changed object in modification.
(Inherited from ModelObject.)
Public method SetPhase
Sets the phase of the model object.
(Inherited from ModelObject.)
Public method SetUserProperty(String, Double)
Sets a double property for the model object.
(Inherited from ModelObject.)
Public method SetUserProperty(String, Int32)
Sets an integer property for the model object.
(Inherited from ModelObject.)
Public method SetUserProperty(String, String)
Sets a string property for the model object.
(Inherited from ModelObject.)
Top
Examples
using Tekla.Structures.Model;
using Tekla.Structures.Geometry3d;

public class Example
{
       public void Example1()
       {
           Point Beam1P1 = new Point(   0, 12000, 0);
           Point Beam1P2 = new Point(3000, 12000, 0);

           Point Beam2P1 = new Point(3000, 12000, 0);
           Point Beam2P2 = new Point(3000, 18000, 0);

           Beam Beam1 = new Beam(Beam1P1, Beam1P2);
           Beam Beam2 = new Beam(Beam2P1, Beam2P2);

           Beam1.Profile.ProfileString = "HEA400";
           Beam1.Finish = "PAINT";
           Beam1.Name = "Beam 1";
           Beam2.Name = "Beam 2";

           Beam1.Insert();
           Beam2.Insert();

           Weld Weld = new Weld();
           Weld.MainObject = Beam1;
           Weld.SecondaryObject = Beam2;
           Weld.TypeAbove = BaseWeld.WeldTypeEnum.WELD_TYPE_SQUARE_GROOVE_SQUARE_BUTT;

           Weld.Insert();

           Weld.LengthAbove = 12;
           Weld.TypeBelow = BaseWeld.WeldTypeEnum.WELD_TYPE_SLOT;

           Weld.Modify();
       }
}
See Also