(form "45002" (size 50 16)
  (help "45002_TIP_0")
  (heading "EXTRACT SLICES THROUGH OBJECTS")

  (label (position  2  3) 
         (text "Define the objects to be sliced and the new layer name"))
  (label (position  2  4) 
         (text "Object range"))
  (label (position  2  5) 
         (text "Slice layer"))
  (label (position  2  9) 
         (text "Define the files to contain the slices"))
  (label (position  2  10) 
         (text "Location"))
  (field "block_model" (position 15 4) (display_length 1) 
    (foreground (user_option "form_background"))
    (background (user_option "form_background"))
    (input disallowed)
    (null allowed)(max_length 32)
    )
  (field "rid" (position 15 4) (display_length 1) 
    (foreground (user_option "form_background"))
    (background (user_option "form_background"))
    (input disallowed)
    (null allowed)(max_length 32)
    )

  (field "object_range" (position 15 4) (display_length 26) (input allowed)
    (format range) (null allowed) (max_length 32)
    (help "45002_TIP_1")
  )

  (field "slice_layer" (position 15 5) (display_length 26) (input allowed)
    (translate lower) (null disallowed) (max_length 32)
    (help "45002_TIP_2")
  )
  (label (position  2  6) 
         (text "Slice Block Model ?")
    )
  (field "inc_block" (position 15 6) (display_length 3) 
    (input allowed)
    (null disallowed)
    (max_length 32)
    (value_in "Yes" "No")
    (browser right)
    (default "Yes")
    (dependency(value "block_model") == "Y")
    (help "45002_TIP_3")
    )
  (label (position  2  7) 
         (text "BM Slice Layer")
    )
  (field "block_layer" (position 15 7) (display_length 26) 
    (input allowed)
    (null allowed)
    (max_length 32)
    (dependency(value "inc_block") == "Yes")
    (help "45002_TIP_4")
    )
  (field "file_prefix" (position 15 10) (display_length 26) (input allowed)
    (translate lower) (null disallowed) (max_length 26)
    (file output (link "rid") (extension "*.str"))
    (help "45002_TIP_5")
  )

  (label (position  2  11) 
         (text "ID numbers are"))

  (field "id_is_number_or_chainage" (position 15 11) (display_length 16) 
    (input allowed)
    (max_length 16) (null disallowed) (translate lower) 
    (default "sequence numbers")
    (value_in "sequence numbers" "chainages")
    (help "45002_TIP_6")
  )

  (field "id_number_label" (position 2 12) (display_length 10) 
    (background)
    (input disallowed) (max_length 16) (null disallowed) 
    (default "Start ID number")
    (value_in "Start ID number")
    (dependency (value "id_is_number_or_chainage") == "sequence numbers")
  )

  (field "start_id_number" (position 15 12) (display_length 10) 
    (input allowed)
    (max_length 16) (null disallowed) (format real_8) (default "1")
    (dependency (value "id_is_number_or_chainage") == "sequence numbers")
    (help "45002_TIP_7")
  )

  (field "id_chainage_label" (position 2 13) (display_length 10) 
    (background)
    (input disallowed) (max_length 16) (null disallowed) 
    (default "Chainage offset")
    (value_in "Chainage offset")
    (dependency (value "id_is_number_or_chainage") == "chainages")
  )

  (field "chainage_offset" (position 15 13) (display_length 10) 
    (input allowed)
    (max_length 16) (null disallowed) (format real_8) (default "0")
    (dependency (value "id_is_number_or_chainage") == "chainages")
    (help "45002_TIP_8")
  )

  (label (position  2  14) 
         (text "Coordinates"))

  (field "coordinates" (position 15 14) (display_length 10)
    (input allowed) (null disallowed)
    (value_in "real world" "section")
    (default "real world")
    (help "45002_TIP_9")
  )

  (default_buttons)
)
