
set form {
  GuidoForm form_1 {
    -default_buttons
    -label "Model Validation"
    GuidoPanel panel_1 {
    -layout BoxLayout Y_AXIS
      GuidoTextArea gainfocus {
      -visible true
      -default "This text area is here to remove focus and highlighting from the second GuidoTextArea
                This text area must have visible set to true in order to gain focus"
      -height 0
      -width 0
      }
      GuidoLabel space {
      -height 0.5
      }
      GuidoScrollPane scroll_1 {
      -label ""
      -height 10
      -width 50
        GuidoTextArea text_1 {
        -format none
        -linewrap true
        -wrap_style_word true
        -linewrap true
        -input true
        -font_highlight 0 0 0
        -default "
This macro usies the following Menu commands to display basic statistical information about the model.

1. Block model > Open / New (by opening a *.MDL file)
2. Attributes > Basic statistics
"
        }
      }
      GuidoLabel space {
      -height 0.5
      }
    }
  }
}

SclCreateGuidoForm form_handle $form {
}

$form_handle SclRun {
}

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

set status [ SclFunction "EXIT GRAPHICS" {} ]

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

set status [ SclFunction "BASIC STATISTICS" {} ]

set status [ SclFunction "STATS BM LOAD" {
  frm20121={
    {
      _action=display
      includeCoords="N"
      percentage=""
      block_size="5, 5, 10"
      constrain="Y"
      scroll_1=table { attribute weight_by_mass volume_adjustment } {
        { "gold_ok" "N" "" }
        { "gold_id2" "N" "" }
      }
    }
  }
  frm20111={
    {
      _action=display
      constraints=table { not op contype location id rnga rngb lbound ubound ext } {
        { "" "INSIDE" "CONSTRAINT" "GC_OREZONE1" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
        { "" "" "" "" "" "" "" "" "" "" }
      }
      conexp=""
      confile=""
      keep_blocks="N"
    }
  }
}]

set status [ SclFunction "BM BASIC STATISTICS" {} ]

set status [ SclFunction "STATS HISTOGRAM" {} ]

set status [ SclFunction "STATS HISTOGRAM" {} ]

set status [ SclFunction "STATS XY" {
  frm20440={
    {
      _action=display
      xvar="gold_ok"
      yvar="gold_id2"
      xtrans="None"
      xval="1"
      ytrans="None"
      yval="1"
      type="Markers"
      qq="N"
      leastsquares="Y"
    }
  }
}]

set status [ SclFunction "STATS STATISTICS" {
  frm20431={
    {
      _action=display
      range="0,100,10"
      fname="gc130_model"
      report_format=".csv - Comma Separated (Spreadsheet)"
      file_append_overwrite="OVERWRITE"
    }
  }
}]

set status [ SclFunction "STATS EXIT" {} ]

set status [ SclFunction "BM EXIT" {} ]
catch {set status [ SclFunction "RECALL ANY FILE" {
  file="gc130_model_stats.xls"
  mode="none"
}]}


puts ""
puts ""
puts "macro 2d_10c_model_stats.tcl completed"
puts ""