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

set status [ SclFunction "TOOL MODE TRADITIONAL" {} ]

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

set status [ SclFunction "RECALL ANY FILE" {
  _action="display"
  file="mod6.dtm"
  mode="openInNewLayer"
}]

set status [ SclFunction "ERASE DTM/3DM" {
  frm00089={
    {
      _action="display"
      range1=""
      range2=""
      range3=""
      textalignment="<"
      layer_name="mod6.dtm"
    }
  }
}]

set status [ SclFunction "DRAW STRINGS" {
  frm00089={
    {
      _action="display"
      range1="1,16"
      range2=""
      range3=""
      ifld_num="d1"
      textalignment="<"
      position="First point"
      layer_name="mod6.dtm"
    }
  }
}]

set status [ SclFunction "FILE SAVE" {
  frmsaveFileAs={
    {
      AutoCAD={
        version="Autocad 18"
      }
      _action="display"
      output_file="surpac2dtm:south1"
      outputExt=".str"
      Datamine={
        binary_precision="Single"
      }
      Surpac={
        FileFormat="text"
        ForceValidation="true"
        Purpose=""
        ForceCompatibility="true"
        range="10"
      }
      output_type="Surpac String Files"
    }
  }
  frm00121={
    {
      _action="apply"
    }
  }
}]

set status [ SclFunction "FILE SAVE" {
  frmsaveFileAs={
    {
      AutoCAD={
        version="Autocad 18"
      }
      _action="display"
      output_file="surpac2dtm:north1"
      outputExt=".str"
      Datamine={
        binary_precision="Single"
      }
      Surpac={
        FileFormat="text"
        ForceValidation="true"
        Purpose=""
        ForceCompatibility="true"
        range="11"
      }
      output_type="Surpac String Files"
    }
  }
  frm00121={
    {
      _action="apply"
    }
  }
}]

set status [ SclFunction "EXIT GRAPHICS" {} ]

set status [ SclFunction "TOOL MODE TRADITIONAL" {} ]

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

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

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

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

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

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

set status [ SclFunction "EXIT GRAPHICS" {} ]

set status [ SclFunction "TOOL MODE TRADITIONAL" {} ]

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

set status [ SclFunction "RECALL ANY FILE" {
  _action="display"
  file="s_section_view1.str"
  mode="openInNewLayer"
}]
set status [ SclFunction "RECALL ANY FILE" {
  _action="display"
  file="f_section_view1.str"
  mode="openInNewLayer"
}]
set status [ SclFunction "GRAPHICS CREATE DTM" {
  frm01311={
    {
      breaktest="Y"
      interpolate_new_points="N"
    }
  }
}]

set status [ SclFunction "FILE SAVE" {
  frmsaveFileAs={
    {
      AutoCAD={
        version="Autocad 18"
      }
      output_file="surpac2str:f_section_view1"
      outputExt=".dtm"
      Datamine={
        binary_precision="Single"
      }
      Surpac={
        FileFormat="text"
        ForceValidation="true"
        Purpose="Created using STR MATHS from fault1.str"
        ForceCompatibility="true"
        range=""
      }
      output_type="Surpac DTM Files"
    }
  }
  frm00121={
    {
      _action="apply"
    }
  }
}]
puts ""
puts ""
puts "Macro _04b_triangulate_fault_data_preparation.tcl completed."
puts ""
