######################################################################
#
# Macro Name    : _01b_autoplot_section.tcl
#
# Version       : Surpac 6.4
#
# Creation Date : Fri Dec 28 10:41:07 2012
#
# Description   : 
#
######################################################################

set plot_ed [SclSystemOption get {plot_editor}]
puts "plot editor setting was initially $plot_ed and is now surpac"
SclSystemOption set "plot_editor" "surpac"

catch {set status [ SclFunction "EXECUTE OS COMMAND" {
  frm00462={
    {
      os_cmd="del section*.dwf"
    }
  }
}]}

catch {set status [ SclFunction "EXECUTE OS COMMAND" {
  frm00462={
    {
      os_cmd="del oblique*.cf"
    }
  }
}]}

set status [ SclFunction "EXIT GRAPHICS" {} ]

set status [ SclFunction "GEOLOGY DATABASE DISCONNECT" {} ]

set status [ SclFunction "SETTINGS" {} ]

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

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

set status [ SclFunction "CHECK DATABASE CONNECTED" {
  databasesession="GeologyDatabase"
  databasepurpose="drillholes"
  databasehandle="GEOLOGY"
}]

set status [ SclFunction "GET DATABASE HANDLE" {
  sessionType="GeologyDatabase"
  DatabaseHandle="GEOLOGY"
  DatabaseType="drillholes"
  DatabaseName="surpac"
  result=1
}]

set status [ SclFunction "DRILLHOLE ATTRIBUTES" {
  _action=display
  trace_colour="forest green"
  trace_thickness="1"
  table=""
  field=""
  tick_mark_weight="1"
  rescale="true"
  add_constraint="true"
  cylinder_style="no cylinders"
  cylinder_radius="1.000"
  cylinder_maximum="50.0"
  show_collars="true"
  frm00012={
    {
      cons={
        {
          field=""
          operator="="
          value=""
        }
      }
    }
  }
}]

set status [ SclFunction "DRILLHOLE COLLARS" {
  show_collars="true"
  collar_marker="O"
  collar_marker_size="0.2"
  position="along path"
  collar_offset="0.0"
  num_rows="0"
}]

set status [ SclFunction "DRILLHOLE GEOLOGY" {
  num_rows="0"
}]

set status [ SclFunction "DRILLHOLE LABELS" {
  tick_length="1.0"
  num_rows="0"
}]

set status [ SclFunction "DRILLHOLE GRAPHS" {
  num_rows="0"
}]

set status [ SclFunction "DRILLHOLE DEPTH MARKERS" {
  position="left"
  offset="5.0"
  decimals="2"
  use_styles="false"
  colour=""
  font_style="Default"
  font_size="1.000"
  font_units="oru"
  alignment="right"
  major="10.0"
  minor="0.0"
  display="false"
  major_length="3.0"
  minor_length="1.0"
}]

set status [ SclFunction "DRILLHOLE APPARENT DIP MARKERS" {
  num_rows="0"
}]

SclPause 2

set status [ SclFunction "SLICING PLANES" {
  frm00298={
    {
      _action=display
      forward="20"
      backward="20"
      method="Northing"
      plane_thickness=""
      step_distance="20"
      value="7120,7600,40"
      sectionBlockModel="N"
      block_layer="block sections"
      tolerance="0"
      section_objects="N"
      object_range=""
      object_layer="object sections"
      confirm_line_ends="N"
      interval_range="range"
      colour_fill_bm_sections="N"
      zoom_plane="Y"
      view_limits="N"
      display_planes="N"
      use_interactive="N"
      colour_method="No change"
      trace_colour="jungle green"
    }
  }
}]

set status [ SclFunction "CHECK DATABASE CONNECTED" {
  databasesession="GeologyDatabase"
  databasepurpose="drillholes"
  databasehandle="GEOLOGY"
}]

set status [ SclFunction "GET DATABASE HANDLE" {
  sessionType="GeologyDatabase"
  DatabaseHandle="GEOLOGY"
  DatabaseType="drillholes"
  DatabaseName="surpac"
  result=1
}]

set status [ SclFunction "DRILLHOLE ATTRIBUTES" {
  _action=display
  trace_colour="forest green"
  trace_thickness="1"
  table=""
  field=""
  tick_mark_weight="1"
  rescale="true"
  add_constraint="false"
  cylinder_style="no cylinders"
  cylinder_radius="1.000"
  cylinder_maximum="50.0"
  show_collars="true"
}]

set status [ SclFunction "DRILLHOLE COLLARS" {
  show_collars="true"
  collar_marker="O"
  collar_marker_size="0.2"
  position="along path"
  collar_offset="0.0"
  num_rows="0"
}]

set status [ SclFunction "DRILLHOLE GEOLOGY" {
  tbl={
    "geology"
  }
  fld={
    "rock"
  }
  position={
    "right"
  }
  size={
    "1.0"
  }
  offset={
    "0.0"
  }
  num_rows="1"
}]

set status [ SclFunction "DRILLHOLE LABELS" {
  tick_length="1.0"
  tbl={
    "sample"
    "geology"
  }
  fld={
    "gold"
    "rock"
  }
  position={
    "right"
    "left"
  }
  offset={
    "1.0"
    "2.0"
  }
  decimals={
    "2"
    "-1"
  }
  use_styles={
    "true"
    "true"
  }
  colour={
    ""
    ""
  }
  font_style={
    "Default"
    "Default"
  }
  font_size={
    "1.0"
    "1.0"
  }
  font_units={
    "oru"
    "oru"
  }
  alignment={
    "left"
    "right"
  }
  combine={
    "true"
    "true"
  }
  minValue={
    ""
    ""
  }
  maxValue={
    ""
    ""
  }
  num_rows="2"
}]

