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

Hull and Outfitting

Weld Planning Functions

  • Last UpdatedNov 27, 2023
  • 1 minute read

These functions handle functionality within Vitesse that deals with weld planning calculations. The functions are made available in a Vitesse program by the insertion of the statement "import kcs_weld".

weld_calculation(assembly_name,recursive)

Starts the weld detection for the given assembly, and optionally also for all its sub-assemblies.

Input parameters:

assembly_name

string

Path name of the assembly

recursive

integer

0

= only the given assembly

1

= include all sub-assemblies

Returned value:

0

Error in weld calculation

1

Weld calculation OK

Exceptions:

kcs_ModelNotFound

Assembly not found

kcs_Error

General error

weld_properties_get(assembly_name, weld_table)

Returns the result of the weld detection.

Input parameters:

assembly_name

string

Path name of the assembly

Output parameters:

weld_table

WeldTable

Instance of KcsWeldTable.WeldTable class

Returned value:

[0]

integer

1 = Success

Exceptions:

kcs_AssemblyNotFound

Assembly not found

kcs_PythonMethodNotFound

Python method not found. Check your KcsWeldTable implementation file.

kcs_ArgumentError

Invalid arguments list.

weld_properties_set(assembly_name, weld_table)

Updates an existing weld table.

Input parameters:

assembly_name

Path name of the assembly

Weld_table

Instance of KcsWeldTable.WeldTable

Returned value:

0

Error updating weld table

1

OK

Exceptions:

kcs_ModelNotFound

Assembly not found

weld_delete(assembly_name)

Deletes the weld table object on data bank

Input parameters:

assembly_name

Path name of the assembly

Returned value:

0

Error deleting weld table

1

OK

Exceptions:

kcs_ModelNotFound

Assembly not found

kcs_Error

General error

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