proc setAvailableOptions { } {
global cent_type_1
global cent_type_2
set dataBuffer [ GuidoExecServer GetBlockModelParameters {} ]
set modelType [ GuidoGetParamBufferValue $dataBuffer ModelType ]
if { $modelType == "simple" } {
$cent_type_1 setInputAllowed false
$cent_type_2 setInputAllowed false
}
}
GuidoForm frm20190 {
-default_buttons
-label "Create Attribute Report From Block Model"
-layout BoxLayout X_AXIS
-tip "20190_TIP_001"
-action initial {[setAvailableOptions]}
GuidoPanel frm20190_25 {
-layout BoxLayout Y_AXIS
-border etched true
GuidoPanel frm20190_26 {
-layout BoxLayout X_AXIS
-border etched true
GuidoPanel frm20190_1 {
-font_style bold
-layout BoxLayout X_AXIS
-label "Output File as"
-border etched true
-tip "20190_TIP_002"
GuidoButtonGroupPanel fileType {
GuidoRadioButton StringButton {
-caption String
-default true
-selected_value String
-height 1
}
GuidoRadioButton CSVButton {
-caption CSV
-selected_value CSV
-height 1
-next_focus frm20190_10
}
}
}
GuidoPanel frm20190_10 {
-font_style bold
-layout BoxLayout X_AXIS
-label "Output blocks as"
-border etched true
-dependency {"[ $fileType getCurrentValue]" == "String"}
-tip "20190_TIP_003"
GuidoButtonGroupPanel type {
GuidoRadioButton frm20190_8 {
-caption Outlines
-selected_value Outlines
-height 1
}
GuidoRadioButton frm20190_9 {
-caption Centroids
-default true
-selected_value Centroids
-height 1
-next_focus frm20190_constrain
}
}
}
}
GuidoFiller frm20190_27 {
-height 0.5
}
GuidoPanel frm20190_constrain {
-layout BoxLayout X_AXIS
-border etched true
GuidoLabel l1 {
-label "Output Block Size"
}
GuidoFiller f1 {
-width 0.5
}
GuidoCheckBox block_size {
-font_style bold
-selected_value Y
-tip ""
-unselected_value N
}
GuidoFiller space {
-width 1
}
GuidoLabel l1 {
-label "Constrain report "
}
GuidoFiller f1 {
-width 0.5
}
GuidoCheckBox constrain {
-default false
-font_style bold
-selected_value Y
-tip "20190_TIP_005"
-unselected_value N
}
}
GuidoFiller frm20190_27 {
-height 0.5
}
GuidoPanel frm20190_28 {
-layout CentreLineLayout
-border etched true
-label "Output file"
GuidoFileBrowserField location {
-display_length 20
-font_style bold
-format none
-label Location
-max_length 256
-file_mask "*.str *.csv"
-link id
-tip "All data will be written to string one in the output file."
-file_access write
}
GuidoField id {
-display_length 20
-font_style bold
-format double
-label Id
-max_length 16
-next_focus attribute
-null false
-tip "All data will be written to string one in the output file."
}
}
GuidoFiller frm20190_27 {
-height 0.5
}
GuidoPanel frm20190_28 {
-layout CentreLineLayout
-border etched true
-label "Classification"
GuidoComboBox class_att {
-display_length 18
-format none
-label Attribute
-null true
-max_length BM_MAX_ATT_NAME_LEN
-tip ""
}
GuidoField class_range {
-display_length 20
-format range
-label Range
-max_length MAX_RNG_LENGTH
-null true
-tip "All data will be written to string one in the output file."
}
}
}
GuidoFiller space {
-width 1
}
GuidoPanel right_panel_1 {
-layout BoxLayout Y_AXIS
-border etched true
GuidoPanel frm20190_15 {
-layout BoxLayout X_AXIS
-label "Output block attributes"
-border etched true
-tip "20190_TIP_010"
GuidoButtonGroupPanel report_attributes {
GuidoRadioButton frm20190_12 {
-caption All
-default true
-selected_value all
-height 1
}
GuidoRadioButton frm20190_13 {
-caption Some
-selected_value some
-height 1
}
GuidoRadioButton frm20190_14 {
-caption None
-selected_value none
-height 1
}
}
}
GuidoFiller space {
-height 0.5
}
GuidoScrollPane frm20190_23 {
-height 12
-width 20
GuidoTable attributes {
-instances 1 1 50
-interactive true
GuidoComboBox attribute {
-dependency {"[ $report_attributes getCurrentValue]" == "some"}
-display_length 12
-font_style bold
-format none
-label "Output Attributes"
-max_length BM_MAX_ATT_NAME_LEN
-tip "20190_TIP_011"
}
}
}
}
GuidoFiller space {
-width 1
}
GuidoPanel right_panel_2 {
-layout BoxLayout Y_AXIS
-border etched true
GuidoFiller space {
-height 0.5
}
GuidoButtonGroupPanel cent_type {
-layout BoxLayout Y_AXIS
-dependency {"[ $type getCurrentValue]" == "Centroids" || "[ $fileType getCurrentValue]" == "CSV" }
-border etched true
-label "Output Resolution"
GuidoRadioButton cent_type_1 {
-caption "User block resolution"
-selected_value "User block resolution"
-default true
-height 1
}
GuidoRadioButton cent_type_2 {
-caption "Maximum resolution"
-selected_value "Maximum resolution"
-height 1
}
GuidoRadioButton cent_type_3 {
-caption "Existing blocks"
-selected_value "Existing blocks"
-height 1
}
}
GuidoFiller space {
-height 0.5
}
GuidoPanel ijkPanel {
-layout CentrelineLayout
-dependency {"[ $type getCurrentValue]" == "Centroids" && ("[$cent_type getCurrentValue]" == "User block resolution" || "[ $cent_type getCurrentValue]" == "Maximum resolution")}
GuidoCheckBox outputIJK {
-label "Output Block Indexes"
-selected_value Y
-unselected_value N
-default false
-tip "This will output a unique index for each block in the model"
}
}
GuidoPanel ijkPanel2 {
-layout CentrelineLayout
-dependency {("[ $cent_type getCurrentValue]" == "User block resolution" || "[ $cent_type getCurrentValue]" == "Maximum resolution") && "[ $outputIJK getCurrentValue]" == "Y"}
GuidoComboBox ijkType {
-label "Output Indexes as"
-value_in "Single value" "Separate values"
-default "Separate Values"
-display_length 10
-max_length 30
-exclusive true
-null false
-tip "20190_TIP_013"
}
}
GuidoFiller space {
-height 0.5
}
GuidoPanel ijkPanel3 {
-layout CentrelineLayout
-dependency {("[ $cent_type getCurrentValue]" == "Maximum resolution") && "[ $outputIJK getCurrentValue]" == "Y"}
GuidoLabel blkSizeLbl {
-label "Block size"
}
GuidoLabel blkSizeLbl2 {
-label "for Index Calculation"
}
GuidoComboBox xSize {
-label "X"
-display_length 2
-max_length 5
-exclusive true
-null false
-tip "Enter the size of the block in the X direction to create the Index for"
}
GuidoComboBox ySize {
-label "Y"
-display_length 2
-max_length 5
-exclusive true
-null false
-tip "Enter the size of the block in the Y direction to create the Index for"
}
GuidoComboBox zSize {
-label "Z"
-display_length 2
-max_length 5
-exclusive true
-null false
-tip "Enter the size of the block in the Z direction to create the Index for"
}
}
}
}
