file delete -force grade_tonnage.csv

set status [ SclFunction "EXIT GRAPHICS" {} ]

set status [ SclFunction "BM EXIT" {
  frm20103={
    {
      exit_mode="E"
    }
  }
}]

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

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

set status [ SclFunction "BM GRAPHICS ATTRIBUTE COLOUR" {
  frm20504={
    {
      default_face="pink"
      default_edge="blue"
      attribute="anisotropic_kriged_gold"
      range="-2;0;2;3;4;99"
      legend_location="no legend"
      zzzasd=table { color } {
        { "r=0.0 g=0.2 b=0.6" }
        { "r=0.152 g=0.486 b=0.721" }
        { "r=0.058 g=0.874 b=0.737" }
        { "r=0.031 g=0.741 b=0.388" }
        { "yellow" }
        { "r=0.964 g=0.776 b=0.027" }
        { "r=0.921 g=0.474 b=0.058" }
        { "r=0.8 g=0.2 b=0.0" }
        { "r=0.6 g=0.0 b=0.4" }
        { "r=0.8 g=0.0 b=0.8" }
      }
    }
  }
}]

set status [ SclFunction "BM GRAPHICS DRAW" {
  frm20503={
    {
      display="normal"
      constraint="N"
      slice="N"
      rescale="Y"
      all_blocks="N"
      cloud_marker="."
      cloud_size="1"
    }
  }
}]

set status [ SclFunction "VIEW BY BEARING" {
  frm00289={
    {
      bearing="125"
      dip="-30"
    }
  }
}]

set status [ SclFunction "BM VOL TON REPORT" {
  frm20104={
    {
      _action=display
      fname=""
      report_name="grade_tonnage"
      report_format=".csv - Comma Separated (Spreadsheet)"
      ik_cutoffs="No"
      ikMeanGrade="cutoffMean"
      constrain="Yes"
    }
  }
  frm00121={
    {
      _action="apply"
    }
  }
  frm20195={
    {
      _action=display
      rpt_desc_1=""
      report_attributes={
        {
          rpt_attribute="anisotropic_kriged_gold"
          rpt_display="Yes"
          low_cut=null
          upper_cut=null
          rpt_attribute_wt="Volume"
          rpt_attribute_avg="Average"
          rpt_expression=null
        }
      }
      use_vol="Yes"
      vol_att="qv1_partial_percent"
      Format_head="Yes"
      cullEmpty="No"
      volDecimals="0 decimal places"
      geometryType="None"
      vol_mult_factor="Value"
      mult_factor_value="2"
      group_attributes=table { group_field numeric_range } {
        { "anisotropic_kriged_gold" "0,10;999" }
      }
    }
  }
  frm20111={
    {
      _action=display
      constraints=table { not op contype location id rnga rngb lbound ubound ext } {
        { "" "INSIDE" "CONSTRAINT" "qv1" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
      }
      conexp=""
      confile=""
      keep_blocks="N"
    }
  }
}]

catch {set status [ SclFunction "RECALL ANY FILE" {
  file="grade_tonnage.xls"
  mode="openInNewLayer"
}]}
puts ""
puts ""
puts " macro _16a_bm_report.tcl completed"
puts ""
