(form "01127" (size 57 22)
  (heading "Pre-split parameters")


  (label
    (position 2 3)
    (text "Line Origin")
    )
  (label
    (position 12 3)
    (text "X")
    )

  (field "xpos"
    (position 14 3)
    (display_length 8)
    (max_length 20)
    (format real_8)
    (input allowed)
    (null disallowed)
    )

  (label
    (position 12 4)
    (text "Y")
    )
  (field "ypos"
    (position 14 4)
    (display_length 8)
    (max_length 20)
    (format real_8)
    (input allowed)
    (null disallowed)
    )
  (label
    (position 25 3)
    (text "Line Length")
    )
  (field "width"
    (position 35 3)
    (display_length 10)
    (max_length 20)
    (format real_8)
    (input allowed)
    (null disallowed)
    )

  (label
    (position 25 4)
    (text "Bearing")
    )
  (field "angle"
    (position 35 4)
    (display_length 10)
    (max_length 20)
    (format real_8)
    (input allowed)
    (null disallowed)
    )

  (label
    (position 2 6)
    (text "Spacing Input"
      )
    )
  (field "size_method"
    (position 12 6)
    (display_length 10)
    (max_length 20)
    (input allowed)
    (null disallowed)
    (value_in "Spacing" "No holes")
    (default "Spacing")
    )

  (field "columns_inp_label"
    (position 2 7)
    (display_length 6)
    (background(user_option "form_background"))
    (dependency(value "size_method") == "No holes")
    (input disallowed)
    (default "No. Holes")
    )
  (field "columns_inp"
    (position 12 7)
    (display_length 4)
    (max_length 10)
    (format integer_4)
    (input allowed)
    (null disallowed)
    (default "5")
    )

  (field "spacing_display_label"
    (position 20 7)
    (display_length 6)
    (background(user_option "form_background"))
    (input disallowed)
    (default "Spacing")
    )
  (field "spacing_display"
    (position 28 7)
    (display_length 6)
    (background(user_option "form_background"))
    (foreground (user_option "form_text_highlight"))
    (max_length 20)
    (format real_8)
    (decimals 5)
    (input disallowed)
    (null disallowed)
    )

  (field "columns_display_label"
    (position 20 7)
    (display_length 6)
    (background(user_option "form_background"))
    (input disallowed)
    (default "No. holes")
    )
  (field "columns_display"
    (position 28 7)
    (display_length 4)
    (background(user_option "form_background"))
    (foreground (user_option "form_text_highlight"))
    (max_length 10)
    (format integer_4)
    (input disallowed)
    (default "5")
    )

  (field "spacing_inp_label"
    (position 2 7)
    (display_length 6)
    (background(user_option "form_background"))
    (input disallowed)
    (default "Spacing")
    )
  (field "spacing_inp"
    (position 12 7)
    (display_length 6)
    (dependency(value "size_method") == "Spacing")
    (max_length 20)
    (format real_8)
    (decimals 5)
    (input allowed)
    (null disallowed)
    )
  (label
    (position 2 8)
    (text "Offset from Line")
    )
  (field "offset"
    (position 12 8)
    (display_length 6)
    (max_length 20)
    (low_bound 0)
    (format real_8)
    (decimals 5)
    (input allowed)
    (null disallowed)
    (default "0")
    )

  (label
    (position 2 10)
    (text "Collar Elevation")
    )
  (field "collar_el"
    (position 12 10)
    (display_length 10)
    (input allowed)
    (null disallowed)
    (auto_next off)
    (value_in "Fixed" "DTM layer" "DTM file")
    (default "Fixed")
    )

  (field "fixed_label"
    (position 2 11)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "collar_el") == "Fixed")
    (input disallowed)
    (default "Elevation")
    )
  (field "fixed_el"
    (position 12 11)
    (display_length 8)
    (max_length 20)
    (dependency(value "collar_el") == "Fixed")
    (format real_8)
    (input allowed)
    (null disallowed)
    )

  (field "layer_label"
    (position 2 11)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "collar_el") == "DTM layer")
    (input disallowed)
    (default "Layer Name")
    )
  (field "layer_name"
    (position 12 11)
    (display_length 13)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "collar_el") == "DTM layer")
    (auto_next off)
    (input allowed)
    (null disallowed)
    )

  (field "object_id_lay_top"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "collar_el") == "DTM layer")
    (format integer_4)
    (input allowed)
    )

  (field "trisolation_id_lay_top"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "collar_el") == "DTM layer")
    (format integer_4)
    (input allowed)
    )

  (field "file_location_label"
    (position 2 11)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "collar_el") == "DTM file")
    (input disallowed)
    (default "Location")
    )
  (field "file_location"
    (position 12 11)
    (display_length 10)
    (max_length 50)
    (dependency(value "collar_el") == "DTM file")
    (file(link "file_id")(extension "*.dtm"))
    (input allowed)
    (null disallowed)
    )

  (field "file_id_label"
    (position 2 12)
    (display_length 2)
    (background(user_option "form_background"))
    (dependency(value "collar_el") == "DTM file")
    (input disallowed)
    (default "Id")
    )
  (field "file_id"
    (position 12 12)
    (display_length 10)
    (dependency(value "collar_el") == "DTM file")
    (input allowed)
    )

  (field "object_id_top"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "collar_el") == "DTM file")
    (format integer_4)
    (value_in non_exclusive)
    (input allowed)
    (null disallowed)
    )

  (field "trisolation_id_top"
    (position 12 13)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "collar_el") == "DTM file")
    (format integer_4)
    (value_in non_exclusive)
    (input allowed)
    (null disallowed)
    )

  (field "visible_label"
    (position 2 14)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "collar_el") == "DTM file")
    (input disallowed)
    (default "Make Visible?")
    )
  (field "visible"
    (position 12 14)
    (display_length 3)
    (dependency(value "collar_el") == "DTM file")
    (input allowed)
    (null disallowed)
    (value_in "Yes" "No")
    (default "No")
    )

  (label
    (position 28 10)
    (text "Hole Length")
    )
  (field "hole_length"
    (position 38 10)
    (display_length 10)
    (max_length 20)
    (input allowed)
    (null disallowed)
    (value_in "Set Length" "Set Elevation" "DTM layer" "DTM file" "Set to Segment")
    (default "Set Length")
    )

  (field "set_length_label"
    (position 28 11)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "Set Length")
    (input disallowed)
    (default "Hole Length")
    )
  (field "set_length"
    (position 38 11)
    (display_length 8)
    (max_length 20)
    (low_bound 0.001)
    (dependency(value "hole_length") == "Set Length")
    (format real_8)
    (input allowed)
    (null disallowed)
    )

  (field "segment_offset_label"
    (position 28 11)
    (display_length 10)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "Set to Segment")
    (input disallowed)
    (default "Segment Offset")
    )
  (field "segment_offset"
    (position 40 11)
    (display_length 8)
    (max_length 20)
    (dependency(value "hole_length") == "Set to Segment")
    (format real_8)
    (input allowed)
    (null disallowed)
    (default "0")
    )

  (label (position 28 12)
    (text "Fix Value")
    )
  (field "segment_fix"
    (position 40 12)
    (display_length 8)
    (max_length 20)
    (dependency(value "hole_length") == "Set to Segment")
    (input allowed)
    (null disallowed)
    (value_in "Bearing" "Offset")
    (default "Bearing")
    )

  (field "set_el_label"
    (position 28 11)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "Set Elevation")
    (input disallowed)
    (default "Elevation")
    )

  (field "set_el"  
    (position 38 11)
    (display_length 8)
    (max_length 20)
    (dependency(value "hole_length") == "Set Elevation")
    (format real_8)
    (input allowed)
    (null disallowed)
    )

  (field "length_layer_label"
    (position 28 11)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "DTM layer")
    (input disallowed)
    (default "Layer Name")
    )
  (field "length_layer_name"
    (position 38 11)
    (display_length 13)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (auto_next off)
    (dependency(value "hole_length") == "DTM layer")
    (input allowed)
    (null disallowed)
    )

  (field "object_id_lay_bot"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "hole_length") == "DTM layer")
    (format integer_4)
    (input allowed)
    )

  (field "trisolation_id_lay_bot"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "hole_length") == "DTM layer")
    (format integer_4)
    (input allowed)
    )

  (field "length_location_label"
    (position 28 11)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "DTM file")
    (input disallowed)
    (default "Location")
    )
  (field "length_file_location"
    (position 38 11)
    (display_length 10)
    (max_length 50)
    (dependency(value "hole_length") == "DTM file")
    (file(link "length_file_id")(extension "*.dtm"))
    (input allowed)
    (null disallowed)
    )

  (field "length_id_label"
    (position 28 12)
    (display_length 2)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "DTM file")
    (input disallowed)
    (default "Id")
    )
  (field "length_file_id"
    (position 38 12)
    (display_length 10)
    (dependency(value "hole_length") == "DTM file")
    (input allowed)
    )

  (field "object_id_bot"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "hole_length") == "DTM file")
    (format integer_4)
    (input allowed)
    )

  (field "trisolation_id_bot"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "hole_length") == "DTM file")
    (format integer_4)
    (input allowed)
    )

  (field "length_visible_label"
    (position 28 13)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "DTM file")
    (input disallowed)
    (default "Make Visible?")
    )
  (field "length_visible"
    (position 38 13)
    (display_length 3)
    (dependency(value "hole_length") == "DTM file")
    (input allowed)
    (null disallowed)
    (value_in "Yes" "No")
    (default "No")
    )

  (label
    (position 2 15)
    (text "Bearing")
    )
  (field "bearing_type"
    (position 12 15)
    (display_length 13)
    (max_length 20)
    (input allowed)
    (null disallowed)
    (value_in "Set Bearing" "Perp. to Segment")
    (default "Set Bearing")
    )
  (label
    (position 2 16)
    (text "Hole Bearing")
    )
  (field "bearing"
    (position 12 16)
    (display_length 8)
    (max_length 20)
    (format decimal_angle)
    (low_bound 0) 
    (high_bound 6.283185307)
    (dependency(value "bearing_type") == "Set Bearing")
    (input allowed)
    (null disallowed)
    (default "0")
    )

  (label
    (position  2 17)
    (text "Hole Dip")
    )
  (field "dip"
    (position 12 17)
    (display_length 6)
    (max_length 20)
    (low_bound -1.570796327)
    (high_bound 1.570796327)
    (format decimal_angle)
    (dependency(value "hole_length") != "Set to Segment")
    (input allowed)
    (null disallowed)
    (default "-90")
    )

  (label
    (position  2 18)
    (text "Hole Diameter")
    )
  (field "diameter"
    (position 12 18)
    (display_length 6)
    (max_length 20)
    (low_bound 0)
    (format real_8)
    (input allowed)
    (null disallowed)
    )

  (label
    (position 2 19)
    (text "Clip to Boundary")
    )
  (field "clip"
    (position 12 19)
    (display_length 3)
    (max_length 5)
    (input allowed)
    (null disallowed)
    (value_in "Yes" "No")
    (default "No")
    )

  (label
    (position 2 20)
    (text "Pattern Identifier")
    )
  (field "pattern_id"
    (position 12 20)
    (display_length 8)
    (max_length 20)
    (input allowed)
    (null disallowed)
    )

  (label
    (position 30 15)
    (text "Hole ID Prefix")
    )
  (field "prefix"
    (position 40 15)
    (display_length 8)
    (max_length 20)
    (input allowed)
    (null allowed)
    )

  (label
    (position 30 16)
    (text "Hole ID Suffix")
    )
  (field "suffix"
    (position 40 16)
    (display_length 8)
    (max_length 20)
    (input allowed)
    (null allowed)
    )

  (label
    (position 30 17)
    (text "Starting Value")
    )
  (field "start"
    (position 40 17)
    (display_length 8)
    (max_length 20)
    (format integer_4)
    (input allowed)
    (null disallowed)
    (default "1")
    )

  (label
    (position 30 18)
    (text "Pad Hole_Id")
    )
  (field "pad_check"
    (position 42 18)
    (display_length 2)
    (max_length 5)
    (input allowed)
    (null disallowed)
    (value_in "Yes" "No")
    (default "Yes")
    )

  (field "pad_length_label"
    (position 30 19)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "pad_check") == "Yes")
    (input disallowed)
    (default "Pad Length")
    )
  (field "pad_length"
    (position 42 19)
    (display_length 2)
    (max_length 20)
    (format integer_4)
    (low_bound 1)
    (dependency(value "pad_check") == "Yes")
    (input allowed)
    (null disallowed)
    (default "5")
    )

  (field "pad_char_label"
    (position 30 20)
    (display_length 10)
    (background(user_option "form_background"))
    (dependency(value "pad_check") == "Yes")
    (input disallowed)
    (default "Pad Character")
    )
  (field "pad_char"
    (position 42 20)
    (display_length 2)
    (max_length 1)
    (dependency(value "pad_check") == "Yes")
    (input allowed)
    (null disallowed)
    (default "0")
    )

  (field "subdrill"
    (position 12 17)
    (display_length 6)
    (max_length 20)
    (format real_8)
    (input allowed)
    )

  (field "rmc"
    (position 12 13)
    (display_length 10)
    (max_length 30)
    (input allowed)
    (null allowed)
    ) 

  (field "rig"
    (position 12 19)
    (display_length 8)
    (max_length 20)
    (input allowed)
    )

  (default_buttons)
)
