set status [ SclFunction "EXIT GRAPHICS" {
  frm00108={
    {
      exit_mode="E"
    }
  }
}]

set status [ SclFunction "COMBINE STRING FILES" {
  frm00041={
    {
      _action="display"
      inloc="xs"
      inrange="10140;10160;10260,10860,50;10880"
      newloc="ore"
      rid="1"
      swa_desc="Y"
      surf="N"
      istr_out="1"
    }
  }
}]

set status [ SclFunction "STRING DIRECTIONS" {
  frm00286={
    {
      _action="display"
      locn="ore"
      lrange="1"
      strange="1,16"
      isol_start="1"
      swa_desc="Y"
      turndir="C"
    }
  }
}]

set status [ SclFunction "STRING FILE SUMMARY" {
  frm00274={
    {
      _action="display"
      loc="ore"
      range="1"
      iwidth="12"
      idec="1"
    }
  }
  frm00469={
    {
      _action="display"
      loc="summary"
      rid="1"
      extension=".not - Surpac Note File"
    }
  }
}]

set status [ SclFunction "OPEN FILE" {
  _action="display"
  layer="main graphics layer"
  location="ore1.str"
  plugin="Surpac String Files"
  Surpac={
    IDRange=""
    range=""
    descriptions="true"
  }
  styles=""
  replace="true"
  rescale="true"
}]

set status [ SclFunction "STR MATHS" {
  frm00700={
    {
      _action="display"
      file_loc="ore"
      file_id="1"
      result_loc="mod"
      main=table { str_range constraint field expr } {
        { "all" "" "y" "z" }
        { "" "" "z" "y" }
        { "" "" "" "" }
        { "" "" "" "" }
        { "" "" "" "" }
        { "" "" "" "" }
        { "" "" "" "" }
        { "" "" "" "" }
        { "" "" "" "" }
        { "" "" "" "" }
      }
    }
  }
  frm00121={
    {
      _action="apply"
    }
  }
}]


set status [ SclFunction "RECALL ANY FILE" {
  file="mod1.str"
  mode="openInNewLayer"
}]

set status [ SclFunction "DRAW STRINGS" {
  frm00089={
    {
      _action="display"
      range1=""
      range2=""
      range3=""
      ifld_num="d1"
      textalignment="<"
      position="First point"
      legend_location="no legend"
      layer_name="mod1.str"
    }
  }
}]

set status [ SclFunction "CLEAN LAYER" {
  frm00605={
    {
      _action="display"
      operation="Spikes"
      spike_action="mark"
      spike_angle="5"
      dimension="3D"
      markerColour="red"
    }
  }
}]

set status [ SclFunction "CLEAN LAYER" {
  frm00605={
    {
      _action="display"
      operation="Spikes"
      spike_action="remove"
      spike_angle="5"
      dimension="3D"
    }
  }
}]

set status [ SclFunction "CLEAN LAYER" {
  frm00605={
    {
      _action="display"
      operation="Duplicate Point"
      dup_pnts_action="mark"
      dup_pnts_target="layer"
      dup_pnts_dist_min="0"
      dup_pnts_dist="0"
      dimension="3D"
      markerColour="red"
    }
  }
}]

set status [ SclFunction "CLEAN LAYER" {
  frm00605={
    {
      _action="display"
      operation="Duplicate Point"
      dup_pnts_action="remove"
      dup_pnts_target="layer"
      dup_pnts_dist_min="0"
      dup_pnts_dist="0"
      dimension="3D"
    }
  }
}]

set status [ SclFunction "ERASE TEMPORARY MARKERS" {} ]

set status [ SclFunction "SAVE FILE AS" {
  output_file="mod1.str"
  output_type="Surpac String Files"
  output_filenames=""
  Surpac={
    Purpose=""
    range=""
    FileFormat="text"
    ForceValidation="true"
    ForceCompatibility="true"
  }
  frm00121={
    {
      _action="apply"
    }
  }
}]

puts ""
puts ""
puts ""
puts ""
puts "Macro _01_data_preparation.tcl completed."
puts ""
puts ""