set status [ SclFunction "DRILLHOLE GRAPHS" {
  num_rows="0"
}]

set status [ SclFunction "DRILLHOLE DEPTH MARKERS" {
  position="left"
  offset="5.0"
  decimals="2"
  use_styles="false"
  colour=""
  font_style="Default"
  font_size="1.000"
  font_units="oru"
  alignment="right"
  major="10.0"
  minor="0.0"
  display="false"
  major_length="3.0"
  minor_length="1.0"
}]

set status [ SclFunction "DRILLHOLE APPARENT DIP MARKERS" {
  num_rows="0"
}]

SclPause 1

set status [ SclFunction "VIEWING PLANES FORWARD" {} ]

SclPause 1

set status [ SclFunction "VIEWING PLANES FORWARD" {} ]

SclPause 1

set status [ SclFunction "VIEWING PLANES FORWARD" {} ]

SclPause 1

set status [ SclFunction "VIEWING PLANES FORWARD" {} ]

SclPause 1

set status [ SclFunction "VIEWING PLANES FORWARD" {} ]

SclPause 1

set status [ SclFunction "EXIT GRAPHICS" {} ]

set status [ SclFunction "DRILLHOLE ATTRIBUTES" {
  trace_colour="forest green"
  trace_thickness="1"
  table=""
  field=""
  tick_mark_weight="1"
  show_collars="true"
  cylinder_style="no cylinders"
  cylinder_radius="1"
  cylinder_maximum="50"
}]

set status [ SclFunction "DRILLHOLE COLLARS" {
  show_collars="true"
  collar_marker="(+)"
  collar_marker_size="0.5"
  position="along path"
  num_rows="0"
}]

set status [ SclFunction "DRILLHOLE GEOLOGY" {
  num_rows="1"
  tbl={
    "geology"
  }
  fld={
    "rock"
  }
  position={
    "left"
  }
  size={
    "1"
  }
  offset={
    "0"
  }
}]

set status [ SclFunction "DRILLHOLE LABELS" {
  tick_length="1"
  num_rows="2"
  tbl={
    "sample"
    "geology"
  }
  fld={
    "gold"
    "rock"
  }
  position={
    "right"
    "left"
  }
  alignment={
    "left"
    "right"
  }
  offset={
    "1"
    "2"
  }
  decimals={
    "2"
    "-1"
  }
  use_styles={
    "true"
    "true"
  }
  colour={
    ""
    ""
  }
  combine={
    "true"
    "true"
  }
  font_style={
    "Default"
    "Default"
  }
  font_size={
    "1"
    "1"
  }
  font_units={
    "oru"
    "oru"
  }
}]

set status [ SclFunction "DRILLHOLE GRAPHS" {
  num_rows="0"
}]

set status [ SclFunction "DRILLHOLE DEPTH MARKERS" {
  position="left"
  alignment="right"
  use_styles="true"
  colour=""
  font_style="Default"
  font_units="oru"
  font_size="1"
  major="10"
  minor="0"
  major_length="3"
  minor_length="1"
  offset="5"
  decimals="2"
  display="false"
}]

set status [ SclFunction "DRILLHOLE APPARENT DIP MARKERS" {
  num_rows="0"
}]

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

set status [ SclFunction "AUTOPLOT" {
  frm01120={
    {
      _action=display
      outputPrefix="section"
      fit="Fit to Screen"
      autogroup="Yes"
      minscale="894.394"
      uniform_scale="No"
      sheet="A3"
      orient="Landscape"
      drawsp="DEFAULT"
      grid="YXA3"
      border_id="BORD"
      title="NMA3"
      unit="M"
      xref=""
      yref=""
      include_plan_strip="No"
      plan_position="top"
      plan_grid=""
      include_note="No"
      note_corner="UL"
      create_batched_sections="No"
      section_ref_corner_source="Relative"
      image_plot="No"
      legendElements=table { include_legend legend_name x_position y_position nrows } {
        { "no" "surpac\\geology\\rock" null null null }
        { "no" "surpac\\sample\\gold" null null null }
        { "no" "ore_solid1.str\\Strings" null null null }
        { "no" "topo1.str\\Strings" null null null }
      }
      legendElementsImg=table { include_legendImg legend_nameImg x_positionImg y_positionImg nrowsImg } {
        { "no" "surpac\\geology\\rock" null null null }
        { "no" "surpac\\sample\\gold" null null null }
        { "no" "ore_solid1.str\\Strings" null null null }
        { "no" "topo1.str\\Strings" null null null }
      }
      font="Default"
      bold_font="N"
      italic_font="N"
      underline_font="N"
      height="0.18"
      legend_item_height="1"
      legend_margin="0.25"
      planesToPlot={
        {
          plot_plane=null
        }
      }
    }
  }
  frm00232={
    {
      _action=display
      line1="Drill Hole Section"
      line2="7320 North"
      line3=""
    }
  }
  frm00219={
    {
      _action=display
      ygli="50"
      yline="F"
      xgli="100"
      xline="F"
    }
  }
}]

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

SclPause 3

set status [ SclFunction "EXIT PLOT_PREVIEW" {} ]

puts ""
SclSystemOption set plot_editor $plot_ed
puts "plot editor setting is now reset to $plot_ed"
puts ""
puts ""
puts "macro _01b_autoplot_section.tcl  completed."
puts ""