Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Weld

  • Last UpdatedNov 24, 2023
  • 3 minute read

These python classes are used in connection with the kcs_weld interface.

Class KcsWeldTable.WeldTable

The class holds information about a weld table.

Parameters and attributes:

__WeldTableName

String

Name of weld table object

__WeldTableComment

String

Weld table comment

__TotalWeldLength

Real

Total weld length

__TotalSuspensionLength

Real

Total suspension length

__WeldedJoints

list of WeldedJoint

Welded joint data

Methods:

Class constructor:

This constructor will create an instance of WeldTable class.

WeldTable()

SetWeldTableName(string)

Sets weld table name

GetWeldTableName()

Returns weld table name

SetWeldTableComment(string)

Sets weld table comment

GetWeldTableComment()

Returns weld table comment

SetTotalWeldLength(real)

Sets the total weld length

GetTotalWeldLength()

Returns total weld length

SetTotalSuspensionLength(real)

Sets total suspension length

GetTotalSuspensionLength()

Returns total suspension length

SetWeldedJoint(int,WeldedJoint)

Sets the given welded joint

GetWeldedJoint(int)

Returns the given welded joint

GetNumberWeldedJoints()

Returns number of welded joints

AddWeldedJoint(WeldedJoint)

Adds the welded joint

 

Example:

import KcsWeldTable

wt = KcsWeldTable.WeldTable()

wt.SetWeldTableComment("weld table comment")

Class KcsWeldedJoint.WeldedJoint

The class holds information about a welded joint.

Parameters and attributes:

__JointName

string

Name of joint

__JointComment

string

Joint comment

__WeldType

string

Weld type

__JointLength

real

Joint length

__SuspensionLength

real

Suspension length

__Assembly1

string

Assembly name for first part

__Assembly2

string

Assembly name for second part

__Part1

string

First part

__Part2

string

Second part

__Type1

integer

Type for first part

__Type2

integer

Type for second part

__Welds

list of Weld

Weld data

Methods:

Class constructor:

This constructor will create an instance of WeldedJoint class

WeldedJoint()

SetJointName(string)

Sets welded joint name

GetJointName()

Returns welded joint name

SetJointComment(string)

Sets welded joint comment

GetJointComment()

Returns welded joint comment

SetWeldType(string)

Sets weld type. Use one of the following types: 'fillet', 'butt'.

GetWeldType()

Returns weld type

SetJointLength(real)

Sets welded joint length

GetJointLength()

Returns welded joint length

SetSuspensionLength(real)

Sets welded joint suspension length

GetSuspensionLength()

Returns welded joint suspension length

SetAssemblyName(int, string)

Sets assembly name for the given part

GetAssemblyName((int)

Returns assembly name for the given part

SetPartName(int, string)

Sets name of the given part

GetPartName(int)

Returns name of the given part

SetPartType(int)

Sets type of the given part

GetPartType(int)

Returns type of the given part

GetNumberWelds()

Returns number of welds in welded joint

SetWeld(int, Weld)

Sets the given weld

GetWeld(int)

Returns the given weld

AddWeld(Weld)

Adds the weld

  

Example:

import KcsWeldTable

import KcsWeldedJoint

wt = KcsWeldTable.WeldTable()

wj = wt.GetWeldedJoint( 1)

wj.SetJointComment("joint comment")

Class KcsWeld.Weld

This class holds information about a weld.

Parameters and attributes:

__WeldName

string

Name of weld

__WeldComment

string

Weld comment

__WeldLength

real

Weld length

__LegLength

real

Weld leg length

__Layers

integer

Number of weld layers

__Position

string

Weld position

__TestProcedure

string

Test procedure

__Process

string

Process

__StandardProcess

string

Standard process

__StartSuspension

real

Start suspension

__EndSuspension

real

End suspension

__ConnectionAngle

real

Connection angle

__RotationAngle

real

Rotation angle

__InclinationAngle

real

InclinationAngle

__TorchVector

Vector3D

Torch vector

__BevelPart1

real

Bevel code, first part

__BevelPart2

real

Bevel code, second part

__ThicknessPart1

real

Thickness, first part

__ThicknessPart2

real

Thickness, second part

__Geometry

GeoContour3D

Weld geometry

Methods:

ClassConstructor:

This constructor will create an instance of Weld class

Weld()

SetWeldName(int, int)

Set the weld name

GetWeldName()

Returns the weld name

SetWeldComment(string)

Sets weld comment

GetWeldComment()

Returns weld comment

SetWeldLength(real)

Sets the weld length

GetWeldLength()

Returns weld length

SetLegLength(real)

Sets weld leg length

GetLegLength()

Returns weld leg length

SetLayers(int)

Sets number of weld layers

GetLayers()

Returns number of weld layers

SetPosition(string)

Sets weld position

GetPosition()

Returns weld position

SetTestProcedure(string)

Sets weld test procedure

GetTestProcedure()

Returns weld test procedure

SetProcess(string)

Sets weld process

GetProcess()

Returns weld process

SetStandardProcess(string)

Sets weld standard process

GetStandardProcess()

Returns weld standard process

SetStartSuspension(real)

Sets start suspension

GetStartSuspension()

Returns start suspension

SetEndSuspension(real)

Sets end suspension

GetEndSuspension()

Returns end suspension

SetConnectionAngle(real)

Sets connection angle

GetConnectionAngle()

Returns connection angle

SetRotationAngle(real)

Sets rotation angle

GetRotationAngle()

Returns rotation angle

SetInclinationAngle(real)

Sets inclination angle

GetInclinationAngle()

Returns inclination angle

SetTorchVector(Vector3D)

Sets torch vector

GetTorchVector()

Returns torch vector

SetBevelCode(int,real)

Sets bevel code for the given part

GetBevelCode(int)

Returns bevel code for the given part

SetThickness(int,real)

Sets thickness for the given part

GetThickness(int)

Returns thickness for the given part

  

Example:

import KcsWeldTable

import KcsWeldedJoint

import KcsWeld

wt = KcsWeldTable.WeldTable()

wj = wt.GetWeldedJoint( 1)

wld = wj.GetWeld( 1)

wld.SetWeldComment("weld comment")

wj.SetWeld( wld)

wt.SetWeldedJoint( 1, wj)

Related Links
TitleResults for “How to create a CRG?”Also Available in