
set status [ SclFunction "EXIT GRAPHICS" {} ]

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

set status [ SclFunction "DRAW MARKERS" {
  frm00089={
    {
      _action=display
      range1=""
      range2=""
      range3=""
      ifld_num="d1"
      textalignment="<"
      position="All points"
      legend_location="no legend"
      layer_name="dtop1045.str"
    }
  }
}]

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

set status [ SclFunction "ZOOM ALL" {} ]

set status [ SclFunction "SELECT LAYER" {
  activelayer="dtop1045.str"
}]

set status [ SclFunction "DESIGN SLOPE METHOD" {
  frm05004={
    {
      _action=display
      slope_method="design slope"
    }
  }
}]

set status [ SclFunction "DESIGN GRADE" {
  frm00070={
    {
      _action=display
      units="angle"
      design_grade="38"
    }
  }
}]

set status [ SclFunction "DEFINE NEW RAMP" {
  select_point=table { winx winy objectx objecty objectz } {
    { "-0.378" "0.495" "-221.689" "1382.360" "1045.086" }
    { "-0.412" "0.445" "-236.801" "1368.094" "1045.086" }
    { "-0.185" "0.146" "-135.212" "1281.661" "1045.086" }
  }
  frm05011={
    {
      _action=display
      ramp_name="Ramp#1"
      ramp_string="100"
      ramp_type="all cut"
      ramp_width="20"
      ramp_gradient="6.667"
    }
  }
}]

set status [ SclFunction "EXPAND SEGMENT TO ELEVATION" {
  select_point={
    {
      winx="-0.517"
      winy="0.544"
      objectx="-283.818"
      objecty="1396.625"
      objectz="1045.086"
    }
  }
  frm05003={
    {
      _action=display
      target_z_value="1025"
      maximum_height="9999"
      z_direction="down"
      horizontal_direction="expand"
    }
  }
}]

set status [ SclFunction "EXPAND SEGMENT BY BERM WIDTH" {
  select_point={
    {
      winx="-0.575"
      winy="0.468"
      objectx="-309.845"
      objecty="1374.807"
      objectz="1025.062"
    }
  }
  frm05008={
    {
      _action=display
      bench_creation_method="always"
      limiting_elevation="0"
      bench_width_method="fixed width"
      bench_width="10"
      bench_gradient="0"
      horizontal_direction="expand"
    }
  }
}]


set status [ SclFunction "POINT DELETE" {
  select_point={
    {
      winx="-0.319"
      winy="0.515"
      objectx="-174.316"
      objecty="1387.461"
      objectz="1025.000"
    }
  }
}]

set status [ SclFunction "LOAD DTM SURFACE" {
  frm05000={
    {
      _action=display
      dtm_loc="top"
      dtm_id="1"
      display_dtm="N"
    }
  }
}]

set status [ SclFunction "EXPAND SEGMENT TO DTM" {
  select_point={
    {
      winx="-0.613"
      winy="0.417"
      objectx="-287.134"
      objecty="1359.302"
      objectz="1025.000"
    }
  }
  frm05010={
    {
      _action=display
      percentage_of_height="100"
      maximum_bench_height="9999"
      limit_z_value="0"
      z_direction="down"
      horizontal_direction="expand"
    }
  }
}]

set status [ SclFunction "POINT DELETE" {
  select_point=table { winx winy objectx objecty objectz } {
    { "-0.223" "0.417" "-137.494" "1359.302" "995.738" }
    { "-0.196" "0.466" "-127.309" "1373.382" "995.444" }
    { "-0.108" "0.109" "-93.620" "1270.913" "996.806" }
    { "-0.186" "0.006" "-123.392" "1241.189" "997.368" }
  }
}]


set status [ SclFunction "FILE SAVE" {
  frmsaveFileAs={
    {
      _action=display
      AutoCAD={
        version="Autocad 24 (2010)"
      }
      output_file="surpac2str:dumpdesign1"
      outputExt=".str"
      saveStyle="N"
      Datamine={
        binary_precision="Single"
      }
      saveStyleFileName=""
      Surpac={
        FileFormat="text"
        ForceValidation="true"
        Purpose=""
        ForceCompatibility="true"
        range=""
      }
      output_type="Surpac String Files"
    }
  }
  frm00121={
    {
      _action="display"
    }
  }
}]

set status [ SclFunction "CREATE DTM" {
  frm00126={
    {
      _action=display
      location="dumpdesign1"
      break="Y"
      bdyloc=""
      interpolate_new_points="N"
      bdystr="1"
      spotrng=""
      object_num="1"
      obj_name=""
      check_distance="0.0050"
      anyspots="N"
      inout="I"
      brktest="Y"
      apply_boundary="N"
      interpolate_new_points_distance="50"
    }
  }
}]

set status [ SclFunction "EXIT GRAPHICS" {} ]

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

set status [ SclFunction "APPLY BOUNDARY" {
  frm00029={
    {
      _action=display
      bdyloc="dumpdesign"
      bdyid="1"
      ibdystr="4"
      elocn="pit_and_topo"
      erange="2"
      spot="N"
      nlocn="TEMP"
      orange="10"
      retain_string_nums="Y"
      fdesc="Y"
      in_out="O"
    }
  }
  frm45003={
    {
      _action="Yes"
    }
  }
}]

set status [ SclFunction "OPEN FILE" {
  layer="pit_and_topo2.str"
  location="dumpdesign1.str"
  plugin="Surpac String Files"
  Surpac={
    IDRange=""
    range=""
    descriptions="true"
  }
  styles=""
  replace="true"
  rescale="true"
}]

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

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

set status [ SclFunction "FILE SAVE" {
  frmsaveFileAs={
    {
      _action=display
      AutoCAD={
        version="Autocad 24 (2010)"
      }
      output_file="surpac2str:pit_dump_and_topo2"
      outputExt=".str"
      saveStyle="N"
      Datamine={
        binary_precision="Single"
      }
      saveStyleFileName=""
      Surpac={
        FileFormat="text"
        ForceValidation="true"
        Purpose="pit_and_topo OUTSIDE dumpdesign1.str"
        ForceCompatibility="true"
        range=""
      }
      output_type="Surpac String Files"
    }
  }
  frm00121={
    {
      _action=""
    }
  }
}]

set status [ SclFunction "GRAPHICS CREATE DTM" {
  frm01311={
    {
      _action=display
      interpolate_new_points_distance="50"
      obj_name=""
      object_num="1"
      interpolate_new_points="N"
      breaktest="Y"
    }
  }
}]

set status [ SclFunction "FILE SAVE" {
  frmsaveFileAs={
    {
      _action=display
      AutoCAD={
        version="Autocad 24 (2010)"
      }
      output_file="pit_dump_and_topo2"
      outputExt=".dtm"
      saveStyle="N"
      Datamine={
        binary_precision="Single"
      }
      saveStyleFileName=""
      Surpac={
        FileFormat="text"
        ForceValidation="true"
        Purpose="pit_and_topo OUTSIDE dumpdesign1.str"
        ForceCompatibility="true"
        range=""
      }
      output_type="Surpac DTM Files"
    }
  }
  frmSaveMultipleFiles={
    {
      _action="apply"
    }
  }
}]

set status [ SclFunction "OPEN FILE" {
  layer="pit_and_topo2.str"
  location="pit_dump_and_topo2.dtm"
  plugin="Surpac DTM Files"
  Surpac={
    IDRange=""
    range=""
    descriptions="true"
  }
  styles=""
  replace="true"
  rescale="true"
}]




puts ""
puts ""
puts "Macro _17_waste_dump_design.tcl completed"
puts ""
puts ""
