::hwat::io::WriteMWF

Write the MWF.

Syntax

::hwat::io::WriteMWF str_weldFileLocation str_weldList

Arguments

str_weldFileLocation
The MWF file’s whole path.
str_weldList
The formatted weld data string.

Returns

Success
1
Failure
{}

Example

::hwat::utils::WriteMWF /homes/software/weldFile.txt $mywelddata

Comments

The format of the file being written is as follows:
#Point Id::    T::          X::          Y::          Z::        I::        J::        K::  PID1::  PID2::  PID3::  PID4::
The str_weldList format is as follows:
{1 {thickness 2 x 99.3 y 234.23 z 456.0 i 0.0 j 1.0 k 0.0 pidList {6004 6005}} \
2 {thickness 0 x 99.3 y 234.23 z 456.0 i 0.0 j 1.0 k 0.0 pidList {}} \
3 {thickness 3 x 99.3 y 234.23 z 456.0 i 0.0 j 1.0 k 0.0 pidList {6004 6005 6007}}}