(form "00590" (size 50  21)
  (heading "BLOCK MODEL ISOSURFACES")
  (label (position  2  2) (text "Generate isosurfaces to a"))
  (field "file_or_layer" (position 24 2) (display_length 6) (input allowed)
	(default "file")
	(translate lower)
	(value_in "file" "layer"))
  (label (position  2  3) (text "Location:"))
  (field "file_loc" (position 12  3) (display_length 26) (input allowed)
    (null allowed) (max_length 26)
    (dependency (value "file_or_layer") == "file")
    (file output (link "file_id") (extension "*.dtm")))
  (label (position  2  4) (text "Id Number:"))
  (field "file_id" (position 12  4) (display_length 16) (input allowed)
    (dependency (value "file_or_layer") == "file")
    (format real_8) (max_length 16))
  (label (position  2  5) (text "Purpose:"))
  (field "file_purpose" (position 12 5) (display_length 20) (input allowed)
    (dependency (value "file_or_layer") == "file")
    (default ""))
  (label (position  2  6) (text "Layer name:"))
  (field "layer_name" (position 12  6) (display_length 16) (input allowed)
    (dependency (value "file_or_layer") == "layer")
    (max_length "APP_MAX_LAYER_NAME_LENGTH"))
  (label (position 31 6) (text "Rescale?:"))
  (field "rescale" (position 39 6) (display_length 1) (value_in "Y" "N")
    (dependency (value "file_or_layer") == "layer")
    (input allowed)
    (default "Y")
    )
  (label (position 2 7) (text "Attribute:"))
  (field "attribute" (position 12 7) (display_length 16)
    (input allowed)
    (null disallowed)
    )
  (field "relation" (position 30 7) (display_length 2)
    (input allowed)
    (value_in ">" ">=" "<=" "<")
    (default ">")
    )
  (field "values" (position 36 7) (display_length 10)
    (input allowed)
    (format range) (null disallowed)
    (default "0")
    )
  (menu (position 2 8) (size 12  1)
    (grid  1  1)
    (item (function "minmax") (text "Calc Min/Max"))
  )
  (label (position 15 8) (text "Min:"))
  (field "minimum" (position 19 8) (display_length 10) (input disallowed))
  (label (position 31 8) (text "Max:"))
  (field "maximum" (position 35 8) (display_length 10) (input disallowed))
  (label (position 2 9) (text "Block Size"))
  (field "resolution" (position 12 9) (display_length 5)
    (input allowed)
    )
  (label (position 22 9) (text "Algorithm:"))
  (field "algorithm" (position 31 9) (display_length 5)
    (value_in "cubic" "tetra")
    (translate lower)
    (input allowed)
    )
  (label (position 2 10) (text "Constrain?:"))
  (field "constrain" (position 12 10) (display_length 1) (value_in "Y" "N")
    (input allowed)
    (default "N")
    )
  (scroll_block (position 8 12) (size 35 8)
    (extra 0 1)
    (scroll_size 35 20)
    (repeat interactive (grow 0 1) (instances 1 (min 1) (max 20)))
    (top
      (label (position 1 0) (text "Description Field"))
      (label (position 15 0) (text "Interpolated Attribute"))
    )
    (main
      (label (position 1 0)  (text "2"))
      (label (position 1 1)  (text "3"))
      (label (position 1 2)  (text "4"))
      (label (position 1 3)  (text "5"))
      (label (position 1 4)  (text "6"))
      (label (position 1 5)  (text "7"))
      (label (position 1 6)  (text "8"))
      (label (position 1 7)  (text "9"))
      (label (position 1 8)  (text "10"))
      (label (position 1 9)  (text "11"))
      (label (position 1 10) (text "12"))
      (label (position 1 11) (text "13"))
      (label (position 1 12) (text "14"))
      (label (position 1 13) (text "15"))
      (label (position 1 14) (text "16"))
      (label (position 1 15) (text "17"))
      (label (position 1 16) (text "18"))
      (label (position 1 17) (text "19"))
      (label (position 1 18) (text "20"))
      (label (position 1 19) (text "21"))
      (field "desc_attribute" (position 15 0) (display_length 16)
        (input allowed)
        )
    )
  )

  (default_buttons)
)
