User:Jmonson/DMI XML: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
(→‎Elements: formatting)
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Reworking: [[SMS:Dynamic Model Interface Schema]]</noinclude>
{{TOCright}}
{{TOCright}}
The dynamic model interface is available in SMS version 11.2 and later. It is primarily a tool for developers. The dynamic model interface provides a way to quickly generate an interface for a numeric model.
The dynamic model interface is available in SMS version 11.2 and later. It is primarily a tool for developers. The dynamic model interface provides a way to quickly generate an interface for a numeric model.


Dynamic dialogs are a quick way to generate dialogs without having to compile code.  To add or delete a widget on a dynamic dialog, the user simply modifies the XML document. When the modified document is loaded, the new/modified dialog exists. The XML document defines the layout, behavior and the different dialog controls.
==Dynamic Dialogs==
Dynamic dialogs are a quick way to generate dialogs without having to compile code.  To add or delete a widget on a dynamic dialog, the user simply modifies the XML document. When the modified document is loaded, the new/modified dialog exists. The XML document defines the layout, behavior and the different dialog controls.
   
   
The dialog is divided into 2 sections, the tree and the widget view. The tree is on the left side of the dialog and it contains groups and items that represent data. Clicking on a group or item will result with the widget view being updated to match the selected tree or group item.
The dialog is divided into 2 sections: the tree view and the widget view. The tree is on the left side of the dialog and contains groups and items that represent data. Clicking on a group or item will result in the widget view being updated to match the selected tree or group item.


* Order of the tree items and groups will match the order defined in the XML file.
* Order of the tree items and groups will match the order defined in the XML file.
Line 13: Line 16:
* Multiple widgets, when displayed on the right side, can be expanded/collapsed.
* Multiple widgets, when displayed on the right side, can be expanded/collapsed.
* Can have nested groups.
* Can have nested groups.
* Keywords are words SMS has reserved in the schema and can not be used as unique names.  All keywords will start with a #Here is a list of available keywords:
* Keywords are words SMS has reserved in the schema and can not be used as unique names.  All keywords will start with a "#".   
<blockquote>
* #card_name
* #geom_name &ndash; name of geometry as it shows up in the project explorer
* #project_name
* #value
* #units
* #xmdf_path &ndash; path inside the XMDF file
* #file_name
* #file_path
* #sms_path &ndash; path in sms project explorer once inside a geometric item
* #count (used for a widget in a table for counting the rows/columns)
* #geom_guid
Projection keyword:
* #horizontal_datum:  NAD83 |NAD27|LOCAL
* #horizontal_system:  UTM|STATE_PLANE|GEOGRAPHIC|LOCAL
* #horizontal_units:      FEET|METERS|DEGREES
* #horizontal_zone:    3104 etc
* #vertical_datum   
* #vertical_units
Coverage keywords:
* #area_property
* #activity_classification
* #cgrid_generator
* #location
* #mapping
* #mesh_generator
* #observation
* #quadtree_generator
* #spectral


executable_progress_update keywords:
===Available Keywords===
* #progress_amount
This is a list of available keywords. Additional keywords are defined with the various custom control widgets. Note that in changing from version 1 to version 2, all tags that were <custom_control_XXXX> were changed to <control_XXXX>.
* #progress_max


Material keywords:
<!-- template for this section
* #material_id
* #material_name
* #material_count
* #unassigned


Point keywords:
{|class="mw-collapsible mw-collapsed" style="border:1px solid #D0E0FF; margin-bottom:0.4em;"
* #point_count
|-
* #point_id
! width="400" style="text-align:left;" colspan="2" | General Keywords
* #point_x
|- style="background-color:#F0F0FF;"
* #point_y
| width="70" style="text-align:left;" | '''entry'''
* #point_z
| width="530" style="text-align:left;" | description or &nbsp;
|-
| '''entry'''
| description or &nbsp;
|- style="background-color:#F0F0FF;"
| '''entry'''
| description or &nbsp;
|-
| '''entry'''
| description or &nbsp;
|}


Arc keywords:
-->
* #arc_id
{|class="mw-collapsible mw-collapsed" style="border:1px solid #D0E0FF; margin-bottom:0.4em;"
* #arc_count
|-
* #arc_point_count
! width="400" style="text-align:left;" colspan="2" | General Keywords
|- style="background-color:#F0F0FF;"
| width="70" style="text-align:left;" | '''&#35;card_name'''
| width="530" style="text-align:left;" | &nbsp;
|-
| '''&#35;geom_name'''
| name of geometry as it shows up in the project explorer
|- style="background-color:#F0F0FF;"
| '''&#35;project_name'''
| &nbsp;
|-
| '''&#35;value'''
| &nbsp;
|- style="background-color:#F0F0FF;"
| '''&#35;units'''
| &nbsp;
|-
| '''&#35;xmdf_path'''
| path inside the XMDF file
|- style="background-color:#F0F0FF;"
| '''&#35;file_name'''
| &nbsp;
|-
| '''&#35;file_path'''
| &nbsp;
|- style="background-color:#F0F0FF;"
| '''&#35;sms_path'''
| path in sms project explorer once inside a geometric item
|-
| '''&#35;count'''
| used for a widget in a table for counting the rows/columns
|- style="background-color:#F0F0FF;"
| '''&#35;geom_guid'''
| &nbsp;
|}


Polygon keywords:
{|class="mw-collapsible mw-collapsed" style="border:1px solid #D0E0FF; margin-bottom:0.4em;"
* #polygon_id
|-
* #polygon_count
! width="400" style="text-align:left;" colspan="2" | Arc Keywords
* #polygon_point_count
|- style="background-color:#F0F0FF;"
</blockquote>
| width="70" style="text-align:left;" | '''&#35;arc_id'''
<blockquote>
| width="530" style="text-align:left;" | &nbsp;
Additional keywords are defined with the various custom control widgets.
|-
</blockquote>
| '''&#35;arc_count'''
| &nbsp;
|- style="background-color:#F0F0FF;"
| '''&#35;arc_point_count'''
| &nbsp;
|}


'''Note:''' In changing from version 1 to version 2, all tags that were <custom_control_XXXX> were changed to <control_XXXX>.
{|class="mw-collapsible mw-collapsed" style="border:1px solid #D0E0FF; margin-bottom:0.4em;"
|-
! width="400" style="text-align:left;" colspan="2" | Coverage Keywords
|- style="background-color:#F0F0FF;"
| width="70" style="text-align:left;" | '''&#35;area_property '''
| width="530" style="text-align:left;" | &nbsp;
|-
| '''&#35;activity_classification'''
| &nbsp;
|- style="background-color:#F0F0FF;"
| '''&#35;cgrid_generator'''
| &nbsp;
|-
| '''&#35;location'''  
| &nbsp;
|- style="background-color:#F0F0FF;"
| '''&#35;mapping'''
| &nbsp;
|-
| '''&#35;mesh_generator'''
| &nbsp;
|- style="background-color:#F0F0FF;"
| '''&#35;observation'''
| &nbsp;
|-
| '''&#35;quadtree_generator'''
| &nbsp;
|- style="background-color:#F0F0FF;"
| '''&#35;spectral'''
| &nbsp;
|}
 
{|class="mw-collapsible mw-collapsed" style="border:1px solid #D0E0FF; margin-bottom:0.4em;"
|-
! width="400" style="text-align:left;" colspan="2" | executable_progress_update Keywords
|- style="background-color:#F0F0FF;"
| width="70" style="text-align:left;" | '''&#35;progress_amount'''
| width="530" style="text-align:left;" | &nbsp;
|-
| '''&#35;progress_max'''
| &nbsp;
|}


For more information on using the Dynamic Model Interface, download the XML file tutorial:
{|class="mw-collapsible mw-collapsed" style="border:1px solid #D0E0FF; margin-bottom:0.4em;"
* [http://smsdocs.aquaveo.com.s3.amazonaws.com/DMI_XML_File.pdf DMI XML File Tutorial]
|-
* [http://smsdocs.aquaveo.com.s3.amazonaws.com/DynamicSample.zip DMI Tutorial Data]
! width="400" style="text-align:left;" colspan="2" | Material Keywords
* [http://smsdocs.aquaveo.com.s3.amazonaws.com/DMISamplePreProc.exe DMI Sample Pre-Processing Executable]
|- style="background-color:#F0F0FF;"
* [http://smsdocs.aquaveo.com.s3.amazonaws.com/DMISample.exe DMI Sample Executable]
| width="70" style="text-align:left;" | '''&#35;material_id'''
| width="530" style="text-align:left;" | &nbsp;
|-
| '''&#35;material_name'''
| &nbsp;
|- style="background-color:#F0F0FF;"
| '''&#35;material_count'''
| &nbsp;
|-
| '''&#35;unassigned'''
| &nbsp;
|}


==Elements==  
{|class="mw-collapsible mw-collapsed" style="border:1px solid #D0E0FF; margin-bottom:0.4em;"
===A - C===
|-
{{XML entry
! width="400" style="text-align:left;" colspan="2" | Point Keywords
| type      = Element
|- style="background-color:#F0F0FF;"
| name      = arc_att
| width="70" style="text-align:left;" | '''&#35;point_count'''
| width="530" style="text-align:left;" | &nbsp;
|-
| '''&#35;point_id'''
| &nbsp;
|- style="background-color:#F0F0FF;"
| '''&#35;point_x'''
| &nbsp;
|-
| '''&#35;point_y'''
| &nbsp;
|- style="background-color:#F0F0FF;"
| '''&#35;point_z'''
| &nbsp;
|}
 
{|class="mw-collapsible mw-collapsed" style="border:1px solid #D0E0FF; margin-bottom:0.4em;"
|-
! width="400" style="text-align:left;" colspan="2" | Polygon Keywords
|- style="background-color:#F0F0FF;"
| width="70" style="text-align:left;" | '''&#35;polygon_id'''
| width="530" style="text-align:left;" | &nbsp;
|-
| '''&#35;polygon_count'''
| &nbsp;
|- style="background-color:#F0F0FF;"
| '''&#35;polygon_point_count'''
| &nbsp;
|}
 
{|class="mw-collapsible mw-collapsed" style="border:1px solid #D0E0FF; margin-bottom:0.4em;"
|-
! width="400" style="text-align:left;" colspan="2" | Projection Keywords
|- style="background-color:#F0F0FF;"
| width="70" style="text-align:left;" | '''&#35;horizontal_datum'''
| width="530" style="text-align:left;" | NAD83, NAD27, LOCAL
|-
| '''&#35;horizontal_system'''
| UTM, STATE_PLANE, GEOGRAPHIC, LOCAL
|- style="background-color:#F0F0FF;"
| '''&#35;horizontal_units'''
| FEET, METERS, DEGREES
|-
| '''&#35;horizontal_zone'''
| 3104, etc.
|- style="background-color:#F0F0FF;"
| '''&#35;vertical_datum'''
| &nbsp;
|-
| '''&#35;vertical_units'''
| &nbsp;
|}
 
==Elements==  
Sorted alphabetically by element name.
 
===Elements A - C===
{{XML entry
| name      = arc_att
| info      = Used to specify what attributes should be used for the arcs of a coverage.
| info      = Used to specify what attributes should be used for the arcs of a coverage.
| version    = 2
| version    = 2
Line 97: Line 225:


{{XML entry
{{XML entry
| type      = Element
| name      = attribute_set
| name      = attribute_set
| info      = This represents an item in the project explorer that is some sort of grouping.
| info      = This represents an item in the project explorer that is some sort of grouping.
Line 108: Line 235:


{{XML entry
{{XML entry
| type      = Element
| name      = card
| name      = card
| info      = Determines the card name and format when the item is exported.  For more examples see [[SMS:Dynamic Model Interface Schema#Element <export_format>|<export_format>]].
| info      = Determines the card name and format when the item is exported.  For more examples see [[SMS:Dynamic Model Interface Schema#Element <export_format>|<export_format>]].
| version    = 1
| version    = 1
| attributes = none
| attributes = none
| children  = [[SMS:Dynamic Model Interface Schema#Element <card_name>|card_name]], [[SMS:Dynamic Model Interface Schema#Element <export_format>|export_format]], [[SMS:Dynamic Model Interface Schema#Element <export_location>|export_location]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], anything beginning with “process_each_”, [[SMS:Dynamic Model Interface Schema#Element <export_group>|export_group]], [[SMS:Dynamic Model Interface Schema#Element <export_optional>|export_optional]], [[SMS:Dynamic Model Interface Schema#Attribute <use_parameter>|use_paramter]].
| children  = [[SMS:Dynamic Model Interface Schema#Element <card_name>|card_name]], [[SMS:Dynamic Model Interface Schema#Element <export_format>|export_format]], [[SMS:Dynamic Model Interface Schema#Element <export_location>|export_location]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], anything beginning with "process_each_", [[SMS:Dynamic Model Interface Schema#Element <export_group>|export_group]], [[SMS:Dynamic Model Interface Schema#Element <export_optional>|export_optional]], [[SMS:Dynamic Model Interface Schema#Attribute <use_parameter>|use_paramter]].
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]] (version 1), file_def (version 2)
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]] (version 1), file_def (version 2)
| example    = <item  text = “Formulation”>
| example    = <item  text = "Formulation">
     <card>
     <card>
           <card_name>FORMULATION</card_name>
           <card_name>FORMULATION</card_name>
Line 123: Line 249:


{{XML entry
{{XML entry
| type      = Element
| name      = card_name
| name      = card_name
| info      = The name of the card which is used in the card file.
| info      = The name of the card which is used in the card file.
Line 134: Line 259:


{{XML entry
{{XML entry
| type      = Element
| name      = check_box
| name      = check_box
| info      = Widget that displays text that is checked/unchecked.
| info      = Widget that displays text that is checked/unchecked.
Line 146: Line 270:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]]
| example    =  
| example    =  
  <check_box  text = “Calculate Sediment Transport”  
  <check_box  text = "Calculate Sediment Transport"  
                       default = “checked”
                       default = "checked"
                       unique_name = “togCalcSedimentTransport”  
                       unique_name = "togCalcSedimentTransport"  
                       export_text_checked = “ON”    
                       export_text_checked = "ON"    
                       export_text_unchecked = “OFF”>
                       export_text_unchecked = "OFF">
     <dependency>…</dependency>…
     <dependency>…</dependency>…
  </ check_box >
  </ check_box >
Line 156: Line 280:


{{XML entry
{{XML entry
| type      = Element
| name      = color
| name      = color
| info      = The color of an item, expressed in red, green, and blue values ranging from 0 to 255.  All 0 values for red, green and blue are black. Added in SMS 11.2.
| info      = The color of an item, expressed in red, green, and blue values ranging from 0 to 255.  All 0 values for red, green and blue are black. Added in SMS 11.2.
Line 168: Line 291:
This would change the text to a bright red color.
This would change the text to a bright red color.
  <text_style>                     
  <text_style>                     
     <color red = “255” green=”0” blue=”0”></color>
     <color red = "255" green="0" blue="0"></color>
  <text_style>
  <text_style>
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = column
| name      = column
| info      = Definition of the column in the table.  A widget defined in a column will be the widget used for each cell in the column.
| info      = Definition of the column in the table.  A widget defined in a column will be the widget used for each cell in the column.
Line 179: Line 301:
| attributes = [[SMS:Dynamic Model Interface Schema#Element <text>|text]], [[SMS:Dynamic Model Interface Schema#Element <read_only>|read_only]],  
| attributes = [[SMS:Dynamic Model Interface Schema#Element <text>|text]], [[SMS:Dynamic Model Interface Schema#Element <read_only>|read_only]],  
[[SMS:Dynamic Model Interface Schema#Element <optional>|optional]]
[[SMS:Dynamic Model Interface Schema#Element <optional>|optional]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], all elements starting with “control_”, [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], all elements starting with "control_", [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element < table >|table]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element < table >|table]]
| example    = Column1 is read only, Column 2 isn't read only and is also optional.<br/> This means the column can have empty fields and a warning message won't be displayed.
| example    = Column1 is read only, Column 2 isn't read only and is also optional.<br/> This means the column can have empty fields and a warning message won't be displayed.
Line 186: Line 308:
   
   
     . . .
     . . .
     <column  text = “Column1” read_only>
     <column  text = "Column1" read_only>
   </column>
   </column>
   < column  text = “Column2   optional></ column>
   < column  text = "Column2   optional></ column>
   </table>
   </table>
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = combo_box
| name      = combo_box
| info      = Widget that displays list of options.  Only 1 can be selected.  If no default is specified and the optional tag is present, then an empty option will be added to the combo box.  If there is no default tag, and no optional tag, then the first item will be default.
| info      = Widget that displays list of options.  Only 1 can be selected.  If no default is specified and the optional tag is present, then an empty option will be added to the combo box.  If there is no default tag, and no optional tag, then the first item will be default.
Line 203: Line 324:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| example    = Creates a combo box with hours, minutes and seconds.  Hours is the default item.
| example    = Creates a combo box with hours, minutes and seconds.  Hours is the default item.
  <combo_box  unique_name=”cbxTransportUnits”>                     
  <combo_box  unique_name="cbxTransportUnits">                     
     <option  text = “hours” default></option>
     <option  text = "hours" default></option>
     <option  text = “minutes”></option>
     <option  text = "minutes"></option>
   <option  text = “seconds”></option>
   <option  text = "seconds"></option>
   <dependency>…</dependency>…
   <dependency>…</dependency>…
  </ combo_box >
  </ combo_box >
Line 212: Line 333:


{{XML entry
{{XML entry
| type      = Element
| name      = command_args
| name      = command_args
| info      = Defines the command line arguments to run a particular executable.
| info      = Defines the command line arguments to run a particular executable.
Line 223: Line 343:


{{XML entry
{{XML entry
| type      = Element
| name      = comment
| name      = comment
| info      = Defines a character or sequence of characters that defines the start of a comment on a line.  Comments are always terminated by an end of line.
| info      = Defines a character or sequence of characters that defines the start of a comment on a line.  Comments are always terminated by an end of line.
Line 240: Line 359:


{{XML entry
{{XML entry
| type      = Element
| name      = condition
| name      = condition
| info      = Evaluates two or more objects using GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN, LESS_THAN_EQUALS, EQUALS, AND, OR, NOT, CHECKED, UNCHECKED, EMPTY.  If condition is not met, then message is displayed (if model_check) or widget is hidden/dimmed (if dependency).  String literals, such as an entry in a combo-box, must be enclosed in double-quotes (ex. “Combo box entry”).
| info      = Evaluates two or more objects using GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN, LESS_THAN_EQUALS, EQUALS, AND, OR, NOT, CHECKED, UNCHECKED, EMPTY.  If condition is not met, then message is displayed (if model_check) or widget is hidden/dimmed (if dependency).  String literals, such as an entry in a combo-box, must be enclosed in double-quotes (ex. "Combo box entry").
| version    = 1
| version    = 1
| attributes = none
| attributes = none
Line 249: Line 367:
| example    =  
| example    =  
  < table >
  < table >
   <column  text=”A”>
   <column  text="A">
       <edit_box    unique_name=”colA”>
       <edit_box    unique_name="colA">
       </edit_box>
       </edit_box>
     </column>
     </column>
   …// other columns also defined
   …// other columns also defined
    
    
   <model_check problem_text=”Column D or E is required”>
   <model_check problem_text="Column D or E is required">
       <condition>( (colA EQUALS 0.0 OR colB LESS_THAN 0.0) AND NOT(colD NOT EQUALS EMPTY OR colE NOT EQUALS “Some value”))</condition>
       <condition>( (colA EQUALS 0.0 OR colB LESS_THAN 0.0) AND NOT(colD NOT EQUALS EMPTY OR colE NOT EQUALS "Some value"))</condition>
   </model_check>
   </model_check>
  < /table >
  < /table >
Line 262: Line 380:


{{XML entry
{{XML entry
| type      = Element
| name      = contains
| name      = contains
| info      = Holds all the groups and items of a group.
| info      = Holds all the groups and items of a group.
Line 273: Line 390:


{{XML entry
{{XML entry
| type      = Element
| name      = control_curve
| name      = control_curve
| info      = Displays a curve push button. When pushed, the xy curve values can be updated and a curve is displayed.
| info      = Displays a curve push button. When pushed, the xy curve values can be updated and a curve is displayed.
Line 282: Line 398:
| example    = This example creates a curve limited to 10 rows.
| example    = This example creates a curve limited to 10 rows.
  <item>
  <item>
     <control_curve  unique_name=”myCurve1”
     <control_curve  unique_name="myCurve1"
                               max_row_count=”10”
                               max_row_count="10"
                               flags = “XY_USEDATE”>
                               flags = "XY_USEDATE">
         <x_column  text=”Time”></x_column>
         <x_column  text="Time"></x_column>
         <y_column  text=”Velocity”>  
         <y_column  text="Velocity">  
         </y_column>
         </y_column>
     </control_curve>
     </control_curve>
Line 294: Line 410:


{{XML entry
{{XML entry
| type      = Element
| name      = control_dataset
| name      = control_dataset
| info      = Displays an edit box, and push buttons for select, delete and create.  Once selected, the dataset string is placed into the edit box.  The dataset_type can be scalar or vector.  Possible keyword outputs are file_name (which is the name of the dataset without path), geom_name,  and file_path (full path c:\somewhere) and sms_path.
| info      = Displays an edit box, and push buttons for select, delete and create.  Once selected, the dataset string is placed into the edit box.  The dataset_type can be scalar or vector.  Possible keyword outputs are file_name (which is the name of the dataset without path), geom_name,  and file_path (full path c:\somewhere) and sms_path.


By default, all datasets of geometries that are part of the simulation (or part of the parameters if one or more use_parameter is used) can be selected. The the geometry attribute is set to “all”, then the datasets from all geometries currently loaded into SMS can be selected from, regardless of relation to the simulation and assuming no other attribute prevents it. If “all” is used, then the dataset values will be interpolated to the geometry in the simulation.
By default, all datasets of geometries that are part of the simulation (or part of the parameters if one or more use_parameter is used) can be selected. The the geometry attribute is set to "all", then the datasets from all geometries currently loaded into SMS can be selected from, regardless of relation to the simulation and assuming no other attribute prevents it. If "all" is used, then the dataset values will be interpolated to the geometry in the simulation.


The time_type attribute can be set to “all” (default), “transient”, or “steady state”. When “transient” is used, only datasets with multiple timesteps may be selected. When “steady state” is used, only timesteps without timesteps may be selected.
The time_type attribute can be set to "all" (default), "transient", or "steady state". When "transient" is used, only datasets with multiple timesteps may be selected. When "steady state" is used, only timesteps without timesteps may be selected.


The select_time attribute can be set to “all” (default), “single”, or “range”. If “single” is used, then only a single timestep of the dataset will be selected. If “range” is used, then both a starting and ending timestep can be selected. By default, all timesteps of a dataset are used.
The select_time attribute can be set to "all" (default), "single", or "range". If "single" is used, then only a single timestep of the dataset will be selected. If "range" is used, then both a starting and ending timestep can be selected. By default, all timesteps of a dataset are used.


(For possible future use.)The interpret_time attribute can be set to “true” or “false” (default). When true, this attribute tells SMS to interpolate dataset values at the timesteps in the selected dataset to values at timesteps calculated from a start time, end time, and delta time that is specified by the user.
(For possible future use.)The interpret_time attribute can be set to "true" or "false" (default). When true, this attribute tells SMS to interpolate dataset values at the timesteps in the selected dataset to values at timesteps calculated from a start time, end time, and delta time that is specified by the user.
| version    = 1 (<custom_control_XXXX>), 2
| version    = 1 (<custom_control_XXXX>), 2
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <geometry>|geometry]],  
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <geometry>|geometry]],  
Line 318: Line 433:
| example    = This example creates the custom control with only the select and delete buttons.
| example    = This example creates the custom control with only the select and delete buttons.
  <item>
  <item>
     <control_dataset  dataset_type=”scalar”>
     <control_dataset  dataset_type="scalar">
         <push_button>select<push_button>
         <push_button>select<push_button>
         <push_button>delete</push_button>
         <push_button>delete</push_button>
Line 326: Line 441:


{{XML entry
{{XML entry
| type      = Element
| name      = control_date
| name      = control_date
| info      = Displays date and time selector, where a date can be selected.<br/> Possible output is value, which will be the date formatted as specified in SMS preferences.<br/> Possible outputs are year, month, day, hour, minute, second.
| info      = Displays date and time selector, where a date can be selected.<br/> Possible output is value, which will be the date formatted as specified in SMS preferences.<br/> Possible outputs are year, month, day, hour, minute, second.
Line 357: Line 471:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| example    =  
| example    =  
  <item  text =”Start date>
  <item  text ="Start date>
     <control_date    unique_name=”edtDate”>
     <control_date    unique_name="edtDate">
     </control_date>
     </control_date>
     <card>
     <card>
Line 367: Line 481:


{{XML entry
{{XML entry
| type      = Element
| name      = control_density
| name      = control_density
| info      = Displays an edit box and combo box.  Combo box can contain kg/m^3, gr/cm^3, lb/ft^3.  Possible outputs are value and units.
| info      = Displays an edit box and combo box.  Combo box can contain kg/m^3, gr/cm^3, lb/ft^3.  Possible outputs are value and units.
Line 382: Line 495:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| example    =  
| example    =  
Displays kg/m^3 and lb/ft^3 in combo box.  If kg/m^3 selected and exported, returns the text “kg m”.
Displays kg/m^3 and lb/ft^3 in combo box.  If kg/m^3 selected and exported, returns the text "kg m".
  <item>
  <item>
     <text>Density </text>
     <text>Density </text>
     <control_density>
     <control_density>
         <option      text=”kg/m^3”
         <option      text="kg/m^3"
                           export_text = “kg m”
                           export_text = "kg m"
                           unit_keyword=#MPV_KG_PER_CU_M”>
                           unit_keyword="#MPV_KG_PER_CU_M">
         </option>
         </option>
         <option    text=”lb_ft^3”
         <option    text="lb_ft^3"
                         export_text =”lbs ft”
                         export_text ="lbs ft"
                         unit_keyword = #MPV_LB_PER_CU_FT”>
                         unit_keyword = "#MPV_LB_PER_CU_FT">
         </option>
         </option>
     </control_density>
     </control_density>
Line 399: Line 512:


{{XML entry
{{XML entry
| type      = Element
| name      = control_duration
| name      = control_duration
| info      = Displays an edit box and combo box.  Combo box contains days, hours, minutes, seconds.  Possible outputs are value and units.
| info      = Displays an edit box and combo box.  Combo box contains days, hours, minutes, seconds.  Possible outputs are value and units.
Line 414: Line 526:
| children  = [[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <range>|range]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <range>|range]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| example    = Displays only minutes and hours in combo box.  If hours selected and exported, returns the text “hrs”.
| example    = Displays only minutes and hours in combo box.  If hours selected and exported, returns the text "hrs".
  <item  text =“Transport Time Step”>
  <item  text ="Transport Time Step">
     <control_duration>
     <control_duration>
         <option  text=”minutes”
         <option  text="minutes"
                       export_text = “min”
                       export_text = "min"
                       unit_keyword = #TIME_MINUTES”>
                       unit_keyword = "#TIME_MINUTES">
         </option>
         </option>
         <option  text = “hours”
         <option  text = "hours"
                       export_text = “hrs”
                       export_text = "hrs"
                       unit_keyword = #TIME_HOURS”
                       unit_keyword = "#TIME_HOURS"
                       default>
                       default>
         </option>
         </option>
Line 431: Line 543:


{{XML entry
{{XML entry
| type      = Element
| name      = control_executable
| name      = control_executable
| info      = Displays a button for running a simulation from a dialog. Unlike the normal simulations found in the project explorer, these simulations are generally hidden from the user. As such, the options that can be used are significantly less than those of a normal simulation.
| info      = Displays a button for running a simulation from a dialog. Unlike the normal simulations found in the project explorer, these simulations are generally hidden from the user. As such, the options that can be used are significantly less than those of a normal simulation.
Line 441: Line 552:
| children  = [[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <range>|range]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <range>|range]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <unique_name>|unique_name]], dependency, text_style, [[SMS:Dynamic Model Interface Schema#Element <use_parameter>|use_parameter]], [[SMS:Dynamic Model Interface Schema#Element <simulation>|simulation]], [[SMS:Dynamic Model Interface Schema#Element <dialogs>|dialogs]], [[SMS:Dynamic Model Interface Schema#Element <files>|files]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <unique_name>|unique_name]], dependency, text_style, [[SMS:Dynamic Model Interface Schema#Element <use_parameter>|use_parameter]], [[SMS:Dynamic Model Interface Schema#Element <simulation>|simulation]], [[SMS:Dynamic Model Interface Schema#Element <dialogs>|dialogs]], [[SMS:Dynamic Model Interface Schema#Element <files>|files]]
| example    =  This example declares a control_executable that runs “MyModel”.
| example    =  This example declares a control_executable that runs "MyModel".


  <control_executable model = "MyModel"       
  <control_executable model = "MyModel"       
                                   unique_name=”exeMyModel”>
                                   unique_name="exeMyModel">
   <declare dialogs>
   <declare dialogs>
  <declare dialog  name=”Arc BC”>
  <declare dialog  name="Arc BC">
   <pages>
   <pages>
         <page_def  name=”ArcBC”
         <page_def  name="ArcBC"
                               display=”NO_NAV”>
                               display="NO_NAV">
             <contains>
             <contains>
                   <item>
                   <item>
                       <edit_box  unique_name=”edtMyModelText”>
                       <edit_box  unique_name="edtMyModelText">
                       </edit_box>
                       </edit_box>
                 </item>
                 </item>
Line 461: Line 572:
   </dialogs>
   </dialogs>
   <simulation>
   <simulation>
       <executable name =”MyModel”>
       <executable name ="MyModel">
           <use_parameter>HydroFile</use_parameter>
           <use_parameter>HydroFile</use_parameter>
           <execute_command>
           <execute_command>
Line 485: Line 596:


{{XML entry
{{XML entry
| type      = Element
| name      = control_feature_selector
| name      = control_feature_selector
| info      = Push button that opens a canvas window that allows users to select one or more points, arcs or polygons that are in the main window.
| info      = Push button that opens a canvas window that allows users to select one or more points, arcs or polygons that are in the main window.
Line 495: Line 605:
| example    =  Allows the user to select 1 to 10 arcs
| example    =  Allows the user to select 1 to 10 arcs
   <item>
   <item>
     <control_feature_selector feature = “arc”>
     <control_feature_selector feature = "arc">
                                       unique_name=”mySelector”>
                                       unique_name="mySelector">
           <range>1-10</range>  
           <range>1-10</range>  
       </control_feature_selector>
       </control_feature_selector>
Line 503: Line 613:


{{XML entry
{{XML entry
| type      = Element
| name      = control_file_selector
| name      = control_file_selector
| info      = Push button that opens a file open dialog to select files.  Possible outputs are file_path.
| info      = Push button that opens a file open dialog to select files.  Possible outputs are file_path.
Line 517: Line 626:
     <text>File:</text>
     <text>File:</text>
     <control_file_selector
     <control_file_selector
             filter = “Cmcards file (.cmcards)>  
             filter = "Cmcards file (.cmcards)">  
     </control_file_selector>
     </control_file_selector>
  …
  …
Line 523: Line 632:


{{XML entry
{{XML entry
| type      = Element
| name      = control_length
| name      = control_length
| info      = Displays an edit box and combo box.  Combo box can contain meters, cm, mm, um, ft, in.  Possible outputs are value and units.
| info      = Displays an edit box and combo box.  Combo box can contain meters, cm, mm, um, ft, in.  Possible outputs are value and units.
Line 541: Line 649:
| children  = [[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <range>|range]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <range>|range]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| example    = Displays only cm, and mm in combo box. If cm is selected and exported, returns the text “centimeter”.
| example    = Displays only cm, and mm in combo box. If cm is selected and exported, returns the text "centimeter".
  <item  text = “Length”>
  <item  text = "Length">
     <control_length  unique_name=”myLength”>
     <control_length  unique_name="myLength">
         <option>
         <option>
           text = “cm”
           text = "cm"
           export_text=”centimeter”
           export_text="centimeter"
           unit_keyword = #LEN_CM”>
           unit_keyword = "#LEN_CM">
         </option>
         </option>
         <option>
         <option>
           text = “mm”
           text = "mm"
           export_text = “mm”>
           export_text = "mm">
           unit_keyword=#LEN_MM”
           unit_keyword="#LEN_MM"
           default
           default
         </option>
         </option>
Line 560: Line 668:


{{XML entry
{{XML entry
| type      = Element
| name      = control_nesting
| name      = control_nesting
| info      = Push button that opens a special dialog to create nesting points.  The dialog allows the user to select a parent and child grid and a coverage to put the nesting sites in.
| info      = Push button that opens a special dialog to create nesting points.  The dialog allows the user to select a parent and child grid and a coverage to put the nesting sites in.
Line 569: Line 676:
| example    = Creates the nesting dialog widget
| example    = Creates the nesting dialog widget
  <item>
  <item>
     <control_nesting  unique_name=”ccNesting”>
     <control_nesting  unique_name="ccNesting">
     </control_nesting>
     </control_nesting>
  …
  …
Line 575: Line 682:


{{XML entry
{{XML entry
| type      = Element
| name      = control_set
| name      = control_set
| info      = Table like widget that allows for multiple points, polygons, or arcs to be joined together as a set.  An example usage would be to join two arcs in creating a weir.  By default the <control_set> contains two columns, object and role.  The object column identifies the arc, point, or poly id.  The role column is a user defined combo box that allows for customization of types and behavior.  See <roles>.  Addition columns can be added by simply adding a <column> tag with a widget.  See tables.  When exporting you can use the #object or #role keyword for retrieving data from those particular columns.
| info      = Table like widget that allows for multiple points, polygons, or arcs to be joined together as a set.  An example usage would be to join two arcs in creating a weir.  By default the <control_set> contains two columns, object and role.  The object column identifies the arc, point, or poly id.  The role column is a user defined combo box that allows for customization of types and behavior.  See <roles>.  Addition columns can be added by simply adding a <column> tag with a widget.  See tables.  When exporting you can use the #object or #role keyword for retrieving data from those particular columns.
Line 585: Line 691:
| children  = [[SMS:Dynamic Model Interface Schema#Element <column>|column]], [[SMS:Dynamic Model Interface Schema#Element <roles>|roles]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <column>|column]], [[SMS:Dynamic Model Interface Schema#Element <roles>|roles]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| example    = Example of a culvert widget with a extra “Name” column.  The culvert requires 2 arcs.  
| example    = Example of a culvert widget with a extra "Name" column.  The culvert requires 2 arcs.  
  <control_set min = “2”
  <control_set min = "2"
                       max = “2”
                       max = "2"
                       unique_name = “tblSetCulverts”>
                       unique_name = "tblSetCulverts">
       <roles behavior = "SWAP">
       <roles behavior = "SWAP">
  <role  text = “upper”>
  <role  text = "upper">
     <range>1-1</range>
     <range>1-1</range>
  </role>
  </role>
  <role  text = “lower”>
  <role  text = "lower">
     <range>1-1</range>  
     <range>1-1</range>  
  </role>
  </role>
         </roles>
         </roles>
         <column  text = “Name”>
         <column  text = "Name">
  <edit_box  unique_name=”edtMyArcsName”
  <edit_box  unique_name="edtMyArcsName"
                                 type=”text”>  
                                 type="text">  
  </edit_box>
  </edit_box>
         </column>
         </column>
Line 605: Line 711:


User allows for either 2 or 4 arcs on a weir.   
User allows for either 2 or 4 arcs on a weir.   
  <control_set min = “2” max = “4” increment = “2” >
  <control_set min = "2" max = "4" increment = "2" >
  ….
  ….
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = control_velocity
| name      = control_velocity
| info      = Displays an edit box and combo box.  Combo box can contain m/sec, m/min, m/hours, etc....  Also could be m/sec, cm/sec, ft/sec, etc...  The option tag specifies which options are displayed.  The edit box will display doubles, within the given range, if provided.  Possible outputs are value and units.
| info      = Displays an edit box and combo box.  Combo box can contain m/sec, m/min, m/hours, etc....  Also could be m/sec, cm/sec, ft/sec, etc...  The option tag specifies which options are displayed.  The edit box will display doubles, within the given range, if provided.  Possible outputs are value and units.
Line 626: Line 731:
| children  = [[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <range>|range]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <range>|range]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| example    = Displays m/sec and cm/sec in combo box. If m/sec selected and exported, returns the text “m sec”.
| example    = Displays m/sec and cm/sec in combo box. If m/sec selected and exported, returns the text "m sec".
  <item>
  <item>
     <text>Velocity </text>
     <text>Velocity </text>
     <control_velocity    unique_name=”ccVelocity”>
     <control_velocity    unique_name="ccVelocity">
         <range>0-100</range>
         <range>0-100</range>
         <option  text=”m/sec”
         <option  text="m/sec"
                       export_text = “m sec”
                       export_text = "m sec"
                       unit_keyword = #VEL_M_PER_S”>
                       unit_keyword = "#VEL_M_PER_S">
         </option>
         </option>
         <option  text = “cm/sec”
         <option  text = "cm/sec"
                       export_text = “cm sec”xt
                       export_text = "cm sec"xt
                       unit_keyword = #VEL_CM_PER_S”>
                       unit_keyword = "#VEL_CM_PER_S">
         </option>
         </option>
     </control_velocity>
     </control_velocity>
Line 644: Line 749:


{{XML entry
{{XML entry
| type      = Element
| name      = control_volume_flow
| name      = control_volume_flow
| info      = Displays an edit box and combo box.  Combo box can contain m^3/sec, m^3/min, m^3/hours, etc....  Also could be m^3/sec, cm^3/sec, ft^3/sec, etc...  The option tag specifies which options are displayed.  The edit box will display doubles, within the given range, if provided.  Possible outputs are value and units.
| info      = Displays an edit box and combo box.  Combo box can contain m^3/sec, m^3/min, m^3/hours, etc....  Also could be m^3/sec, cm^3/sec, ft^3/sec, etc...  The option tag specifies which options are displayed.  The edit box will display doubles, within the given range, if provided.  Possible outputs are value and units.
Line 652: Line 756:
| children  = [[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <range>|range]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <range>|range]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| example    = Displays m^3/sec and cm^3/sec in combo box. If m^3/sec selected and exported, returns the text “m^3 sec”.
| example    = Displays m^3/sec and cm^3/sec in combo box. If m^3/sec selected and exported, returns the text "m^3 sec".
  <item  text=”Volume flow”>
  <item  text="Volume flow">
     <control_volume_flow  unique_name =”ccVolumeFlow”>             
     <control_volume_flow  unique_name ="ccVolumeFlow">             
         <range>0-100</range>
         <range>0-100</range>
         <option
         <option
           text = “m^3/sec”
           text = "m^3/sec"
           export_text = ”m^3 sec”
           export_text = "m^3 sec"
           unit_keyword = #VFLOW_CU_M_PER_SEC”>
           unit_keyword = "#VFLOW_CU_M_PER_SEC">
         </option>
         </option>
         <option
         <option
           text = “cm^3/sec”
           text = "cm^3/sec"
           export_text = “cm^3 sec”
           export_text = "cm^3 sec"
           unit_keyword = #VFLOW_CU_CM_PER_SEC”>
           unit_keyword = "#VFLOW_CU_CM_PER_SEC">
         </option>
         </option>
     </control_volume_flow>
     </control_volume_flow>
Line 671: Line 775:


{{XML entry
{{XML entry
| type      = Element
| name      = count_filter
| name      = count_filter
| info      = Specifies the range on which the process_on_count is valid.
| info      = Specifies the range on which the process_on_count is valid.
Line 681: Line 784:
}}
}}


===D - H===
===Elements D - H===
{{XML entry
{{XML entry
| type      = Element
| name      = dataset_name
| name      = dataset_name
| info      = Determines the name of the dataset to be created.  Uses the standard printf and sprintf format ([http://www.cplusplus.com/reference/clibrary/cstdio/printf/ www.cplusplus.com/reference/clibrary/cstdio/printf/]).  The keywords #row_number, #column_number, #row_name, and #column_name are used when the dataset is in a table.
| info      = Determines the name of the dataset to be created.  Uses the standard printf and sprintf format ([http://www.cplusplus.com/reference/clibrary/cstdio/printf/ www.cplusplus.com/reference/clibrary/cstdio/printf/]).  The keywords #row_number, #column_number, #row_name, and #column_name are used when the dataset is in a table.
Line 692: Line 794:
| example    =  
| example    =  
  <control_dataset>                           
  <control_dataset>                           
     <dataset_name>”Five percent Layer %d”, #row_number</dataset_name>
     <dataset_name>"Five percent Layer %d", #row_number</dataset_name>
  …
  …
  </control_dataset>
  </control_dataset>
Line 698: Line 800:


{{XML entry
{{XML entry
| type      = Element
| name      = declare_coverage
| name      = declare_coverage
| info      = Defines a coverage type for the model.
| info      = Defines a coverage type for the model.
Line 714: Line 815:
| example    = This defines a coverage that can be created.
| example    = This defines a coverage that can be created.


  <declare_coverage z_is_elev = “true”   name=”MyCov”>
  <declare_coverage z_is_elev = "true"   name="MyCov">
   <point_att>
   <point_att>
     <menu_item  text = “Assign BC…” use_dialog = “NodeAtt”>
     <menu_item  text = "Assign BC…" use_dialog = "NodeAtt">
     </menu_item>
     </menu_item>
   </point_att>
   </point_att>
   <arc_att>
   <arc_att>
     <menu_item  text = “Assign BC…” use_dialog= “NodestringBC”>
     <menu_item  text = "Assign BC…" use_dialog= "NodestringBC">
     </menu_item>
     </menu_item>
   </arc_att>
   </arc_att>
   <material_att  use_dialog= “MaterialProp”</material_att>
   <material_att  use_dialog= "MaterialProp"</material_att>
  </coverage>
  </coverage>
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = declare_dialogs
| name      = declare_dialogs
| info      = Contains all the dialogs used in a model.
| info      = Contains all the dialogs used in a model.
Line 739: Line 839:


{{XML entry
{{XML entry
| type      = Element
| name      = declare_dialog
| name      = declare_dialog
| info      = Used to define a dialog.  
| info      = Used to define a dialog.  
Line 752: Line 851:


{{XML entry
{{XML entry
| type      = Element
| name      = declare_file
| name      = declare_file
| info      = A way to declare a file that will be used in the future.
| info      = A way to declare a file that will be used in the future.
Line 763: Line 861:


{{XML entry
{{XML entry
| type      = Element
| name      = declare_pages
| name      = declare_pages
| info      = Signals the beginning of page creation for a dialog.  One or more pages may be created using declare_page.
| info      = Signals the beginning of page creation for a dialog.  One or more pages may be created using declare_page.
Line 771: Line 868:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <dialog>|dialog]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <dialog>|dialog]]
| example    =  
| example    =  
  <declare_dialog name =”Model Control”>
  <declare_dialog name ="Model Control">
     <declare_pages>
     <declare_pages>
         <declare_page  text=”Page1”>
         <declare_page  text="Page1">
                 ….
                 ….
         </declare_pagef>
         </declare_pagef>
         <declare_page  text =”Page2”>
         <declare_page  text ="Page2">
                 ….
                 ….
         </declare_page>
         </declare_page>
Line 783: Line 880:


{{XML entry
{{XML entry
| type      = Element
| name      = declare_page
| name      = declare_page
| info      = This defines the page or tab of a dialog. If there is only one page_def in a dialog, then no tabs will appear.
| info      = This defines the page or tab of a dialog. If there is only one page_def in a dialog, then no tabs will appear.
Line 794: Line 890:


{{XML entry
{{XML entry
| type      = Element
| name      = declare_parameter
| name      = declare_parameter
| info      = A way to declare data that will be used in the future.
| info      = A way to declare data that will be used in the future.
Line 800: Line 895:
| attributes = none
| attributes = none
| children  = none
| children  = none
| used_by    = input_file, anything beginning with “process_each”, takes
| used_by    = input_file, anything beginning with "process_each", takes
| example    =  
| example    =  
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = dependency
| name      = dependency
| info      = Dependencies allow widgets to be hidden, dimmed (grayed out), or shown based on the state/value of another widget.  The [[SMS:Dynamic Model Interface Schema#Element <dependency>|<dependency>]] tag can be placed in any widget, combo-box option, item, or group.  A user needs to specify the condition that this object is dependent upon and what the value(s) need(s) to be in order for the object to be shown/not dimmed.  If the condition is false, by default the control is hidden.  To have the control dimmed, use the [[SMS:Dynamic Model Interface Schema#Element <dim>|<dim>]] tag.
| info      = Dependencies allow widgets to be hidden, dimmed (grayed out), or shown based on the state/value of another widget.  The [[SMS:Dynamic Model Interface Schema#Element <dependency>|<dependency>]] tag can be placed in any widget, combo-box option, item, or group.  A user needs to specify the condition that this object is dependent upon and what the value(s) need(s) to be in order for the object to be shown/not dimmed.  If the condition is false, by default the control is hidden.  To have the control dimmed, use the [[SMS:Dynamic Model Interface Schema#Element <dim>|<dim>]] tag.
Line 811: Line 905:
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <dim>|dim]]
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <dim>|dim]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <condition>|condition]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <condition>|condition]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <card>|card]], [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element < table >|table]], any element that begins with “custom_control”, [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <group>|group]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <card>|card]], [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element < table >|table]], any element that begins with "custom_control", [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <group>|group]]
| example    = '''Example 1'''
| example    = '''Example 1'''
We only want our edit_box displayed if the check_box is checked (true).  If check_box is not checked, we want to dim (show but is grayed out) the edit_box.
We only want our edit_box displayed if the check_box is checked (true).  If check_box is not checked, we want to dim (show but is grayed out) the edit_box.
   
   
  <check_box  unique_name = “MyBox”>
  <check_box  unique_name = "MyBox">
  …
  …
   
   
Line 826: Line 920:
We want our text_box displayed if the edit_box has a value between 0-3 or if the combo box has the value minutes or days.
We want our text_box displayed if the edit_box has a value between 0-3 or if the combo box has the value minutes or days.
   
   
  <edit_box  unique_name=”MyEdit_box”>
  <edit_box  unique_name="MyEdit_box">
  …
  …
  <combo_box  unique_name = “MyComboBox”>
  <combo_box  unique_name = "MyComboBox">
     <option  text = “hours”></option>
     <option  text = "hours"></option>
     <option  text =”minutes”></option>
     <option  text ="minutes"></option>
   …
   …
   
   
Line 836: Line 930:
  <text_box>
  <text_box>
     <dependency>
     <dependency>
         <condition>(MyEdit_box GREATER_THAN_EQUALS 0 AND MyEdit_box LESS_THAN_EQUALS 3) OR (MyComboBox EQUALS “minutes” OR MyComboBox EQUALS “days”)</condition>
         <condition>(MyEdit_box GREATER_THAN_EQUALS 0 AND MyEdit_box LESS_THAN_EQUALS 3) OR (MyComboBox EQUALS "minutes" OR MyComboBox EQUALS "days")</condition>
   </dependency>
   </dependency>
  </text_box>
  </text_box>
Line 842: Line 936:


{{XML entry
{{XML entry
| type      = Element
| name      = display_options
| name      = display_options
| info      = Specifies that the options in the combo box are to be used as arc/nodestring boundary condition display options.  This element should only be used once in a combo_box and once in a edit_box per dialog.
| info      = Specifies that the options in the combo box are to be used as arc/nodestring boundary condition display options.  This element should only be used once in a combo_box and once in a edit_box per dialog.
Line 851: Line 944:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]]
| example    =   
| example    =   
  <combo_box  unique_name=”cbxArcDeleteMe”>
  <combo_box  unique_name="cbxArcDeleteMe">
   <display_options type= "point" text ="Save Points Name"></display_options>
   <display_options type= "point" text ="Save Points Name"></display_options>
     <option  text=”Hydro”   default></option>
     <option  text="Hydro"   default></option>
     <option  text=”Sediment”></option>
     <option  text="Sediment"></option>
  </combo_box>
  </combo_box>
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = dynamic_model
| name      = dynamic_model
| info      = Used to define a dynamic model.
| info      = Used to define a dynamic model.
| version    = 1
| version    = 1
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <file_type>|file_type]] &ndash; always “dynamic model”,  
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <file_type>|file_type]] &ndash; always "dynamic model",  
[[SMS:Dynamic Model Interface Schema#Attribute <version>|version]]
[[SMS:Dynamic Model Interface Schema#Attribute <version>|version]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <model>|model]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <model>|model]]
Line 871: Line 963:


{{XML entry
{{XML entry
| type      = Element
| name      = edit_box
| name      = edit_box
| info      = Widget that displays text or numbers.  If [[SMS:Dynamic Model Interface Schema#Element <type>|<type>]] not specified, default to double. The type can also be text, or integer.
| info      = Widget that displays text or numbers.  If [[SMS:Dynamic Model Interface Schema#Element <type>|<type>]] not specified, default to double. The type can also be text, or integer.
Line 882: Line 973:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| example    =  
| example    =  
  <edit_box  type=”double”    
  <edit_box  type="double"    
                   default=”1.0”  
                   default="1.0"  
                   unique_name=”edtBox5”
                   unique_name="edtBox5"
                   optional>
                   optional>
     <range>0, 2.2</range>
     <range>0, 2.2</range>
Line 892: Line 983:


{{XML entry
{{XML entry
| type      = Element
| name      = end_card
| name      = end_card
| info      = Defines that the card end with a single iteration of the enclosing <process_each_XXX>
| info      = Defines that the card end with a single iteration of the enclosing <process_each_XXX>
Line 903: Line 993:


{{XML entry
{{XML entry
| type      = Element
| name      = executable
| name      = executable
| info      = Represents a single executable used by the model.
| info      = Represents a single executable used by the model.
Line 914: Line 1,003:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <simulation>|simulation]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <simulation>|simulation]]
| example    = '''Example 1'''
| example    = '''Example 1'''
  <executable name =”MyModel” executable_order = “1”
  <executable name ="MyModel" executable_order = "1"
         default_executable_name32="MyModel32.exe"
         default_executable_name32="MyModel32.exe"
         default_executable_name64="MyModel64.exe">
         default_executable_name64="MyModel64.exe">
Line 934: Line 1,023:
In the following example, one instance of the numeric model is executed per coverage. A file will be exported per coverage and no command line arguments are used when launching the model.
In the following example, one instance of the numeric model is executed per coverage. A file will be exported per coverage and no command line arguments are used when launching the model.


  <executable name = “SRH 2D”   executable_order=”1” </executable>
  <executable name = "SRH 2D"   executable_order="1" </executable>
   <use_parameter>MyCaseFile</use_parameter>
   <use_parameter>MyCaseFile</use_parameter>
   <executable_command>
   <executable_command>
         <command_args>"\"%s\"", #file_name</command_args>
         <command_args>"\"%s\"", #file_name</command_args>
         <execute>%s - %s”, #executable_name, #geom_name</execute>
         <execute>"%s - %s", #executable_name, #geom_name</execute>
   </executable_command>
   </executable_command>
  </executable>
  </executable>
Line 954: Line 1,043:
In the following example, only one instance of the numeric model is executed. A file will be exported per coverage and no command line arguments are used when launching the model.
In the following example, only one instance of the numeric model is executed. A file will be exported per coverage and no command line arguments are used when launching the model.


  <executable name =”SRH 2D  executable_order=”1””</executable>
  <executable name ="SRH 2D  executable_order="1""</executable>
   <executable_command>
   <executable_command>
         <execute>%s”, #executable_name</execute>
         <execute>"%s", #executable_name</execute>
   </executable_command>
   </executable_command>
  </executable>
  </executable>
Line 970: Line 1,059:


{{XML entry
{{XML entry
| type      = Element
| name      = executable_command
| name      = executable_command
| info      = Defined command line arguments for the executable.
| info      = Defined command line arguments for the executable.
Line 981: Line 1,069:


{{XML entry
{{XML entry
| type      = Element
| name      = executable_progress_update
| name      = executable_progress_update
| info      = Updates the status bar of the model based on output from the model.
| info      = Updates the status bar of the model based on output from the model.
Line 989: Line 1,076:
| children  = [[SMS:Dynamic Model Interface Schema#Element <update_text>|update_text]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <update_text>|update_text]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <executable>|executable]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <executable>|executable]]
| example    = For a model that outputs “CASE 1 of 35”,“CASE 2 of 35” etc..  
| example    = For a model that outputs "CASE 1 of 35","CASE 2 of 35" etc..  


  <executable name=”My Model Main”</executable>
  <executable name="My Model Main"</executable>
     <executable_progress_update   
     <executable_progress_update   
         amount="0"  max ="35"
         amount="0"  max ="35"
Line 1,001: Line 1,088:


{{XML entry
{{XML entry
| type      = Element
| name      = execute
| name      = execute
| info      = Defines when to run an executable. The text of this element is the text that will be displayed as the process name when running the model.
| info      = Defines when to run an executable. The text of this element is the text that will be displayed as the process name when running the model.
Line 1,012: Line 1,098:


{{XML entry
{{XML entry
| type      = Element
| name      = export_format
| name      = export_format
| info      = Placed inside the [[SMS:Dynamic Model Interface Schema#Element <card>|<card>]] to determine how the card format will be displayed when exporting to a text file.  Uses the standard printf and sprintf format (www.cplusplus.com/reference/clibrary/cstdio/printf/).  #card_name” should be used when displaying the card.  When using an element that starts with “custom_control”, a user can use the # character to get to the value or units.
| info      = Placed inside the [[SMS:Dynamic Model Interface Schema#Element <card>|<card>]] to determine how the card format will be displayed when exporting to a text file.  Uses the standard printf and sprintf format (www.cplusplus.com/reference/clibrary/cstdio/printf/).  "#card_name" should be used when displaying the card.  When using an element that starts with "custom_control", a user can use the # character to get to the value or units.
| version    = 1
| version    = 1
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <ignore_on_read>|ignore_on_read]]
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <ignore_on_read>|ignore_on_read]]
Line 1,022: Line 1,107:
| example    = '''Example 1'''
| example    = '''Example 1'''
   
   
  <edit_box  unique_name=”MyEditBox”>
  <edit_box  unique_name="MyEditBox">
  </edit_box>
  </edit_box>
  …
  …
  <card>
  <card>
   <card_name>FIFTH_GRAIN</card_name>
   <card_name>FIFTH_GRAIN</card_name>
   <export_format>%s %lf\n", #card_name, MyEditBox</export_format>
   <export_format>"%s %lf\n", #card_name, MyEditBox</export_format>
  </card>
  </card>
   
   
Line 1,035: Line 1,120:
'''Example 2'''
'''Example 2'''
If export_format was changed to this:
If export_format was changed to this:
<export_format>%s \%lf\// comment\n", #card_name, MyEditBox
<export_format>"%s \"%lf\" // comment\n", #card_name, MyEditBox
</export_format>
</export_format>
   
   
FIFTH_GRAIN “15” // comment
FIFTH_GRAIN "15" // comment


  <control_length  unique_name=”MyLength”>
  <control_length  unique_name="MyLength">


'''Example 3'''
'''Example 3'''
Line 1,049: Line 1,134:
  <card>
  <card>
   <card_name>ADAPTATION_LENGTH_TOTAL</card_name>
   <card_name>ADAPTATION_LENGTH_TOTAL</card_name>
   <export_format>%s %lf, %s\n", #card_name, MyLength#value,
   <export_format>"%s %lf, %s\n", #card_name, MyLength#value,
                               MyLength#units</export_format>
                               MyLength#units</export_format>
  </card>
  </card>
Line 1,057: Line 1,142:


{{XML entry
{{XML entry
| type      = Element
| name      = export_group
| name      = export_group
| info      = A way of grouping optional exports.
| info      = A way of grouping optional exports.
Line 1,063: Line 1,147:
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <ignore_on_read>|ignore_on_read]],  
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <ignore_on_read>|ignore_on_read]],  
[[SMS:Dynamic Model Interface Schema#Attribute <required>|required]]
[[SMS:Dynamic Model Interface Schema#Attribute <required>|required]]
| children  = Any element beginning with “process_” and required (version 2), [[SMS:Dynamic Model Interface Schema#Element <xmdf_dataset>|xmdf_dataset]], [[SMS:Dynamic Model Interface Schema#Element <mxmdf_data>|xmdf_data]], [[SMS:Dynamic Model Interface Schema#Element <xmdf_group>|xmdf_group]], [[SMS:Dynamic Model Interface Schema#Element <xmdf_geometry>|xmdf_geometry]], [[SMS:Dynamic Model Interface Schema#Element <export_optional>|export_optional]], [[SMS:Dynamic Model Interface Schema#Element <section>|section]]
| children  = Any element beginning with "process_" and required (version 2), [[SMS:Dynamic Model Interface Schema#Element <xmdf_dataset>|xmdf_dataset]], [[SMS:Dynamic Model Interface Schema#Element <mxmdf_data>|xmdf_data]], [[SMS:Dynamic Model Interface Schema#Element <xmdf_group>|xmdf_group]], [[SMS:Dynamic Model Interface Schema#Element <xmdf_geometry>|xmdf_geometry]], [[SMS:Dynamic Model Interface Schema#Element <export_optional>|export_optional]], [[SMS:Dynamic Model Interface Schema#Element <section>|section]]
| used_by    = Any element beginning with “process_”.
| used_by    = Any element beginning with "process_".
| example    =  
| example    =  
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = export_location
| name      = export_location
| info      = Relative or absolute path of the export file (.cmcards).  Can be used multiple times if exporting to more than 1 file location. Keywords can be #PROJECT_NAME and #GEOMETRY.
| info      = Relative or absolute path of the export file (.cmcards).  Can be used multiple times if exporting to more than 1 file location. Keywords can be #PROJECT_NAME and #GEOMETRY.
Line 1,081: Line 1,164:
'''Example 2'''
'''Example 2'''
<export_location>\\#PROJECT_NAME_#GEOMETRY.cmcards</export_location>
<export_location>\\#PROJECT_NAME_#GEOMETRY.cmcards</export_location>
<export_location>\\%s__%s.cmcards”, #PROJECT_NAME, #GEOMETRY</export_location>
<export_location>"\\%s__%s.cmcards", #PROJECT_NAME, #GEOMETRY</export_location>
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = export_optional
| name      = export_optional
| info      = Indicator of text that might be included. If it has default as a child, then SMS will write out the text included in this element.
| info      = Indicator of text that might be included. If it has default as a child, then SMS will write out the text included in this element.
Line 1,091: Line 1,173:
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <ignore_on_read>|ignore_on_read]],  
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <ignore_on_read>|ignore_on_read]],  
[[SMS:Dynamic Model Interface Schema#Attribute <default>|default]]
[[SMS:Dynamic Model Interface Schema#Attribute <default>|default]]
| children  = Any element beginning with “process_”, [[SMS:Dynamic Model Interface Schema#Element <export_format>|export_format]], [[SMS:Dynamic Model Interface Schema#Element <default>|default]] (version 2), [[SMS:Dynamic Model Interface Schema#Element <separator>|separator]], xmdf_dataset, xmdf_data, xmdf_group, xmdf_geometry, [[SMS:Dynamic Model Interface Schema#Element <section>|section]]
| children  = Any element beginning with "process_", [[SMS:Dynamic Model Interface Schema#Element <export_format>|export_format]], [[SMS:Dynamic Model Interface Schema#Element <default>|default]] (version 2), [[SMS:Dynamic Model Interface Schema#Element <separator>|separator]], xmdf_dataset, xmdf_data, xmdf_group, xmdf_geometry, [[SMS:Dynamic Model Interface Schema#Element <section>|section]]
| used_by    = Any element beginning with “process_”.
| used_by    = Any element beginning with "process_".
| example    =  
| example    =  
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = files
| name      = files
| info      =  
| info      =  
Line 1,108: Line 1,189:


{{XML entry
{{XML entry
| type      = Element
| name      = group
| name      = group
| info      = Tree group item that contains one or more items or groups.   
| info      = Tree group item that contains one or more items or groups.   
Line 1,116: Line 1,196:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <link_to>|link_to]] (version 1), [[SMS:Dynamic Model Interface Schema#Element <page_def>|page_def]] (version 2), another <group> if nested (version 1), [[SMS:Dynamic Model Interface Schema#Element <contains>|<contains>]] (version 2)
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <link_to>|link_to]] (version 1), [[SMS:Dynamic Model Interface Schema#Element <page_def>|page_def]] (version 2), another <group> if nested (version 1), [[SMS:Dynamic Model Interface Schema#Element <contains>|<contains>]] (version 2)
| example    =  
| example    =  
  <group  text = “Timing”>
  <group  text = "Timing">
   <item>
   <item>
   … tree item stuff
   … tree item stuff
Line 1,123: Line 1,203:
}}
}}


===I - O===
===Elements I - O===
{{XML entry
{{XML entry
| type      = Element
| name      = input_file
| name      = input_file
| info      = Defines a file to be used for input for an executable.
| info      = Defines a file to be used for input for an executable.
Line 1,136: Line 1,215:


{{XML entry
{{XML entry
| type      = Element
| name      = input_files
| name      = input_files
| info      = A container to place all of the input files into for a simulation.
| info      = A container to place all of the input files into for a simulation.
Line 1,147: Line 1,225:


{{XML entry
{{XML entry
| type      = Element
| name      = item
| name      = item
| info      = Tree item contains one or more widgets ([[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], etc).  A tree item can contain multiple cards (version 1), but those cards must be mutually exclusive.   
| info      = Tree item contains one or more widgets ([[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], etc).  A tree item can contain multiple cards (version 1), but those cards must be mutually exclusive.   
| version    = 1
| version    = 1
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <text>|text]]
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <text>|text]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <card>|card]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element < table >|table]], any element starting with “control”, [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]], [[SMS:Dynamic Model Interface Schema#Element <new_line>|new_line]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <card>|card]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element < table >|table]], any element starting with "control", [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]], [[SMS:Dynamic Model Interface Schema#Element <new_line>|new_line]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <group>|group]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <group>|group]]
| example    =  
| example    =  
Line 1,162: Line 1,239:


{{XML entry
{{XML entry
| type      = Element
| name      = location
| name      = location
| info      = Used to specify which point locations to export.  Point locations are defined as: “corner”, “mid”, “center”, “disjoint” and “all”.  Point locations can have a slightly different meaning based on their context as described below.
| info      = Used to specify which point locations to export.  Point locations are defined as: "corner", "mid", "center", "disjoint" and "all".  Point locations can have a slightly different meaning based on their context as described below.


Exporting coverage arc points:  
Exporting coverage arc points:  
Line 1,241: Line 1,317:


{{XML entry
{{XML entry
| type      = Element
| name      = material_att
| name      = material_att
| info      = Used to specify what attributes should be used for materials of a coverage.
| info      = Used to specify what attributes should be used for materials of a coverage.
Line 1,252: Line 1,327:


{{XML entry
{{XML entry
| type      = Element
| name      = max_rows
| name      = max_rows
| info      = Optional element used to limit the number of rows the user can specify in a control_curve.  If this element is not used, the max_rows is unlimited.
| info      = Optional element used to limit the number of rows the user can specify in a control_curve.  If this element is not used, the max_rows is unlimited.
Line 1,275: Line 1,349:


{{XML entry
{{XML entry
| type      = Element
| name      = menu_item
| name      = menu_item
| info      = Item to be placed in a menu. The text is the text displayed in the menu, use_dialog describes the dialog to be launched, dependency describes what needs to be true in order for the menu item to appear.
| info      = Item to be placed in a menu. The text is the text displayed in the menu, use_dialog describes the dialog to be launched, dependency describes what needs to be true in order for the menu item to appear.
The double_click attribute (if true) indicates that this is the menu item to be launched on a double click event. For example, if a menu_item is in an arc_att, and has double_click = “true”, then when an arc is double clicked, the dialog specified by the menu item is launched.
The double_click attribute (if true) indicates that this is the menu item to be launched on a double click event. For example, if a menu_item is in an arc_att, and has double_click = "true", then when an arc is double clicked, the dialog specified by the menu item is launched.
| version    = 2
| version    = 2
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <double_click>|double_click]],  
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <double_click>|double_click]],  
Line 1,289: Line 1,362:


{{XML entry
{{XML entry
| type      = Element
| name      = msg
| name      = msg
| info      = Used to display text to the user when a model check condition has failed.
| info      = Used to display text to the user when a model check condition has failed.
Line 1,298: Line 1,370:
| example    =  
| example    =  
  < table >
  < table >
   <column  text=”A>
   <column  text="A>
       <edit_box  unique_name = “colA”>
       <edit_box  unique_name = "colA">
       </edit_box>
       </edit_box>
     </column>
     </column>
  …// other columns also defined
  …// other columns also defined
    
    
  <model_check  problem_text = ”Column D or E is required.
  <model_check  problem_text = "Column D or E is required."
                 description_text = “This model requires column D.
                 description_text = "This model requires column D."
                 fix_text = “To fix do the following:  …...  >
                 fix_text = "To fix do the following:  …...  ">
       <condition>( (colA OR colB) AND NOT(colD OR colE))</condition>
       <condition>( (colA OR colB) AND NOT(colD OR colE))</condition>
   </model_check>
   </model_check>
Line 1,313: Line 1,385:


{{XML entry
{{XML entry
| type      = Element
| name      = model
| name      = model
| info      = Defines the model interface that is being created.
| info      = Defines the model interface that is being created.
Line 1,321: Line 1,392:
| children  = [[SMS:Dynamic Model Interface Schema#Element <simulation>|simulation]], [[SMS:Dynamic Model Interface Schema#Element <declare_coverage>|declare_coverage]], [[SMS:Dynamic Model Interface Schema#Element <dialogs>|dialogs]], [[SMS:Dynamic Model Interface Schema#Element <files>|files]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <simulation>|simulation]], [[SMS:Dynamic Model Interface Schema#Element <declare_coverage>|declare_coverage]], [[SMS:Dynamic Model Interface Schema#Element <dialogs>|dialogs]], [[SMS:Dynamic Model Interface Schema#Element <files>|files]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <dynamic_model>|dynamic_model]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <dynamic_model>|dynamic_model]]
| example    = A simple model that has one coverage type, one dialog, and one file definition.  This interfaces with version 4 of “MyModel”.
| example    = A simple model that has one coverage type, one dialog, and one file definition.  This interfaces with version 4 of "MyModel".


  <dynamic_model filetype=”dynamic model”>
  <dynamic_model filetype="dynamic model">
                             version=”2”>
                             version="2">
   <model  name=”MyModel” version=”4”>
   <model  name="MyModel" version="4">
     <simulation>
     <simulation>
       …
       …
     </simulation>
     </simulation>
     <declare_coverage  name= “MyCov”>l</coverage>
     <declare_coverage  name= "MyCov">l</coverage>
       ...
       ...
     </coverage>
     </coverage>
Line 1,340: Line 1,411:


{{XML entry
{{XML entry
| type      = Element
| name      = model_check
| name      = model_check
| info      = Used to validate data of multiple combinations when the '''OK''' button is clicked.  Displays an error message if the logic in the [[SMS:Dynamic Model Interface Schema#Element <condition>|<condition>]] is false.  Can use AND, OR, LESS_THAN, GREATER_THAN, EQUALS and NOT.
| info      = Used to validate data of multiple combinations when the '''OK''' button is clicked.  Displays an error message if the logic in the [[SMS:Dynamic Model Interface Schema#Element <condition>|<condition>]] is false.  Can use AND, OR, LESS_THAN, GREATER_THAN, EQUALS and NOT.
Line 1,351: Line 1,421:
| example    =  
| example    =  
  < table >
  < table >
   <column  text=”A”>
   <column  text="A">
       <edit_box  unique_name=”colA”>
       <edit_box  unique_name="colA">
       </edit_box>
       </edit_box>
     </column>
     </column>
Line 1,358: Line 1,428:
  < /table >
  < /table >
    
    
  <model_check  problem_text = ”Column D or E is required.
  <model_check  problem_text = "Column D or E is required."
                 description_text = “This model requires column D.
                 description_text = "This model requires column D."
                 fix_text = “To fix do the following:  …...  >
                 fix_text = "To fix do the following:  …...  ">
     <condition>( (colA EQUALS 0.0 OR colB EQUALS 0.0) AND NOT(colD EQUALS 0.0 OR colE EQUALS 0.0))</condition>
     <condition>( (colA EQUALS 0.0 OR colB EQUALS 0.0) AND NOT(colD EQUALS 0.0 OR colE EQUALS 0.0))</condition>
  </model_check>
  </model_check>
Line 1,366: Line 1,436:


{{XML entry
{{XML entry
| type      = Element
| name      = model_checks
| name      = model_checks
| info      = Contains all model checks
| info      = Contains all model checks
Line 1,378: Line 1,447:
   ...
   ...
     < table >
     < table >
       <column  text=”A”>
       <column  text="A">
           <edit_box  unique_name=”colA”>
           <edit_box  unique_name="colA">
           </edit_box>
           </edit_box>
         </column>
         </column>
Line 1,388: Line 1,457:
  <declare_dialogs>
  <declare_dialogs>
  <model_checks>
  <model_checks>
  <model_check  problem_text = ”Column D or E is required.
  <model_check  problem_text = "Column D or E is required."
                 description_text = “This model requires column D.
                 description_text = "This model requires column D."
                 fix_text = “To fix do the following:  …...  >
                 fix_text = "To fix do the following:  …...  ">
     <condition>( (colA EQUALS 0.0 OR colB EQUALS 0.0) AND NOT(colD EQUALS 0.0 OR colE EQUALS 0.0))</condition>
     <condition>( (colA EQUALS 0.0 OR colB EQUALS 0.0) AND NOT(colD EQUALS 0.0 OR colE EQUALS 0.0))</condition>
   </model_check>
   </model_check>
Line 1,397: Line 1,466:


{{XML entry
{{XML entry
| type      = Element
| name      = new_line
| name      = new_line
| info      = Creates a new line before adding the next widget in a tree item.  
| info      = Creates a new line before adding the next widget in a tree item.  
Line 1,413: Line 1,481:
             <text>Breaking Efficency:</text>
             <text>Breaking Efficency:</text>
         </text_box>
         </text_box>
         <edit_box  unique_name=”edtBreakingEff”>
         <edit_box  unique_name="edtBreakingEff">
         </edit_box>
         </edit_box>
         <new_line></new_line>
         <new_line></new_line>
         <text_box  text=”Friction Efficency:>
         <text_box  text="Friction Efficency:">
         </text_box>
         </text_box>
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = option
| name      = option
| info      = Widget that displays list of options.  Only 1 can be selected.
| info      = Widget that displays list of options.  Only 1 can be selected.
Line 1,430: Line 1,497:
display_options_hide
display_options_hide
| children  = [[SMS:Dynamic Model Interface Schema#Element <export_text>|export_text]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <export_text>|export_text]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], any element that starts with “custom_control” and has units
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], any element that starts with "custom_control" and has units
| example    = Creates a combo box with hours, minutes and seconds.  Minutes is the default item.
| example    = Creates a combo box with hours, minutes and seconds.  Minutes is the default item.
  <combo_box  unique_name=”cbxTransportUnits”>                     
  <combo_box  unique_name="cbxTransportUnits">                     
       <option  text=”hours”>
       <option  text="hours">
         </option>
         </option>
         <option  text=”minutes”      
         <option  text="minutes"      
                       default>
                       default>
         </option>
         </option>
         <option  text=”seconds”>
         <option  text="seconds">
         </option>
         </option>
     <dependency>…</dependency>…
     <dependency>…</dependency>…
Line 1,445: Line 1,512:


{{XML entry
{{XML entry
| type      = Element
| name      = output_file
| name      = output_file
| info      = Defines a file to be created by the executable.
| info      = Defines a file to be created by the executable.
Line 1,456: Line 1,522:


{{XML entry
{{XML entry
| type      = Element
| name      = output_files
| name      = output_files
| info      = A container to place all of the output files into for a simulation.  
| info      = A container to place all of the output files into for a simulation.  
Line 1,466: Line 1,531:
}}
}}


===P - S===
===Elements P - S===
{{XML entry
{{XML entry
| type      = Element
| name      = page_def
| name      = page_def
| info      = This defines the page or tab of a dialog. If there is only one page_def in a dialog, then no tabs will appear.  
| info      = This defines the page or tab of a dialog. If there is only one page_def in a dialog, then no tabs will appear.  
Line 1,480: Line 1,544:


{{XML entry
{{XML entry
| type      = Element
| name      = point_att
| name      = point_att
| info      = Used to specify what attributes should be used for the points of a coverage.   
| info      = Used to specify what attributes should be used for the points of a coverage.   
Line 1,491: Line 1,554:


{{XML entry
{{XML entry
| type      = Element
| name      = polygon_att
| name      = polygon_att
| info      = Used to specify what attributes should be used for the polygon of a coverage.  
| info      = Used to specify what attributes should be used for the polygon of a coverage.  
Line 1,502: Line 1,564:


{{XML entry
{{XML entry
| type      = Element
| name      = process_each_arc
| name      = process_each_arc
| info      = Indicator to loop through each arc in the given context.  
| info      = Indicator to loop through each arc in the given context.  
Line 1,517: Line 1,578:


{{XML entry
{{XML entry
| type      = Element
| name      = process_each_coverage
| name      = process_each_coverage
| info      = Indicator to loop through each coverage in the given context.
| info      = Indicator to loop through each coverage in the given context.
Line 1,532: Line 1,592:


{{XML entry
{{XML entry
| type      = Element
| name      = process_each_material
| name      = process_each_material
| info      = Indicator to loop through each material in the given context.
| info      = Indicator to loop through each material in the given context.
Line 1,547: Line 1,606:


{{XML entry
{{XML entry
| type      = Element
| name      = process_each_neighbor
| name      = process_each_neighbor
| info      = Indicator to loop through each neighbor in the given context.
| info      = Indicator to loop through each neighbor in the given context.
Line 1,567: Line 1,625:


{{XML entry
{{XML entry
| type      = Element
| name      = process_each_point
| name      = process_each_point
| info      = Indicator to loop through each point in the given context.
| info      = Indicator to loop through each point in the given context.
Line 1,583: Line 1,640:


{{XML entry
{{XML entry
| type      = Element
| name      = process_each_polygon
| name      = process_each_polygon
| info      = Indicator to loop through each polygon in the given context.  
| info      = Indicator to loop through each polygon in the given context.  
Line 1,598: Line 1,654:


{{XML entry
{{XML entry
| type      = Element
| name      = process_each_row
| name      = process_each_row
| info      = Indicator to loop through each row in a table.  Has the widget attribute that must be used. The widget attribute needs to be set to the name of a widget which belongs to the table to be iterated through. To iterate through the rows of a curve widget, use the name of the curve widget and a keyword, such as #x”.
| info      = Indicator to loop through each row in a table.  Has the widget attribute that must be used. The widget attribute needs to be set to the name of a widget which belongs to the table to be iterated through. To iterate through the rows of a curve widget, use the name of the curve widget and a keyword, such as "#x".
| version    = 2
| version    = 2
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <ignore_on_read>|ignore_on_read]],  
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <ignore_on_read>|ignore_on_read]],  
Line 1,610: Line 1,665:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <card>|card]], [[SMS:Dynamic Model Interface Schema#Element <process_each_coverage>|process_each_coverage]], [[SMS:Dynamic Model Interface Schema#Element <process_each_polygon>|process_each_polygon]], [[SMS:Dynamic Model Interface Schema#Element <process_each_arc>|process_each_arc]], [[SMS:Dynamic Model Interface Schema#Element <process_each_point>|process_each_point]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <card>|card]], [[SMS:Dynamic Model Interface Schema#Element <process_each_coverage>|process_each_coverage]], [[SMS:Dynamic Model Interface Schema#Element <process_each_polygon>|process_each_polygon]], [[SMS:Dynamic Model Interface Schema#Element <process_each_arc>|process_each_arc]], [[SMS:Dynamic Model Interface Schema#Element <process_each_point>|process_each_point]]
| example    =  
| example    =  
  <process_each_row widget = “someColumnWidget”>
  <process_each_row widget = "someColumnWidget">
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = process_on_condition
| name      = process_on_condition
| info      = Indicator to perform a certain action only if the condition is satisfied.
| info      = Indicator to perform a certain action only if the condition is satisfied.
Line 1,625: Line 1,679:


{{XML entry
{{XML entry
| type      = Element
| name      = process_on_count
| name      = process_on_count
| info      = Indicator to perform a certain action only on certain iterations of a loop.
| info      = Indicator to perform a certain action only on certain iterations of a loop.
Line 1,636: Line 1,689:


{{XML entry
{{XML entry
| type      = Element
| name      = push_button
| name      = push_button
| info      = The button to be used for a control_dataset.  Can be SELECT, CREATE, or DELETE.  
| info      = The button to be used for a control_dataset.  Can be SELECT, CREATE, or DELETE.  
Line 1,647: Line 1,699:


{{XML entry
{{XML entry
| type      = Element
| name      = range
| name      = range
| info      = Determines the range of acceptable values in an [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]].  Can use the keywords GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN and LESS_THAN_EQUALS. Numbers assumed inclusive unless otherwise specified.
| info      = Determines the range of acceptable values in an [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]].  Can use the keywords GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN and LESS_THAN_EQUALS. Numbers assumed inclusive unless otherwise specified.
Line 1,653: Line 1,704:
| attributes = none
| attributes = none
| children  = none
| children  = none
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], any element that starts with “control” except: control_file_selector, control_dataset and control_date
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], any element that starts with "control" except: control_file_selector, control_dataset and control_date
| example    = '''Example 1'''
| example    = '''Example 1'''
  <edit_box>                     
  <edit_box>                     
Line 1,675: Line 1,726:


{{XML entry
{{XML entry
| type      = Element
| name      = required
| name      = required
| info      = Used to indicate that something from the exported group must be used.  
| info      = Used to indicate that something from the exported group must be used.  
Line 1,686: Line 1,736:


{{XML entry
{{XML entry
| type      = Element
| name      = role
| name      = role
| info      = A single entry in a combo box option for <roles>.  Used to define the displayed text and range.  The range specifies how many objects that can have this role.   
| info      = A single entry in a combo box option for <roles>.  Used to define the displayed text and range.  The range specifies how many objects that can have this role.   
Line 1,693: Line 1,742:
| children  = [[SMS:Dynamic Model Interface Schema#Attribute <text>|text]], [[SMS:Dynamic Model Interface Schema#Attribute <range>|range]]
| children  = [[SMS:Dynamic Model Interface Schema#Attribute <text>|text]], [[SMS:Dynamic Model Interface Schema#Attribute <range>|range]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <roles>|roles]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <roles>|roles]]
| example    = Example of a culvert widget with a extra “Name” column  
| example    = Example of a culvert widget with a extra "Name" column  
  <control_set  unique_name=”tblSetCulverts”>
  <control_set  unique_name="tblSetCulverts">
       <roles behavior = "SWAP">
       <roles behavior = "SWAP">
  <role  text=”upper”>
  <role  text="upper">
     <range>1-1</range>
     <range>1-1</range>
  </role>
  </role>
  <role  text=”lower”>
  <role  text="lower">
     <range>1-1</range>
     <range>1-1</range>
  </role>
  </role>
         </roles>
         </roles>
         <column  text = “Name”>
         <column  text = "Name">
  <edit_box  unique_name=”edtMyArcsName”
  <edit_box  unique_name="edtMyArcsName"
                     type=”text”>
                     type="text">
  </edit_box>
  </edit_box>
         </column>
         </column>
Line 1,712: Line 1,761:


{{XML entry
{{XML entry
| type      = Element
| name      = roles
| name      = roles
| info      = Defines the behavior of each role.
| info      = Defines the behavior of each role.
Line 1,719: Line 1,767:
| children  = [[SMS:Dynamic Model Interface Schema#Element <role>|role]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <role>|role]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_set>|control_set]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_set>|control_set]]
| example    = Example of a culvert widget with a extra “Name” column  
| example    = Example of a culvert widget with a extra "Name" column  
  <control_set  unique_name=”tblSetCulverts”>
  <control_set  unique_name="tblSetCulverts">
       <roles behavior = "SWAP">
       <roles behavior = "SWAP">
  <role  text=”upper”>
  <role  text="upper">
     <range>EQUALS 1</range>
     <range>EQUALS 1</range>
  </role>
  </role>
  <role  text = “lower”>
  <role  text = "lower">
     <range>EQUALS 1</range>
     <range>EQUALS 1</range>
  </role>
  </role>
         </roles>
         </roles>
         <column text=”Name”>
         <column text="Name">
  <edit_box    unique_name=”edtMyArcsName”
  <edit_box    unique_name="edtMyArcsName"
                       type=”text”>
                       type="text">
  </edit_box>
  </edit_box>
         </column>
         </column>
Line 1,738: Line 1,786:


{{XML entry
{{XML entry
| type      = Element
| name      = row
| name      = row
| info      = Typically you would only use row if you had a fixed table and wanted to display row text or to specify specific rows as read only.  Row tags are placed inside a [[SMS:Dynamic Model Interface Schema#Element < table >|< table >]].  
| info      = Typically you would only use row if you had a fixed table and wanted to display row text or to specify specific rows as read only.  Row tags are placed inside a [[SMS:Dynamic Model Interface Schema#Element < table >|< table >]].  
Line 1,744: Line 1,791:
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <text>|text]],  
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <text>|text]],  
[[SMS:Dynamic Model Interface Schema#Attribute <read_only>|read_only]]
[[SMS:Dynamic Model Interface Schema#Attribute <read_only>|read_only]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <optional>|optional]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], all elements starting with “custom_control”, [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <optional>|optional]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], all elements starting with "custom_control", [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element < table >|table]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element < table >|table]]
| example    = Row 1 is read only, row 2 isn’t
| example    = Row 1 is read only, row 2 isn’t
Line 1,750: Line 1,797:
  < table >
  < table >
         …
         …
     <row  text = “Row1” read_only></row>
     <row  text = "Row1" read_only></row>
     <row  text = “Row2”></row>
     <row  text = "Row2"></row>
  < /table >
  < /table >
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = separator
| name      = separator
| info      = Determines how to separate text that is being exported into a text file.
| info      = Determines how to separate text that is being exported into a text file.
Line 1,767: Line 1,813:


{{XML entry
{{XML entry
| type      = Element
| name      = simulation
| name      = simulation
| info      = The simulation object that represents what will run and be exported upon launching a model.  There can only be one per model.
| info      = The simulation object that represents what will run and be exported upon launching a model.  There can only be one per model.
Line 1,778: Line 1,823:


{{XML entry
{{XML entry
| type      = Element
| name      = snap
| name      = snap
| info      = Snaps the arc, point or polygon in a coverage to the underlying geometry (mesh, grid, etc) that is defined by the [[SMS:Dynamic Model Interface Schema#Element <declare_coverage>|<declare_coverage>]] bind_to attribute  
| info      = Snaps the arc, point or polygon in a coverage to the underlying geometry (mesh, grid, etc) that is defined by the [[SMS:Dynamic Model Interface Schema#Element <declare_coverage>|<declare_coverage>]] bind_to attribute  
Line 1,787: Line 1,831:
| example    = Snaps an arc boundary condition to the interior of the mesh when the arc type is Monitor Line and to the exterior when the arc is a Inlet-Q.
| example    = Snaps an arc boundary condition to the interior of the mesh when the arc type is Monitor Line and to the exterior when the arc is a Inlet-Q.


  <declare_coverage name= “Boudary Conditions” bind to =”MESH2D”>
  <declare_coverage name= "Boudary Conditions" bind to ="MESH2D">
     <arc_att>
     <arc_att>
         <menu_item double_click = "true" text = “Assign Linear BC”
         <menu_item double_click = "true" text = "Assign Linear BC"
                                 link_to = “Linear BC” </menu_item>
                                 link_to = "Linear BC" </menu_item>
             <snap>
             <snap>
           <snap_exterior>
           <snap_exterior>
Line 1,805: Line 1,849:


{{XML entry
{{XML entry
| type      = Element
| name      = snap_exterior
| name      = snap_exterior
| info      = Snaps the arc, point or polygon in a coverage to the closest exterior point, arc, or polygon of the underlying geometry.
| info      = Snaps the arc, point or polygon in a coverage to the closest exterior point, arc, or polygon of the underlying geometry.
Line 1,816: Line 1,859:


{{XML entry
{{XML entry
| type      = Element
| name      = snap_interior
| name      = snap_interior
| info      = Snaps the arc, point or polygon in a coverage to the closest interior point, arc, or polygon of the underlying geometry.
| info      = Snaps the arc, point or polygon in a coverage to the closest interior point, arc, or polygon of the underlying geometry.
Line 1,826: Line 1,868:
}}
}}


===T - Z===
===Elements T - Z===
{{XML entry
{{XML entry
| type      = Element
| name      = table
| name      = table
| info      = Table widget with columns and rows.  Will most likely have multiple column and row tags (version 3).  Using the attribute fixed_row_count  means that the user can’t add or delete rows.  Not using the fixed_row_count , an insert and delete button will be included at the bottom of the table.
| info      = Table widget with columns and rows.  Will most likely have multiple column and row tags (version 3).  Using the attribute fixed_row_count  means that the user can’t add or delete rows.  Not using the fixed_row_count , an insert and delete button will be included at the bottom of the table.
Line 1,841: Line 1,882:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]]
| example    = (version 3) Read only table with 2 columns and 3 rows.  The number of rows are fixed.
| example    = (version 3) Read only table with 2 columns and 3 rows.  The number of rows are fixed.
  < table unique_name = “myTable”    
  < table unique_name = "myTable"    
             read_only
             read_only
             fixed_row_count=”3”>
             fixed_row_count="3">
     <column  text = “hours”</column>
     <column  text = "hours"</column>
     <column  text = “minutes”</column>
     <column  text = "minutes"</column>
  </ table >
  </ table >
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = take_coverage
| name      = take_coverage
| info      = Represents a coverage that can be taken in the project explorer.
| info      = Represents a coverage that can be taken in the project explorer.
Line 1,861: Line 1,901:


{{XML entry
{{XML entry
| type      = Element
| name      = take_mesh2d
| name      = take_mesh2d
| info      = Represents a coverage that can be taken in the project explorer.
| info      = Represents a coverage that can be taken in the project explorer.
Line 1,872: Line 1,911:


{{XML entry
{{XML entry
| type      = Element
| name      = takes
| name      = takes
| info      = Represents what can be dragged under another object in the project explorer.  
| info      = Represents what can be dragged under another object in the project explorer.  
Line 1,905: Line 1,943:


{{XML entry
{{XML entry
| type      = Element
| name      = text_box
| name      = text_box
| info      = Widget that displays text that is not editable.  
| info      = Widget that displays text that is not editable.  
Line 1,913: Line 1,950:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
| example    =  
| example    =  
  <text_box  unique_name = “edtD50Units” alignH= “CENTER”      
  <text_box  unique_name = "edtD50Units" alignH= "CENTER"      
         text = “mm”>
         text = "mm">
  </text_box>
  </text_box>
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = text_size
| name      = text_size
| info      = Sets the point size of the text. Ranges from 8 to 20. Added in SMS 11.2.  
| info      = Sets the point size of the text. Ranges from 8 to 20. Added in SMS 11.2.  
Line 1,938: Line 1,974:


{{XML entry
{{XML entry
| type      = Element
| name      = text_style
| name      = text_style
| info      = Holds the style options for the text. Added in SMS 11.2.
| info      = Holds the style options for the text. Added in SMS 11.2.
Line 1,944: Line 1,979:
| attributes = bold, italic, strike_through, text_size, underline
| attributes = bold, italic, strike_through, text_size, underline
| children  = color, condition
| children  = color, condition
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <group>|group]], [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], all elements starting with “custom_control”, [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <options>|options]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <group>|group]], [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], all elements starting with "custom_control", [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <options>|options]]
| example    = This would bold the text when the value in the edit_box is less than 0.0.
| example    = This would bold the text when the value in the edit_box is less than 0.0.
  <edit_box>
  <edit_box>
   <unique_name>edtA</unique_name>
   <unique_name>edtA</unique_name>
   <default>1.0</default>
   <default>1.0</default>
   <text_style  bold  text_size=”12”>
   <text_style  bold  text_size="12">
       <condition>edtA LESS_THAN 0.0</condition>
       <condition>edtA LESS_THAN 0.0</condition>
   <text_style>
   <text_style>
Line 1,956: Line 1,991:


{{XML entry
{{XML entry
| type      = Element
| name      = title_format
| name      = title_format
| info      = This indicates what the title of an object in an h5 file is. Uses the standard printf and sprintf format ([www.cplusplus.com/reference/clibrary/cstdio/printf/ www.cplusplus.com/reference/clibrary/cstdio/printf/]). Works the same as [[SMS:Dynamic Model Interface Schema#Element <export_format>|export_format]].
| info      = This indicates what the title of an object in an h5 file is. Uses the standard printf and sprintf format ([www.cplusplus.com/reference/clibrary/cstdio/printf/ www.cplusplus.com/reference/clibrary/cstdio/printf/]). Works the same as [[SMS:Dynamic Model Interface Schema#Element <export_format>|export_format]].
Line 1,967: Line 2,001:


{{XML entry
{{XML entry
| type      = Element
| name      = unique_link_name
| name      = unique_link_name
| info      = A unique name given to a link when using link_to_xml. This is needed to identify the unique_name elements from the file, especially when a linked to XML file is used multiple times.  Hence, when using link_to_xml, this tag is required.  No spaces or punctuation are allowed in the name.   
| info      = A unique name given to a link when using link_to_xml. This is needed to identify the unique_name elements from the file, especially when a linked to XML file is used multiple times.  Hence, when using link_to_xml, this tag is required.  No spaces or punctuation are allowed in the name.   
Line 1,978: Line 2,011:


{{XML entry
{{XML entry
| type      = Element
| name      = update_text
| name      = update_text
| info      = Used to match the output text from a model to determine the progress amount.
| info      = Used to match the output text from a model to determine the progress amount.
Line 1,985: Line 2,017:
| children  = none
| children  = none
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <executable_progress_update>|executable_progress_update]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <executable_progress_update>|executable_progress_update]]
| example    = Lets say our model outputs “CASE 1 of 35” then “CASE 2 of 35” etc..  
| example    = Lets say our model outputs "CASE 1 of 35" then "CASE 2 of 35" etc..  


  <executable name=”My Model Main”</executable>
  <executable name="My Model Main"</executable>
     <executable_progress_update  amount="0"  max ="35">
     <executable_progress_update  amount="0"  max ="35">
         <update_text>"CASE %d of %d" #progress_amount, #progress_max       
         <update_text>"CASE %d of %d" #progress_amount, #progress_max       
Line 1,996: Line 2,028:


{{XML entry
{{XML entry
| type      = Element
| name      = use_coverage
| name      = use_coverage
| info      = Use a coverage that has previously been defined in the attribute type in <declare_coverage>
| info      = Use a coverage that has previously been defined in the attribute type in <declare_coverage>
Line 2,007: Line 2,038:


{{XML entry
{{XML entry
| type      = Element
| name      = use_file_def
| name      = use_file_def
| info      = A way to access file data that has been previously declared with <declare_file_def>.
| info      = A way to access file data that has been previously declared with <declare_file_def>.
Line 2,018: Line 2,048:


{{XML entry
{{XML entry
| type      = Element
| name      = use_parameter
| name      = use_parameter
| info      = A way to access file data that has been previously declared with <declare_parameter>.
| info      = A way to access file data that has been previously declared with <declare_parameter>.
Line 2,024: Line 2,053:
| attributes = none
| attributes = none
| children  = none
| children  = none
| used_by    = anything beginning with “process_each”, [[SMS:Dynamic Model Interface Schema#Element <card>|card]], [[SMS:Dynamic Model Interface Schema#Element <control_dataset>|control_dataset]]
| used_by    = anything beginning with "process_each", [[SMS:Dynamic Model Interface Schema#Element <card>|card]], [[SMS:Dynamic Model Interface Schema#Element <control_dataset>|control_dataset]]
| example    =  
| example    =  
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = x_column
| name      = x_column
| info      = Used to define the attributes in the x column such as text (heading).
| info      = Used to define the attributes in the x column such as text (heading).
Line 2,052: Line 2,080:


{{XML entry
{{XML entry
| type      = Element
| name      = xmdf_data
| name      = xmdf_data
| info      = Writes data to the XMDF file. The attributes rows, columns and layers indicate what information should be written for each row, column or layer respectively. By default, the attributes are set to #specified”.  If no attributes are set then each export_format will be assumed to be a new row. The attribute columns can only be set if the rows attribute is set. The attribute layers can only be set if both the rows attribute and the columns attribute is set. The datatype attribute can be set to “float”, “double”, “integer”, or “text”. If the datatype attribute is not set or is set to “text” then export_format can be used. Otherwise, only export can be used. If more than 1 dimension is used, then the datatype cannot be “text”. If 3 dimensions are used, then the datatype cannot be “integer”.  
| info      = Writes data to the XMDF file. The attributes rows, columns and layers indicate what information should be written for each row, column or layer respectively. By default, the attributes are set to "#specified".  If no attributes are set then each export_format will be assumed to be a new row. The attribute columns can only be set if the rows attribute is set. The attribute layers can only be set if both the rows attribute and the columns attribute is set. The datatype attribute can be set to "float", "double", "integer", or "text". If the datatype attribute is not set or is set to "text" then export_format can be used. Otherwise, only export can be used. If more than 1 dimension is used, then the datatype cannot be "text". If 3 dimensions are used, then the datatype cannot be "integer".  
| version    = 3
| version    = 3
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <datatype>|datatype]]
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <datatype>|datatype]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <export_format>|export_format]], [[SMS:Dynamic Model Interface Schema#Element <title_format>|title_format]], [[SMS:Dynamic Model Interface Schema#Element <export>|export]]
| children  = [[SMS:Dynamic Model Interface Schema#Element <export_format>|export_format]], [[SMS:Dynamic Model Interface Schema#Element <title_format>|title_format]], [[SMS:Dynamic Model Interface Schema#Element <export>|export]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <xmdf_group>|xmdf_group]], file_def, and anything beginning with “process_each”.
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <xmdf_group>|xmdf_group]], file_def, and anything beginning with "process_each".
| example    = This writes out 6 different widgets’ values, one on each row.
| example    = This writes out 6 different widgets’ values, one on each row.
  <xmdf_data datatype = “text”>
  <xmdf_data datatype = "text">
   <export_format>"%s", widget1</export_format>
   <export_format>"%s", widget1</export_format>
   <export_format>"%s", widget2</export_format>
   <export_format>"%s", widget2</export_format>
Line 2,070: Line 2,097:


This writes out a table with each row being a different timestep and each column a different point. Each export would be written to different layers.
This writes out a table with each row being a different timestep and each column a different point. Each export would be written to different layers.
  <xmdf_data rows = "#timestep" columns = "#point" datatype = “double”>
  <xmdf_data rows = "#timestep" columns = "#point" datatype = "double">
   <export>#component1</export>
   <export>#component1</export>
   <export>#component2</export>
   <export>#component2</export>
Line 2,077: Line 2,104:


{{XML entry
{{XML entry
| type      = Element
| name      = xmdf_dataset
| name      = xmdf_dataset
| info      = Writes out all of the data of a dataset in an SMS friendly format to an xmdf file. The attribute null_value is optional. If used, it specifies a numeric value that will be treated by the model as inactive. By default, SMS will write an activity array. The attribute location specifies where data should be taken from. The attribute widget specifies to only write the dataset referenced by the named widget. If no title_format is used, then the name of the dataset will be used.
| info      = Writes out all of the data of a dataset in an SMS friendly format to an xmdf file. The attribute null_value is optional. If used, it specifies a numeric value that will be treated by the model as inactive. By default, SMS will write an activity array. The attribute location specifies where data should be taken from. The attribute widget specifies to only write the dataset referenced by the named widget. If no title_format is used, then the name of the dataset will be used.
Line 2,087: Line 2,113:
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <xmdf_group>|xmdf_group]], [[SMS:Dynamic Model Interface Schema#Element <xmdf_geometry>|xmdf_geometry]], [[SMS:Dynamic Model Interface Schema#Element <process_each_coverage>|process_each_coverage]].
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <xmdf_group>|xmdf_group]], [[SMS:Dynamic Model Interface Schema#Element <xmdf_geometry>|xmdf_geometry]], [[SMS:Dynamic Model Interface Schema#Element <process_each_coverage>|process_each_coverage]].
| example    = This writes out the hardbottom dataset as specified by the widget edtHardBottomWidget that exists in some dialog. Any value that is inactive is written as -999.0.
| example    = This writes out the hardbottom dataset as specified by the widget edtHardBottomWidget that exists in some dialog. Any value that is inactive is written as -999.0.
  <xmdf_dataset widget = “edtHardBottomWidget” location = “all” null_value = -999.0”>
  <xmdf_dataset widget = "edtHardBottomWidget" location = "all" null_value = "-999.0">
   <title_format>”Hardbottom”</title_format>
   <title_format>"Hardbottom"</title_format>
  </xmdf_dataset>
  </xmdf_dataset>
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = xmdf_dimension
| name      = xmdf_dimension
| info      =  
| info      =  
Line 2,104: Line 2,129:


{{XML entry
{{XML entry
| type      = Element
| name      = xmdf_geometry
| name      = xmdf_geometry
| info      = Writes a geometric object in an SMS friendly format to an XMDF file. Different geometric types will be written differently from each other. If no title_format is used, then the name of the geometry will be used.
| info      = Writes a geometric object in an SMS friendly format to an XMDF file. Different geometric types will be written differently from each other. If no title_format is used, then the name of the geometry will be used.
Line 2,115: Line 2,139:


{{XML entry
{{XML entry
| type      = Element
| name      = xmdf_group
| name      = xmdf_group
| info      = Writes an XMDF group to the xmdf file. A title_format must be used. The group_type attribute must be used.
| info      = Writes an XMDF group to the xmdf file. A title_format must be used. The group_type attribute must be used.
| version    = 3
| version    = 3
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <group_type>|group_type]]
| attributes = [[SMS:Dynamic Model Interface Schema#Attribute <group_type>|group_type]]
| children  = xmdf_group, [[SMS:Dynamic Model Interface Schema#Element <xmdf_geometry>|xmdf_geometry]], [[SMS:Dynamic Model Interface Schema#Element <xmdf_dataset>|xmdf_dataset]],  [[SMS:Dynamic Model Interface Schema#Element <xmdf_data>|xmdf_data]], [[SMS:Dynamic Model Interface Schema#Element <title_format>|title_format]], and anything beginning with “process_each”.
| children  = xmdf_group, [[SMS:Dynamic Model Interface Schema#Element <xmdf_geometry>|xmdf_geometry]], [[SMS:Dynamic Model Interface Schema#Element <xmdf_dataset>|xmdf_dataset]],  [[SMS:Dynamic Model Interface Schema#Element <xmdf_data>|xmdf_data]], [[SMS:Dynamic Model Interface Schema#Element <title_format>|title_format]], and anything beginning with "process_each".
| used_by    = file_def, xmdf_group, [[SMS:Dynamic Model Interface Schema#Element <xmdf_geometry>|xmdf_geometry]], [[SMS:Dynamic Model Interface Schema#Element <xmdf_dataset>|xmdf_dataset]], and anything beginning with “process_each”.
| used_by    = file_def, xmdf_group, [[SMS:Dynamic Model Interface Schema#Element <xmdf_geometry>|xmdf_geometry]], [[SMS:Dynamic Model Interface Schema#Element <xmdf_dataset>|xmdf_dataset]], and anything beginning with "process_each".
| example    =  
| example    =  
}}
}}


{{XML entry
{{XML entry
| type      = Element
| name      = y_column
| name      = y_column
| info      = Used to define the attributes in the y column such as text (heading).
| info      = Used to define the attributes in the y column such as text (heading).
Line 2,137: Line 2,159:


==Attributes==
==Attributes==
=====Attribute''<alignH>''=====
===Attributes A-C===
{|class="wikitable"
{{XML attributes
|-
| name      = alignH
|width="70"|'''Info'''
| info      = Align text horizontally in a text box.  
|width="530"|Align text horizontally in a text box.
| values    = bottom, top, center
|-
| versions  = 1
|'''Values'''
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]]
|
}}
*BOTTOM
*TOP
*Center
|-
|'''Versions'''
|1
|-
|'''Used by'''
|[[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]]
|}


=====Attribute''<alignV>''=====
{{XML attributes
{|class="wikitable"
| name      = alignV
|-
| info      = Align text vertically in a text box.  
|width="70"|'''Info'''
| values    = bottom, top, center
|width="530"|Align text vertically in a text box.  
| versions  = 1
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]]
|'''Values'''
}}
|
*Bottom
*Top
*Center
|-
|'''Versions'''
|1
|-
|'''Used by'''
|[[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]]
|}


=====Attribute ''<amount>''=====
{{XML attributes
{|class="wikitable"
| name      = amount
|-
| info      =  
|width="70"|'''Info'''
| values    = integer
|width="530"|
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <execute_progress_update>|execute_progress_update]]
|'''Values'''
}}
| integer
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <execute_progress_update>|execute_progress_update]]
|}


=====Attribute ''<behavior>''=====
{{XML attributes
{|class="wikitable"
| name      = behavior
|-
| info      = When a user changes a role, you can define behaviors that automatically update the roles.
|width="70"|'''Info'''
| values    = ''None'': no enforcement of rules in the dialog
|width="530"|When a user changes a role, you can define behaviors that automatically update the roles.
|-
|'''Values'''
|width="530"|
''None'': no enforcement of rules in the dialog


''Swap'':  all assigned up front.  When some object is being assigned a role and is there are already a max number of objects assigned to the role, then any objects that had that role will be switched to the old role of the object being asgined until we surpass the maximum amount of that role, then unassigned.
''Swap'':  all assigned up front.  When some object is being assigned a role and is there are already a max number of objects assigned to the role, then any objects that had that role will be switched to the old role of the object being asgined until we surpass the maximum amount of that role, then unassigned.
Line 2,205: Line 2,193:
''Max_hide'': Don’t allow the role to show up in the combo box to be assigned to a "object" if the max has been reached for that role.
''Max_hide'': Don’t allow the role to show up in the combo box to be assigned to a "object" if the max has been reached for that role.


''Swap_max_default'': (not implemented yet) Enforce max with default is like swap, but instead of the old option, it changes it to the default or unassigned (if no default provided) value. Chooses the first or last “object” of the role it encounters to change.
''Swap_max_default'': (not implemented yet) Enforce max with default is like swap, but instead of the old option, it changes it to the default or unassigned (if no default provided) value. Chooses the first or last "object" of the role it encounters to change.
| versions  = 3
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <roles>|roles]]
}}
 
{{XML attributes
| name      = bind_to
| info      = Binds a coverage to a mesh, or grid
| values    = MEHS2D, CGRID
| versions  = 3
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <declare_coverage>|declare_coverage]]
}}


|-
{{XML attributes
|'''Versions'''
| name      = blue
| 3
| info      = A color. Ranges from 0 to 255. Added in SMS 11.2. See also green and red.
|-
| values    = integer (0 to 255)
|'''Used by'''
| versions  = 1
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <roles>|roles]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <color>|color]]
|}
}}


=====Attribute ''<bind_to>''=====
{{XML attributes
{|class="wikitable"
| name      = bold
|-
| info      = Sets the text to be bolded when this attribute is used. Added in SMS 11.2.
|width="70"|'''Info'''
| values    = none
|width="530"|Binds a coverage to a mesh, or grid
| versions  = 1
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
|'''Values'''
}}
| MEHS2D, CGRID
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <declare_coverage>|declare_coverage]]
|}


=====Attribute ''<blue>'', ''<green>'', ''<red>''=====
{{XML attributes
{|class="wikitable"
| name      = columns
|-
| info      = Represents a column in the H5 file that we are mapping to
|width="70"|'''Info'''
| values    = #timestep, #point, #arc, #polygon, #coverage, #material
|width="530"|A color. Ranges from 0 to 255. Added in SMS 11.2.
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <xmdf_data>|xmdf_data]]
|'''Values'''
}}
|integer (0 to 255)
|-
|'''Version'''
|1
|-
|'''Used by'''
|[[SMS:Dynamic Model Interface Schema#Element <color>|color]]
|}


=====Attribute ''<bold>''=====
{{XML attributes
{|class="wikitable"
| name      = corner_skip
|-
| info      = Skip corners when exporting neighbors
|width="70"|'''Info'''
| values    = true, false
|width="530"|Sets the text to be bolded when this attribute is used. Added in SMS 11.2.
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
|'''Values'''
}}
| none
|-
|'''Version'''
|1
|-
|'''Used by'''
|[[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
|}


=====Attribute ''<columns>''=====
{{XML attributes
{|class="wikitable"
| name      = create_file
|-
| info      = If attribute is specified, then create_file is true
|width="70"|'''Info'''
| values    = none
|width="530"|Represents a column in the H5 file that we are mapping to
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_file_selector>|control_file_selector]]
|'''Values'''
}}
| #timestep, #point, #arc, #polygon, #coverage, #material
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <xmdf_data>|xmdf_data]]
|}


=====Attribute ''<corner_skip>''=====
{{XML attributes
{|class="wikitable"
| name      = dataset_type
|-
| info      = Specify the dataset type as scalar or vector.  Default is scalar.
|width="70"|'''Info'''
| values    = scalar, vector
|width="530"|Skip corners when exporting neighbors
| versions  = 1
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_dataset>|control_dataset]]
|'''Values'''
}}
| true, false
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
|}


=====Attribute ''<create_file>''=====
{{XML attributes
{|class="wikitable"
| name      = dataset_widget
|-
| info      = When exporting points from a dataset, the attribute identifies the dataset widget being used (contains the selected dataset).
|width="70"|'''Info'''
| values    = Name of the dataset_widget
|width="530"|If attribute is specified, then create_file is true
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <process_each_point>|process_each_point]]
|'''Values'''
}}
| None
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <control_file_selector>|control_file_selector]]
|}


=====Attribute ''<dataset_type>''=====
{{XML attributes
{|class="wikitable"
| name      = datatype
|-
| info      =  
|width="70"|'''Info'''
| values    = float, double, integer, text
|width="530"| Specify the dataset type as scalar or vector.  Default is scalar.
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <xmdf_data>|xmdf_data]]
|'''Values'''
}}
|"scalar", "vector"
|-
|'''Version'''
| 1
|-
|'''Used by'''
| [[SMS:Dynamic Model Interface Schema#Element <control_dataset>|control_dataset]]
|}


=====Attribute ''<dataset_widget>''=====
{{XML attributes
{|class="wikitable"
| name      = default
|-
| info      = Sets the initial default value of a widget. Can also be used to state the default combo-box option.
|width="70"|'''Info'''
| values    =  
|width="530"|When exporting points from a dataset, the attribute identifies the dataset widget being used (contains the selected dataset)
''edit_box'' or any element that begins with ''custom_control'': double<br/>
|-
''check_box'': checked, unchecked<br/>
|'''Values'''
''combo_box'': no values or empty string<br/>
| Name of the dataset_widget
''export_optional'': true, false
|-
| versions  = 1
|'''Versions'''
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <option>|option]], any element that begins with "control" ("custom_control" in version 1), [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <export_optional>|export_optional]]
| 3
}}
|-
 
|'''Used by'''
{{XML attributes
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <process_each_point>|process_each_point]]
| name      = default_executable_name32
|}
| info      = Sets the initial default file name for the 32-bit executable.
| values    = text
| versions  = 3
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <executable>|executable]]
}}


=====Attribute ''<datatype>''=====
{{XML attributes
{|class="wikitable"
| name      = default_executable_name64
|-
| info      = Sets the initial default file name for the 64-bit executable.
|width="70"|'''Info'''
| values    = text
|width="530"|
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <executable>|executable]]
|'''Values'''
}}
| "float", "double", "integer", "text"
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <xmdf_data>|xmdf_data]]
|}


=====Attribute''<default>''=====
{{XML attributes
{|class="wikitable"
| name      = description_text
|-
| info      = A detailed description of why a model check failed. This text is displayed to the user.
|width="70"|'''Info'''
| values     = string
|width="530"| Sets the initial default value of a widget. Can also be used to state the default combo-box option.
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <model_check>|model_check]]
|'''Values'''
}}
|
*edit_box or any element that begins with “custom_control”:
double
*check_box:
"checked"<br/>
"unchecked"
*combo_box:
no values or empty string
*export_optional:
“true”<br/>
“false”
|-
|'''Version'''
| 1
|-
|'''Used by'''
|width="530"|[[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <option>|option]], any element that begins with “control” (“custom_control” in version 1), [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <export_optional>|export_optional]]
|}


=====Attribute ''<default_executable_name32>''=====
{{XML attributes
{|class="wikitable"
| name      = dim
|-
| info      = Specifies that when the dependency is false, the widget should be dimmed, not hidden.
|width="70"|'''Info'''
| values    = none
|width="530"|Sets the initial default file name for the 32-bit executable.
| versions  = 1
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]]
|'''Values'''
}}
| text
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <executable>|executable]]
|}


=====Attribute ''<default_executable_name64>''=====
{{XML attributes
{|class="wikitable"
| name      = dimension
|-
| info      = Specifies values for rows, columns and layers.
|width="70"|'''Info'''
| values    = rows, columns, layers
|width="530"|Sets the initial default file name for the 64-bit executable.
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <xmdf_dimension>|xmdf_dimension]]
|'''Values'''
}}
| text
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <executable>|executable]]
|}


=====Attribute ''<description_text>''=====
{{XML attributes
{|class="wikitable"
| name      = display
|-
| info      = This is used to describe how the dialog should display.
|width="70"|'''Info'''
|width="530"|A detailed description of why a model check failed.  This text is displayed to the user.
|-
|'''Values'''
| string
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <model_check>|model_check]]
|}


=====Attribute ''<dim>''=====
''flex'' is the default. In this mode, there is a tree on the left hand side of the dialog. Clicking on an item in the tree will display that portion of the tree along with any child items below the clicked item.  Other items will be hidden on the right hand side.
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Specifies that when the dependency is false, the widget should be dimmed, not hidden.
|-
|'''Values'''
| none
|-
|'''Versions'''
| 1
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]]
|}


=====Attribute ''<dimension>''=====
''full'' will show a tree on the left hand side of the dialog. Clicking on an item in the tree will move the scroll bars on the right hand side to make the item visible. All items that are not disabled due to dependencies are shown on the right hand side of the dialog in this mode.
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Specifies values for rows, columns and layers.
|-
|'''Values'''
| "rows", "columns", "layers"
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <xmdf_dimension>|xmdf_dimension]]
|}


=====Attribute ''<display>''=====
''no_nav'' will have no left hand side tree.  Instead, all items that are not disabled due to dependencies are shown in this mode. Added in SMS 11.2.
{|class="wikitable"
| values    = flex, full, no_nav
|-
| versions  = 1
|width="70"|'''Info'''
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <declare_page>|declare_page]]
|width="530"|This is used to describe how the dialog should display. 
}}


FLEX is the default. In this mode, there is a tree on the left hand side of the dialog. Clicking on an item in the tree will display that portion of the tree along with any child items below the clicked itemOther items will be hidden on the right hand side.
{{XML attributes
| name      = display_options_hide
| info      = Don’t show a specific combo-box option in the display option dialog of SMS. This only applies to <combo_box> ‘s that have included the <display_options> elementDefault value is false.
| values    = true, false
| versions  = 3
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <option>|option]]
}}


FULL will show a tree on the left hand side of the dialog. Clicking on an item in the tree will move the scroll bars on the right hand side to make the item visible. All items that are not disabled due to dependencies are shown on the right hand side of the dialog in this mode.
{{XML attributes
| name      = double_click
| info      = The double_click attribute (if true) indicates that this is the menu item to be launched on a double click event.
| values    = true, false
| versions  = 2
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <menu_item>|menu_item]]
}}


NO_NAV will have no left hand side tree.  Instead, all items that are not disabled due to dependencies are shown in this mode. Added in SMS 11.2.
===Attributes E-L===
|-
{{XML attributes
|'''Values'''
| name      = executable_order
| FLEX, FULL, NO_NAV
| info      = Defines the order in which this executable should run relative to other executables in the same simulation.
|-
| values    = integer ≥ 1
|'''Versions'''
| versions  = 2
| 1
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <executable>|executable]]
|-
}}
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <declare_page>|declare_page]]
|}


=====Attribute ''<display_options_hide>''=====
{{XML attributes
{|class="wikitable"
| name      = feature
|-
| info      = Determine whether to select points, arcs or polygons (poly).
|width="70"|'''Info'''
| values    = point, arc, poly
|width="530"| Don’t show a specific combo-box option in the display option dialog of SMS.  This only applies to <combo_box> ‘s that have included the <display_options> element.  Default value is false.
| versions  = 2
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_feature_selector>|control_feature_selector]], [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
|'''Values'''
}}
| <option display_options_hide = “true”>
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <option>|option]]
|}


=====Attribute ''<double_click>''=====
{{XML attributes
{|class="wikitable"
| name      = fix_text
|-
| info      = A brief summary of what steps to take to fix a model check failure.  This text is displayed to the user.
|width="70"|'''Info'''
| values    = string
|width="530"| The double_click attribute (if true) indicates that this is the menu item to be launched on a double click event.
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <model_check>|model_check]]
|'''Values'''
}}
| true, false
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <menu_item>|menu_item]]
|}


=====Attribute ''<executable_order>''=====
{{XML attributes
{|class="wikitable"
| name      = file_type
|-
| info      = Specifies a file type of <declare_file_def> defines the file type.
|width="70"|'''Info'''
| values    = CARD_ASCII, SEQUENTIAL_ASCII, SEQUENTIAL_BINARY, XMDF
|width="530"| Defines the order in which this executable should run relative to other executables in the same simulation.
| versions  = 2
|-
| used_by    = declare_file_def, [[SMS:Dynamic Model Interface Schema#Element <section>|section]]
|'''Values'''
}}
| interger starting at 1
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <executable>|executable]]
|}


=====Attribute ''<feature>''=====
{{XML attributes
{|class="wikitable"
| name      = filter
|-
| info      = When selecting a file, used to filter the available files by the extension type.  The filter tag contains two parts.  The first part is the text describing the filter that gets displayed to the user.  The second part is a pair of parentheses that contains the actual filter. For example: Cmcards file (.cmcards)
|width="70"|'''Info'''
| values    = string (string)
|width="530"| Determine whether to select points, arcs or polys
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_file_selector>|control_file_selector]]
|'''Values'''
}}
| point, arc, poly
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <control_feature_selector>|control_feature_selector]], [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
|}


=====Attribute ''<fix_text>''=====
{{XML attributes
{|class="wikitable"
| name      = flags
|-
| info      = Flags are optional, and are used to modify the behavior/appearance of the control_curve.  Only 1 flag is currently defined:  XY_USEDATEWhen this flag is set, the x column becomes a date/time calendar.
|width="70"|'''Info'''
| values    = XY_USEDATE
|width="530"| A brief summary of what steps to take to fix a model check failureThis text is displayed to the user.
| versions  = 2
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_curve>|control_curve]]
|'''Values'''
}}
| string
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <model_check>|model_check]]
|}


=====Attribute ''<file_type>''=====
{{XML attributes
{|class="wikitable"
| name      = footer
|-
| info      = Exported text inside a table that is placed at the end.
|width="70"|'''Info'''
| values    = string
|width="530"|Specifies a file type of <declare_file_def> defines the file type.
| versions  = 2
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <export_table>|export_table]], [[SMS:Dynamic Model Interface Schema#Element <export_each_row>|export_each_row]], [[SMS:Dynamic Model Interface Schema#Element <export_column>|export_column]]
|'''Values'''
}}
| "CARD_ASCII", "SEQUENTIAL_ASCII", "SEQUENTIAL_BINARY", "XMDF"
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| declare_file_def, [[SMS:Dynamic Model Interface Schema#Element <section>|section]]
|}


=====Attribute ''<filter>''=====
{{XML attributes
{|class="wikitable"
| name      = geometry
|-
| info      = The default behavior is to only allow geometric objects that are contained under a simulation to be a candidate for selectionOtherwise "all" geometries are candidates.
|width="70"|'''Info'''
| values    = all
|width="530"|When selecting a file, used to filter the available files by the extension type.  The filter tag contains two parts.  The first part is the text describing the filter that gets displayed to the userThe second part is a pair of parentheses that contains the actual filter.
| versions   = 2
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_dataset>|control_dataset]]
|'''Values'''
}}
| string “(“string “)”   ex. Cmcards file (.cmcards)
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <control_file_selector>|control_file_selector]]
|}


=====Attribute ''<flags>''=====
{{XML attributes
{|class="wikitable"
| name      = green
|-
| info      = A color. Ranges from 0 to 255. Added in SMS 11.2. See also blue and red.
|width="70"|'''Info'''
| values    = integer (0 to 255)
|width="530"|Flags are optional, and are used to modify the behavior/appearance of the control_curve. Only 1 flag is currently defined:  XY_USEDATE. When this flag is set, the x column becomes a date/time calendar.
| versions  = 1
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <color>|color]]
|'''Values'''
}}
| "XY_USEDATE"
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <control_curve>|control_curve]]
|}


=====Attribute ''<footer>''=====
{{XML attributes
{|class="wikitable"
| name      = header
|-
| info      = Exported text inside a table that is placed at the beginning.
|width="70"|'''Info'''
| values    = string  
|width="530"|Exported text inside a table that is placed at the end
| versions  = 1
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <export_table>|export_table]], [[SMS:Dynamic Model Interface Schema#Element <export_each_row>|export_each_row]], [[SMS:Dynamic Model Interface Schema#Element <export_column>|export_column]]
|'''Values'''
}}
| string  
|-
|'''Versions'''
| 1
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <export_table>|export_table]], [[SMS:Dynamic Model Interface Schema#Element <export_each_row>|export_each_row]], [[SMS:Dynamic Model Interface Schema#Element <export_column>|export_column]]
|}


=====Attribute ''<geometry>''=====
{{XML attributes
{|class="wikitable"
| name      = help_button_url
|-
| info      = Provides online help when the help button is clicked. Loads the specified url in a web browser. Example: help_button_url="www.aquaveo.com"
|width="70"|'''Info'''
| values    = string
|width="530"|The default behavior is to only allow geometric objects that are contained under a simulation to be a candidate for selection. Otherwise “all” geometries are candidates.
| versions  = 2
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <declare_dialog>|declare_dialog]]
|'''Values'''
}}
| all
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <control_dataset>|control_dataset]]
|}


=====Attribute ''<header>''=====
{{XML attributes
{|class="wikitable"
| name      = help_button_wiki
|-
| info      = Provides online help when the help button is clicked.  Loads the specified url in a web browser. Example: help_button_wiki="DynSrhModelControl"
|width="70"|'''Info'''
| values    = string  
|width="530"|Exported text inside a table that is placed at the beginning
| versions  = 2
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <declare_dialog>|declare_dialog]]
|'''Values'''
}}
| string  
 
|-
{{XML attributes
|'''Versions'''
| name      = increment
| 1
| info      = An increment values.  Used Increment from the min time to the max time, using the increment.
|-
| values    = Integer ≥ 1
|'''Used by'''
| versions  = 2
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <export_table>|export_table]], [[SMS:Dynamic Model Interface Schema#Element <export_each_row>|export_each_row]], [[SMS:Dynamic Model Interface Schema#Element <export_column>|export_column]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_set>|control_set]]
|}
}}


=====Attribute ''<help_button_url>''=====
{{XML attributes
{|class="wikitable"
| name      = interior_polygon
|-
| info      = Only used for polygons when finding neighbors. Specify the polygon preference.
|width="70"|'''Info'''
| values    = interior_first, exterior_first, interior_only, exterior_only
|width="530"|Provides online help when the help button is clicked. Loads the specified url in a web browser.
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
|'''Values'''
}}
| string
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <declare_dialog>|declare_dialog]]
|-
|'''Example'''
|
<declare_dialog  name=”Model Control”
                help_button_url=”www.aquaveo.com”>
      …
</declare_dialog>
|}


=====Attribute ''<help_button_wiki>''=====
{{XML attributes
{|class="wikitable"
| name      = italic
|-
| info      = Sets the text to be italicized when the element is specified. Added in SMS 11.2.
|width="70"|'''Info'''
| values    = none
|width="530"|Provides online help when the help button is clicked. Loads the specified url in a web browser.
| versions  = 1
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
|'''Values'''
}}
| string
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <declare_dialog>|declare_dialog]]
|-
|'''Example'''
|
<dialog  name=”Model Control”
    help_button_wiki=”DynSrhModelControl”>
      …
</dialog>
|}


=====Attribute ''<increment>''=====
{{XML attributes
{|class="wikitable"
| name      = i_order
|-
| info      = Start at min i and go to max.  Only used by cartesian grids and process_each_neighbor on quad trees.
|width="70"|'''Info'''
| values    = ascending, descending
|width="530"|An increment values.  Used Increment from the min time to the max time, using the increment
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <process_each_arc>|process_each_arc]], [[SMS:Dynamic Model Interface Schema#Element <process_each_coverage>|process_each_coverage]], [[SMS:Dynamic Model Interface Schema#Element <process_each_material>|process_each_material]], [[SMS:Dynamic Model Interface Schema#Element <process_each_point>|process_each_point]], [[SMS:Dynamic Model Interface Schema#Element <process_each_polygon>|process_each_polygon]], [[SMS:Dynamic Model Interface Schema#Element <process_each_row>|process_each_row]]
|'''Values'''
}}
| positive integer


1 : default
{{XML attributes
|-
| name      = j_order
|'''Versions'''
| info      = Start at min j and go to max.  Only used by cartesian grids and process_each_neighbor on quad trees.
| 2
| values    = ascending, descending
|-
| versions  = 3
|'''Used by'''
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <process_each_arc>|process_each_arc]], [[SMS:Dynamic Model Interface Schema#Element <process_each_coverage>|process_each_coverage]], [[SMS:Dynamic Model Interface Schema#Element <process_each_material>|process_each_material]], [[SMS:Dynamic Model Interface Schema#Element <process_each_point>|process_each_point]], [[SMS:Dynamic Model Interface Schema#Element <process_each_polygon>|process_each_polygon]], [[SMS:Dynamic Model Interface Schema#Element <process_each_row>|process_each_row]]
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <control_set>|control_set]]
}}
|}


=====Attribute ''<interior_polygon>''=====
{{XML attributes
{|class="wikitable"
| name      = layers
|-
| info      = Represents a layer in the H5 file to which we are mapping.
|width="70"|'''Info'''
| values    = #timestep, #point, #arc, #polygon, #coverage, #material
|width="530"|Only used for polygons when finding neighbors. Specify the polygon preference.
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <xmdf_data>|xmdf_data]]
|'''Values'''
}}
| “interior_first”, “exterior_first”, “interior_only”, “exterior_only”
 
|-
{{XML attributes
|'''Versions'''
| name      = location
| 3
| info      = The location from which we will be getting dataset values.
|-
| values    = TBD
|'''Used by'''
| versions  = 3
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <xmdf_dataset>|xmdf_dataset]]
|}
}}


=====Attribute ''<italic>''=====
===Attributes M-S===
{|class="wikitable"
{{XML attributes
|-
| name      = max
|width="70"|'''Info'''
| info      = A max value. The default is 2.147 billion.
|width="530"|Sets the text to be italicized when the element is specified. Added in SMS 11.2.
| values    = Integer ≥ 1
|-
| versions  = 2
|'''Values'''
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_set>|control_set]],  [[SMS:Dynamic Model Interface Schema#Element <execute_progress_update>|execute_progress_update]]
|none
}}
|-
|'''Version'''
|1
|-
|'''Used by'''
|[[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
|}


=====Attribute ''<i_order>''=====
{{XML attributes
{|class="wikitable"
| name      = max_row_count
|-
| info      = Used to set the maximum number of rows allowed in a table or curve.
|width="70"|'''Info'''
| values    = integer
|width="530"|Start at min i and go to max.  Only used by cartesian grids and process_each_neighbor on quad trees.
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element < table >|table]], [[SMS:Dynamic Model Interface Schema#Element <control_curve>|control_curve]]
|'''Values'''
}}
| “ascending”, “descending”
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <process_each_arc>|process_each_arc]], [[SMS:Dynamic Model Interface Schema#Element <process_each_coverage>|process_each_coverage]], [[SMS:Dynamic Model Interface Schema#Element <process_each_material>|process_each_material]], [[SMS:Dynamic Model Interface Schema#Element <process_each_point>|process_each_point]], [[SMS:Dynamic Model Interface Schema#Element <process_each_polygon>|process_each_polygon]], [[SMS:Dynamic Model Interface Schema#Element <process_each_row>|process_each_row]]
|}


=====Attribute ''<j_order>''=====
{{XML attributes
{|class="wikitable"
| name      = min
|-
| info      = A minimum value. The default is 0 (zero).
|width="70"|'''Info'''
| values    = Integer ≥ 1
|width="530"|Start at min j and go to max. Only used by cartesian grids and process_each_neighbor on quad trees.
| versions  = 2
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_set>|control_set]]
|'''Values'''
}}
| “ascending”, “descending”
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <process_each_arc>|process_each_arc]], [[SMS:Dynamic Model Interface Schema#Element <process_each_coverage>|process_each_coverage]], [[SMS:Dynamic Model Interface Schema#Element <process_each_material>|process_each_material]], [[SMS:Dynamic Model Interface Schema#Element <process_each_point>|process_each_point]], [[SMS:Dynamic Model Interface Schema#Element <process_each_polygon>|process_each_polygon]], [[SMS:Dynamic Model Interface Schema#Element <process_each_row>|process_each_row]]
|}


=====Attribute ''<layers>''=====
{{XML attributes
{|class="wikitable"
| name      = model
|-
| info      = Specify the model name of the executable
|width="70"|'''Info'''
| values    = string
|width="530"|Represents a layer in the H5 file that we are mapping to
| versions  = 2
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_executable>|control_executable]]
|'''Values'''
}}
| “#timestep”, “#point”, “#arc”, “#polygon”, “#coverage”, “#material”
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <xmdf_data>|xmdf_data]]
|}


=====Attribute ''<location>''=====
{{XML attributes
{|class="wikitable"
| name      = name
|-
| info      = Specify a name.  When used by dialog this is required.
|width="70"|'''Info'''
| values    = string
|width="530"|The location from which we will be getting dataset values
| versions  = 3
|-
| used_by    = declare_file_def, [[SMS:Dynamic Model Interface Schema#Element <declare_dialog>|declare_dialog]], [[SMS:Dynamic Model Interface Schema#Element <model>|model]], [[SMS:Dynamic Model Interface Schema#Element <control_dataset>|control_dataset]], [[SMS:Dynamic Model Interface Schema#Element <declare_coverag>|declare_coverage]]
|'''Values'''
}}
|TBD
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <xmdf_dataset>|xmdf_dataset]]
|}


=====Attribute ''<max>''=====
{{XML attributes
{|class="wikitable"
| name      = neighbor_per_edge
|-
| info      = Minimum number of neighbors in any direction. The default value is 0 (zero).
|width="70"|'''Info'''
| values    = integer
|width="530"|A max value.  Default is 2.147 billion.
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
|'''Values'''
}}
|positive integer


2.147 billion : default
{{XML attributes
|-
| name      = null_id
|'''Versions'''
| info      = Integer for an id of a neighbor not found
| 2
| values    = integer
|-
| versions  = 3
|'''Used by'''
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <control_set>|control_set]],  [[SMS:Dynamic Model Interface Schema#Element <execute_progress_update>|execute_progress_update]]
}}
|}


=====Attribute ''<max_row_count>''=====
{{XML attributes
{|class="wikitable"
| name      = null_value
|-
| info      = The null_value for the dataset.
|width="70"|'''Info'''
| values    = any integer, any double
|width="530"|Used to set the maximum number of rows allowed in a table or curve.
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <xmdf_dataset>|xmdf_dataset]]
|'''Values'''
}}
| integer
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element < table >|table]], [[SMS:Dynamic Model Interface Schema#Element <control_curve>|control_curve]]
|}


=====Attribute ''<min>''=====
{{XML attributes
{|class="wikitable"
| name      = optional
|-
| info      = Placed inside widgets to suppress a warning message from being displayed if the widgets data is empty.  By default, data associated with a widget is required.  If the <optional> tag is included and the widget’s data is empty, a warning message won’t be displayed.
|width="70"|'''Info'''
| values    = none
|width="530"|A minimim value.  Default is 0.
| versions  = 2
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], [[SMS:Dynamic Model Interface Schema#Element < table >|table]], any element that starts with "custom_control", [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]]
|'''Values'''
}}
|positive integer


0: default
{{XML attributes
|-
| name      = order
|'''Versions'''
| info      = The way spatial entity objects are to be sorted before iterating. Currently only available for Cartesian grids and quadtrees (process_each_neighbor).
| 2
| values    = clockwise, counter_clockwise, ij, ji
|-
| versions  = 3
|'''Used by'''
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <process_each_arc>|process_each_arc]], [[SMS:Dynamic Model Interface Schema#Element <process_each_material>|process_each_material]], [[SMS:Dynamic Model Interface Schema#Element <process_each_point>|process_each_point]], [[SMS:Dynamic Model Interface Schema#Element <process_each_polygon>|process_each_polygon]], [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <control_set>|control_set]]
}}
|}


=====Attribute ''<model>''=====
{{XML attributes
{|class="wikitable"
| name      = problem_text
|-
| info      = A brief summary of why a model check failed.  This text is displayed to the user.
|width="70"|'''Info'''
| values    = string
|width="530"|Specify the model name of the executable
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <model_check>|model_check]]
|'''Values'''
}}
|string
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <control_executable>|control_executable]]
|}


=====Attribute ''<name>''=====
{{XML attributes
{|class="wikitable"
| name      = required
|-
| info      = Specifies that at least one option in the group must be present.
|width="70"|'''Info'''
| values    = true
|width="530"|Specify a name. When used by dialog this is required
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <export_group>|export_group]]
|'''Values'''
}}
|string
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| declare_file_def, [[SMS:Dynamic Model Interface Schema#Element <declare_dialog>|declare_dialog]], [[SMS:Dynamic Model Interface Schema#Element <model>|model]], [[SMS:Dynamic Model Interface Schema#Element <control_dataset>|control_dataset]], [[SMS:Dynamic Model Interface Schema#Element <declare_coverag>|declare_coverage]]
|}


=====Attribute ''<neighbor_per_edge>''=====
{{XML attributes
{|class="wikitable"
| name      = rows
|-
| info      = Represents a row in the .h5 file to map to
|width="70"|'''Info'''
| values    = #timestep, #point, #arc, #polygon, #coverage, #material
|width="530"|Min number of neighbors in any direction
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <xmdf_data>|xmdf_data]]
|'''Values'''
}}
|integer


0- default
{{XML attributes
|-
| name      = select_time
|'''Versions'''
| info      =
| 3
| values    = single, #range, #all
|-
| versions  = 2
|'''Used by'''
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_dataset>|control_dataset]]
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
}}
|}


=====Attribute ''<null_id>''=====
{{XML attributes
{|class="wikitable"
| name      = source
|-
| info      = When exporting things such as point or arc locations, the source identifies the desired location such as on the coverage or on the geometry (grid, mesh)
|width="70"|'''Info'''
| values    = coverage (use locations from coverage), snapped (use the snapped location on a geometry from a coverage), geometry (use locations from geometry)
|width="530"|Integer for an id of a neighbor not found
| versions  = 3
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <process_each_polygon>|process_each_polygon]], [[SMS:Dynamic Model Interface Schema#Element <process_each_arc>|process_each_arc]], [[SMS:Dynamic Model Interface Schema#Element <process_each_point>|process_each_point]], [[SMS:Dynamic Model Interface Schema#Element <process_each_material>|process_each_material]], [[SMS:Dynamic Model Interface Schema#Element <process_each_coverage>|process_each_coverage]], [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
|'''Values'''
}}
|integer
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
|}


=====Attribute ''<null_value>''=====
{{XML attributes
{|class="wikitable"
| name      = strike_through
|-
| info      = Sets the text to have a line through the middle when the element is specified. Added in SMS 11.2.
|width="70"|'''Info'''
| values    = none
|width="530"|The null_value for the dataset
| versions  = 1
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
|'''Values'''
}}
|any integer, any double
 
|-
===Attributes T-Z===
|'''Versions'''
{{XML attributes
| 3
| name      = text
|-
| info      = Text that is displayed in the SMS user interface.
|'''Used by'''
| values    = any text string
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <xmdf_dataset>|xmdf_dataset]]
| versions  = 1
|}
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <group>|group]], [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <x_column>|x_column]], [[SMS:Dynamic Model Interface Schema#Element <y_column>|y_column]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <display_options>|display_options]], [[SMS:Dynamic Model Interface Schema#Element <menu_item>|menu_item]], [[SMS:Dynamic Model Interface Schema#Element <declare_page>|declare_page]], [[SMS:Dynamic Model Interface Schema#Element <executable>|executable]]
}}


=====Attribute ''<optional>''=====
{{XML attributes
{|class="wikitable"
| name      = type
|-
| info      = For <display_options> defines point, or arc
|width="70"|'''Info'''
| values    = ''display_options'': arc, point<br/>
|width="530"| Placed inside widgets to suppress a warning message from being displayed if the widgets data is empty.  By default, data associated with a widget is required.  If the <optional> tag is included and the widget’s data is empty, a warning message won’t be displayed.
''edit_box'': text, integer, double
|-
| versions  = 2
|'''Values'''
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <declare_coverage>|declare_coverage]], [[SMS:Dynamic Model Interface Schema#Element <display_options>|display_options]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]]
|none
}}
|-
|'''Version'''
| 2
|-
|'''Used by'''
| width="530"| [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], [[SMS:Dynamic Model Interface Schema#Element < table >|table]], any element that starts with “custom_control”, [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]]
|}


=====Attribute ''<order>''=====
{{XML attributes
{|class="wikitable"
| name      = time_type
|-
| info      = Type of time either transient, steady state, or all. Default is all.
|width="70"|'''Info'''
| values    = transient, steady state, all
|width="530"|The way spatial entity objects are to be sorted before iterating. Currently only available for Cartesian grids and quadtrees (process_each_neighbor).
| versions  = 2
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <control_dataset>|control_dataset]]
|'''Values'''
}}
|“clockwise”, “counter_clockwise”, “ij”, “ji”
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <process_each_arc>|process_each_arc]], [[SMS:Dynamic Model Interface Schema#Element <process_each_material>|process_each_material]], [[SMS:Dynamic Model Interface Schema#Element <process_each_point>|process_each_point]], [[SMS:Dynamic Model Interface Schema#Element <process_each_polygon>|process_each_polygon]], [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
|}


=====Attribute ''<problem_text>''=====
{{XML attributes
{|class="wikitable"
| name      = underline
|-
| info      = Sets the text to be underlined when this attribute is specified. Added in SMS 11.2.
|width="70"|'''Info'''
| values    = none
|width="530"|A brief summary of why a model check failed.  This text is displayed to the user.
| versions  = 1
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
|'''Values'''
}}
|string
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <model_check>|model_check]]
|}


=====Attribute ''<required>''=====
{{XML attributes
{|class="wikitable"
| name      = unique_name
|-
| info      = A unique name given to an widget, which determines how to reference the widget. This is needed if the widget is being used as a dependency (parent), or if the widget value is being exported.  When a unique_name is being referenced it should be by the file (nothing if current file), then unique_name. No spaces or punctuation (except _) are allowed in the name.  The name must contain at least 1 non-numeric letter.  The name must be unique.  Names are not case sensitive, hence "aaa" is the same as "AAA".
|width="70"|'''Info'''
| values    = string (unique)
|width="530"|Specifies that at least one option in the group must be present.
| versions  = 1
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <card>|card]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], [[SMS:Dynamic Model Interface Schema#Element < table >|table]], all elements starting with "custom_control", [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <control_curve>|control_curve]]
|'''Values'''
}}
|true
 
|-
{{XML attributes
|'''Versions'''
| name      = unit_keyword
| 3
| info      = The units of a widget that begins with "control_" (where applicable).  This provides a mapping for SMS to know the unit type.
|-
| values    =
|'''Used by'''
Length:
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <export_group>|export_group]]
* #LEN_KM (kilometers)
|}
* #LEN_M (meters)
* #LEN_FT (feet)
* #LEN_CM (cm)
* #LEN_MM (mm)
* #LEN_INCH (inch)
* #LEN_YD (yd)
* #LEN_MILE (mile)
* #LEN_UM (um)


=====Attribute ''<rows>''=====
Time:
{|class="wikitable"
* #TIME_SECONDS
|-
* #TIME_HOURS
|width="70"|'''Info'''
* #TIME_MINUTES
|width="530"|Represents a row in the .h5 file to map to
* #TIME_DAYS
|-
* #TIME_WEEKS
|'''Values'''
|“#timestep”, “#point”, “#arc”, “#polygon”, “#coverage”, “#material”
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <xmdf_data>|xmdf_data]]
|}


=====Attribute ''<select_time>''=====
Volume:
{|class="wikitable"
* #VFLOW_CU_FT_PER_SEC
|-
* #VFLOW_CU_M_PER_SEC
|width="70"|'''Info'''
| versions  = 1
|width="530"|
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <option>|option]]
|-
}}
|'''Values'''
|“single”, “#range”, “#all”
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <control_dataset>|control_dataset]]
|}


=====Attribute ''<source''>=====
{{XML attributes
{|class="wikitable"
| name      = use_dialog
|-
| info      = Determines which dialog definition we are linking to
|width="70"|'''Info'''
| values    = string
|width="530"|When exporting things such as point or arc locations, the source identifies the desired location such as on the coverage or on the geometry (grid, mesh)
| versions  = 2
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <material_att>|material_att]], [[SMS:Dynamic Model Interface Schema#Element <menu_item>|menu_item]]
|'''Values'''
}}
|
*“coverage” &ndash; use locations from coverage
*“snapped” &ndash; use the snapped location on a geometry from a coverage
*“geometry” &ndash; use locations from geometry.
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <process_each_polygon>|process_each_polygon]], [[SMS:Dynamic Model Interface Schema#Element <process_each_arc>|process_each_arc]], [[SMS:Dynamic Model Interface Schema#Element <process_each_point>|process_each_point]], [[SMS:Dynamic Model Interface Schema#Element <process_each_material>|process_each_material]], [[SMS:Dynamic Model Interface Schema#Element <process_each_coverage>|process_each_coverage]], [[SMS:Dynamic Model Interface Schema#Element <process_each_neighbor>|process_each_neighbor]]
|}


=====Attribute ''<strike_through>''=====
{{XML attributes
{|class="wikitable"
| name      = use_file
|-
| info      = Complex command arguments can be built by referencing a <declare_file>.
|width="70"|'''Info'''
| values    = string = a <declare_filename >
|width="530"|
| versions  = 3
Sets the text to have a line through the middle when the element is specified. Added in SMS 11.2.
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <command_args>|command_args]]
}}


|-
{{XML attributes
|'''Values'''
| name      = use_icon
|none
| info      = Allows for a custom icon to be imported into sms for coverages and simulations.  When a coverage or simulation is create the custom icon will be shown instead of the default one in the tree structure.  The icon must be given to Aquaveo in advance.  The icon dimensions are 16x16 pixels.
|-
| values    = string = (icon_name.bmp)
|'''Version'''
| versions  = 3
|1
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <simulation>|simulation]], [[SMS:Dynamic Model Interface Schema#Element <declare_coverage>|declare_coverage]]
|-
}}
|'''Used by'''
|[[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
|}


=====Attribute ''<text''>=====
{{XML attributes
{|class="wikitable"
| name      = version
|-
| info      = Sets the version number
|width="70"|'''Info'''
| values    = integer
|width="530"|Text that is displayed in the SMS user interface.
| versions  = 1
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <model>|model]], [[SMS:Dynamic Model Interface Schema#Element <dynamic_model>|dynamic_model]]
|'''Values'''
}}
|any text string
|-
|'''Versions'''
| 1
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <group>|group]], [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <x_column>|x_column]], [[SMS:Dynamic Model Interface Schema#Element <y_column>|y_column]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <display_options>|display_options]], [[SMS:Dynamic Model Interface Schema#Element <menu_item>|menu_item]], [[SMS:Dynamic Model Interface Schema#Element <declare_page>|declare_page]], [[SMS:Dynamic Model Interface Schema#Element <executable>|executable]]
|}


=====Attribute ''<type''>=====
{{XML attributes
{|class="wikitable"
| name       = z_is_elev
|-
| info      = If the z value is elevation, set this to true.  Default is false.
|width="70"|'''Info'''
| values    = true, false
|width="530"|For <display_options> defines point, or arc
| versions  = 2
|-
| used_by    = [[SMS:Dynamic Model Interface Schema#Element <declare_coverage>|declare_coverage]]
|'''Values'''
}}
|display_options
*“arc”
*“point”
edit_box
*“text”
*“integer”
*“double”
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <declare_coverage>|declare_coverage]], [[SMS:Dynamic Model Interface Schema#Element <display_options>|display_options]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]]
|}
 
=====Attribute ''<time_type''>=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Type of time either transient, steady state, or all.  Default is all.
|-
|'''Values'''
|“transient”, “steady state”, “all”
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <control_dataset>|control_dataset]]
|}
 
=====Attribute ''<underline>''=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|
Sets the text to be underlined when this attribute is specified. Added in SMS 11.2.
 
|-
|'''Values'''
|none
|-
|'''Version'''
|1
|-
|'''Used by'''
|[[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]]
|}
 
=====Attribute ''<unique_name>''=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|
A unique name given to an widget, which determines how to reference the widget. This is needed if the widget is being used as a dependency (parent), or if the widget value is being exported.  When a unique_name is being referenced it should be by the file (nothing if current file), then unique_name. No spaces or punctuation (except _) are allowed in the name.  The name must contain at least 1 non-numeric letter.  The name must be unique.  Names are not case sensitive, hence “aaa” is the same as “AAA”.
 
|-
|'''Values'''
|string (unique)
|-
|'''Version'''
|1
|-
|'''Used by'''
|width="530"|[[SMS:Dynamic Model Interface Schema#Element <card>|card]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <combo_box>|combo_box]], [[SMS:Dynamic Model Interface Schema#Element <edit_box>|edit_box]], [[SMS:Dynamic Model Interface Schema#Element < table >|table]], all elements starting with “custom_control”, [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <control_curve>|control_curve]]
|}
 
=====Attribute ''<unit_keyword''>=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|The units of a widget that begins with “control_” (where applicable).  This provides a mapping for SMS to know the unit type.
|-
|'''Values'''
|Length:
#LEN_KM (kilometers)
#LEN_M (meters)
#LEN_FT (feet)
#LEN_CM (cm)
#LEN_MM (mm)
#LEN_INCH (inch)
#LEN_YD (yd)
#LEN_MILE (mile)
#LEN_UM (um)
Time:
#TIME_SECONDS
#TIME_HOURS
#TIME_MINUTES
#TIME_DAYS
#TIME_WEEKS
Volume:
#VFLOW_CU_FT_PER_SEC
#VFLOW_CU_M_PER_SEC
 
|-
|'''Versions'''
| 1
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <option>|option]]
|}
 
=====Attribute ''<use_dialog''>=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Determines which dialog definition we are linking to
|-
|'''Values'''
|string
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <material_att>|material_att]], [[SMS:Dynamic Model Interface Schema#Element <menu_item>|menu_item]]
|}
 
=====Attribute ''<use_file''>=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Complex command arguments can be built by referencing a <declare_file>.
|-
|'''Values'''
|string = a <declare_filename >
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <command_args>|command_args]]
|}
 
=====Attribute ''<use_icon''>=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Allows for a custom icon to be imported into sms for coverages and simulations.  When a coverage or simulation is create the custom icon will be shown instead of the default one in the tree structure.  The icon must be given to Aquaveo in advance.  The icon dimensions are 16x16 pixels.
|-
|'''Values'''
|string = (icon_name.bmp)
|-
|'''Versions'''
| 3
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <simulation>|simulation]], [[SMS:Dynamic Model Interface Schema#Element <declare_coverage>|declare_coverage]]
|}
 
=====Attribute ''<version''>=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|Sets the version number
|-
|'''Values'''
|integer
|-
|'''Versions'''
| 1
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <model>|model]], [[SMS:Dynamic Model Interface Schema#Element <dynamic_model>|dynamic_model]]
|}
 
=====Attribute ''<z_is_elev''>=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|If the z value is elevation set this to true.  Default is false.
|-
|'''Values'''
|
*“true”:  default
*“false”
|-
|'''Versions'''
| 2
|-
|'''Used by'''
|width="530"| [[SMS:Dynamic Model Interface Schema#Element <declare_coverage>|declare_coverage]]
|}


==Tutorial Links==
For more information on using the Dynamic Model Interface, download the XML file tutorial:
* [http://smsdocs.aquaveo.com.s3.amazonaws.com/DMI_XML_File.pdf DMI XML File Tutorial]
* [http://smsdocs.aquaveo.com.s3.amazonaws.com/DynamicSample.zip DMI Tutorial Data]
* [http://smsdocs.aquaveo.com.s3.amazonaws.com/DMISamplePreProc.exe DMI Sample Pre-Processing Executable]
* [http://smsdocs.aquaveo.com.s3.amazonaws.com/DMISample.exe DMI Sample Executable]





Latest revision as of 21:47, 9 September 2015

Reworking: SMS:Dynamic Model Interface Schema


The dynamic model interface is available in SMS version 11.2 and later. It is primarily a tool for developers. The dynamic model interface provides a way to quickly generate an interface for a numeric model.

Dynamic Dialogs

Dynamic dialogs are a quick way to generate dialogs without having to compile code. To add or delete a widget on a dynamic dialog, the user simply modifies the XML document. When the modified document is loaded, the new/modified dialog exists. The XML document defines the layout, behavior and the different dialog controls.

The dialog is divided into 2 sections: the tree view and the widget view. The tree is on the left side of the dialog and contains groups and items that represent data. Clicking on a group or item will result in the widget view being updated to match the selected tree or group item.

  • Order of the tree items and groups will match the order defined in the XML file.
  • Clicking on group will display all children items in the widget view.
  • Clicking on a single item will display associated widgets in widget view.
  • Tree item will also display the values in a non-editable field.
  • Unique_name use format: file::unique_name#value
  • Multiple widgets, when displayed on the right side, can be expanded/collapsed.
  • Can have nested groups.
  • Keywords are words SMS has reserved in the schema and can not be used as unique names. All keywords will start with a "#".

Available Keywords

This is a list of available keywords. Additional keywords are defined with the various custom control widgets. Note that in changing from version 1 to version 2, all tags that were <custom_control_XXXX> were changed to <control_XXXX>.

General Keywords
#card_name  
#geom_name name of geometry as it shows up in the project explorer
#project_name  
#value  
#units  
#xmdf_path path inside the XMDF file
#file_name  
#file_path  
#sms_path path in sms project explorer once inside a geometric item
#count used for a widget in a table for counting the rows/columns
#geom_guid  
Arc Keywords
#arc_id  
#arc_count  
#arc_point_count  
Coverage Keywords
#area_property  
#activity_classification  
#cgrid_generator  
#location  
#mapping  
#mesh_generator  
#observation  
#quadtree_generator  
#spectral  
executable_progress_update Keywords
#progress_amount  
#progress_max  
Material Keywords
#material_id  
#material_name  
#material_count  
#unassigned  
Point Keywords
#point_count  
#point_id  
#point_x  
#point_y  
#point_z  
Polygon Keywords
#polygon_id  
#polygon_count  
#polygon_point_count  
Projection Keywords
#horizontal_datum NAD83, NAD27, LOCAL
#horizontal_system UTM, STATE_PLANE, GEOGRAPHIC, LOCAL
#horizontal_units FEET, METERS, DEGREES
#horizontal_zone 3104, etc.
#vertical_datum  
#vertical_units  

Elements

Sorted alphabetically by element name.

Elements A - C

<arc_att>
Info: Used to specify what attributes should be used for the arcs of a coverage.
Version(s): 2
Attributes: none
Children: menu_item, snap
Used by: declare_coverage
Example:

<attribute_set>
Info: This represents an item in the project explorer that is some sort of grouping.
Version(s): 4
Attributes: none
Children: takes, menu_item
Used by: model
Example: See the model example.

<card>
Info: Determines the card name and format when the item is exported. For more examples see <export_format>.
Version(s): 1
Attributes: none
Children: card_name, export_format, export_location, dependency, anything beginning with "process_each_", export_group, export_optional, use_paramter.
Used by: item (version 1), file_def (version 2)
Example: <item text = "Formulation">
   <card>
         <card_name>FORMULATION</card_name>
         <export_format>card "formulationUnits"</export_format>
   </card>

<card_name>
Info: The name of the card which is used in the card file.
Version(s): 1
Attributes: none
Children: none
Used by: card
Example:

<check_box>
Info: Widget that displays text that is checked/unchecked.
Version(s): 1
Attributes: default,

export_text_checked, export_text_unchecked, text, unique_name.

Children: dependency, text_style
Used by: item
Example: <check_box text = "Calculate Sediment Transport"
                     default = "checked"
                     unique_name = "togCalcSedimentTransport"  
                     export_text_checked = "ON"    
                     export_text_unchecked = "OFF">
    <dependency>…</dependency>…
</ check_box >

<color>
Info: The color of an item, expressed in red, green, and blue values ranging from 0 to 255. All 0 values for red, green and blue are black. Added in SMS 11.2.
Version(s): 1
Attributes: red,

green, blue

Children: none
Used by: text_style
Example: This would change the text to a bright red color.
<text_style>                       	
   <color red = "255" green="0" blue="0"></color>
<text_style>

<column>
Info: Definition of the column in the table. A widget defined in a column will be the widget used for each cell in the column.
Version(s): 1
Attributes: text, read_only,

optional

Children: dependency, text_box, combo_box, edit_box, all elements starting with "control_", check_box
Used by: table
Example: Column1 is read only, Column 2 isn't read only and is also optional.
This means the column can have empty fields and a warning message won't be displayed.
 < table >

    . . .
   <column   text = "Column1"  read_only>
  </column>
  < column   text = "Column2    optional></ column>

<combo_box>
Info: Widget that displays list of options. Only 1 can be selected. If no default is specified and the optional tag is present, then an empty option will be added to the combo box. If there is no default tag, and no optional tag, then the first item will be default.

In version 2, if a combo box has display_options, and is part of a dialog that is used as an arc attribute, then a limited set of display options will appear for the options of the combo box. The display option for each option of the combo box will only be line thickness and color. The display option is NOT saved at any point and will be reset every time SMS is opened.

Version(s): 1
Attributes: optional, unique_name, default
Children: option, optional, dependency, text_style, display_options (version 2)
Used by: item, row, column
Example: Creates a combo box with hours, minutes and seconds. Hours is the default item.
<combo_box  unique_name="cbxTransportUnits">                      	
   <option  text = "hours"  default></option>
   <option  text = "minutes"></option>
 <option  text = "seconds"></option>
 <dependency>…</dependency>…
</ combo_box >

<command_args>
Info: Defines the command line arguments to run a particular executable.
Version(s): 3
Attributes: use_file
Children: none
Used by: executable_command
Example: See executable example.

<comment>
Info: Defines a character or sequence of characters that defines the start of a comment on a line. Comments are always terminated by an end of line.
Version(s): 2
Attributes: none
Children: none
Used by: use_file_def
Example: The following example has a file where the exclamation point starts the comment.
<file_def>
...
  <comment>!</comment>
…
</file_def>

<condition>
Info: Evaluates two or more objects using GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN, LESS_THAN_EQUALS, EQUALS, AND, OR, NOT, CHECKED, UNCHECKED, EMPTY. If condition is not met, then message is displayed (if model_check) or widget is hidden/dimmed (if dependency). String literals, such as an entry in a combo-box, must be enclosed in double-quotes (ex. "Combo box entry").
Version(s): 1
Attributes: none
Children: none
Used by: model_check, dependency, text_style
Example: < table >
  <column  text="A">
     <edit_box    unique_name="colA">
     </edit_box>
   </column>
  …// other columns also defined
  
  <model_check problem_text="Column D or E is required">
      <condition>( (colA EQUALS 0.0 OR colB LESS_THAN 0.0) AND NOT(colD NOT EQUALS EMPTY OR colE NOT EQUALS "Some value"))</condition>
  </model_check>
< /table >

<contains>
Info: Holds all the groups and items of a group.
Version(s): 2
Attributes: none
Children: group, item
Used by: group
Example:

<control_curve>
Info: Displays a curve push button. When pushed, the xy curve values can be updated and a curve is displayed.
Version(s): 2
Attributes: flags, unique_name, max_row_count
Children: x_column, y_column, dependency
Used by: item, row, column
Example: This example creates a curve limited to 10 rows.
<item>
   <control_curve  unique_name="myCurve1"
                             max_row_count="10"
                             flags = "XY_USEDATE">
       <x_column   text="Time"></x_column>
       <y_column   text="Velocity">				 
       </y_column>	
   </control_curve>
 …

<control_dataset>
Info: Displays an edit box, and push buttons for select, delete and create. Once selected, the dataset string is placed into the edit box. The dataset_type can be scalar or vector. Possible keyword outputs are file_name (which is the name of the dataset without path), geom_name, and file_path (full path c:\somewhere) and sms_path.

By default, all datasets of geometries that are part of the simulation (or part of the parameters if one or more use_parameter is used) can be selected. The the geometry attribute is set to "all", then the datasets from all geometries currently loaded into SMS can be selected from, regardless of relation to the simulation and assuming no other attribute prevents it. If "all" is used, then the dataset values will be interpolated to the geometry in the simulation.

The time_type attribute can be set to "all" (default), "transient", or "steady state". When "transient" is used, only datasets with multiple timesteps may be selected. When "steady state" is used, only timesteps without timesteps may be selected.

The select_time attribute can be set to "all" (default), "single", or "range". If "single" is used, then only a single timestep of the dataset will be selected. If "range" is used, then both a starting and ending timestep can be selected. By default, all timesteps of a dataset are used.

(For possible future use.)The interpret_time attribute can be set to "true" or "false" (default). When true, this attribute tells SMS to interpolate dataset values at the timesteps in the selected dataset to values at timesteps calculated from a start time, end time, and delta time that is specified by the user.

Version(s): 1 (<custom_control_XXXX>), 2
Attributes: geometry,

time_type, select_time, interpret_time, unique_name, dataset_type, default, name

Children: push_button, dependency, dataset_name, text_style, use_parameter (version 2), text, export_text
Used by: item, row, column, use_parameter
Example: This example creates the custom control with only the select and delete buttons.
<item>
    <control_dataset   dataset_type="scalar">
        <push_button>select<push_button>
        <push_button>delete</push_button>
    </control_dataset>
 …

<control_date>
Info: Displays date and time selector, where a date can be selected.
Possible output is value, which will be the date formatted as specified in SMS preferences.
Possible outputs are year, month, day, hour, minute, second.

Keywords:

  • #DAY_DIGIT
  • #DAY_DIGIT_ZERO
  • #DAYS_IN_YEAR
  • #DAY_SHORT_NAME
  • #DAY_LONG_NAME
  • #MONTH_DIGIT
  • #MONTH_DIGIT_ZERO
  • #MONTH_SHORT_NAME
  • #MONTH_LONG_NAME
  • #YEAR_2
  • #YEAR_4
  • #HOUR
  • #HOUR_ZERO
  • #HOUR_24
  • #HOUR_24_ZERO
  • #MINUTE
  • #MINUTE_ZERO
  • #SECOND
  • #SECOND_ZERO
  • #AM_PM
  • #AM_PM_CAPS
Version(s): 1 (<custom_control_XXXX>), 2
Attributes: unique_name
Children: dependency, text_style
Used by: item, row, column
Example: <item text ="Start date>
   <control_date    unique_name="edtDate">
   </control_date>
   <card>
       <card_name>DATE</card_name>
       <export_format>"%s Day:%s Month:%s Year:%s Hour:%s Minute%s Second:%s\n", #card_name, edtDate#DAY_DIGIT, edtDate#MONTH_LONG_NAME, edtDate#YEAR_4, edtDate#HOUR_24, edtDate#MINUTE_ZERO, edtDate#SECOND_ZERO</export_format>
   </card>

<control_density>
Info: Displays an edit box and combo box. Combo box can contain kg/m^3, gr/cm^3, lb/ft^3. Possible outputs are value and units.

Keywords:

  • #MPV_MG_PER_L
  • #MPV_G_PER_L
  • #MPV_KG_PER_CU_M
  • #MPV_G_PER_CU_CM
  • #MPV_LB_PER_CU_FT
Version(s): 1 (<custom_control_XXXX>), 2
Attributes: default, unique_name
Children: option, dependency, range, text_style
Used by: item, row, column
Example: Displays kg/m^3 and lb/ft^3 in combo box. If kg/m^3 selected and exported, returns the text "kg m".
<item>
   <text>Density </text>
   <control_density>
       <option      text="kg/m^3"
                         export_text = "kg m"
                         unit_keyword="#MPV_KG_PER_CU_M">
       </option>
       <option    text="lb_ft^3"
                       export_text ="lbs ft"
                       unit_keyword = "#MPV_LB_PER_CU_FT">
        </option>
    </control_density>
 …

<control_duration>
Info: Displays an edit box and combo box. Combo box contains days, hours, minutes, seconds. Possible outputs are value and units.

Keywords:

  • #TIME_SECONDS
  • #TIME_MINUTES
  • #TIME_HOURS
  • #TIME_DAYS
  • #TIME_WEEKS
  • #TIME_YEARS
Version(s): 1 (<custom_control_XXXX>), 2
Attributes: default, unique_name
Children: option, dependency, range, text_style
Used by: item, row, column
Example: Displays only minutes and hours in combo box. If hours selected and exported, returns the text "hrs".
<item  text ="Transport Time Step">
   <control_duration>
       <option  text="minutes"
                     export_text = "min"
                     unit_keyword = "#TIME_MINUTES">
       </option>
       <option  text = "hours"
                     export_text = "hrs"
                     unit_keyword = "#TIME_HOURS"
                     default>
       </option>
   </control_duration>
 …

<control_executable>
Info: Displays a button for running a simulation from a dialog. Unlike the normal simulations found in the project explorer, these simulations are generally hidden from the user. As such, the options that can be used are significantly less than those of a normal simulation.

The model attribute defines the name of the model to be executed. The model may be one that is already defined by another XML file. Dialogs can be specified for data that will be kept for the model, but will not be shown to the user. The simulation and files specified with this control may not be the same as one already specified in another XML file.

Version(s): 3
Attributes: model,

unique_name

Children: option, dependency, range, text_style
Used by: unique_name, dependency, text_style, use_parameter, simulation, dialogs, files
Example: This example declares a control_executable that runs "MyModel".
<control_executable model = "MyModel"       
                                  unique_name="exeMyModel">
  <declare dialogs>
	<declare dialog   name="Arc BC">
  	<pages>
    	    <page_def  name="ArcBC"
      	                        display="NO_NAV">
      	       <contains>
        	          <item>
          	             <edit_box   unique_name="edtMyModelText">
          	            </edit_box>
        	         </item>
      	       </contains>
    	    </page_def>
  	</pages>
       </dialog>
  </dialogs>
  <simulation>
      <executable name ="MyModel">
          <use_parameter>HydroFile</use_parameter>
          <execute_command>
             <command_args>" \"%s\"", edtMyModelText</command_args>
             <execute>"%s", #executable_name</execute> 
          </execute_command>
      </executable>
      <input_files>
        <input_file>
             <use_file_def>myFile</use_file_def>
             <export_location>"%s.srhhydro", #project_name</export_location>
             <declare_parameter>HydroFile</declare_parameter>
        <input_file>  
     </input_files>      
  </simulation>
  <files>
      <declare file_def name=MyFile  type=CARD_ASCII>  
           <comment>! this is myfile</comment>
      </declare file_def>
  </files>
 </control_executable>

<control_feature_selector>
Info: Push button that opens a canvas window that allows users to select one or more points, arcs or polygons that are in the main window.
Version(s): 3
Attributes: feature,

unique_name

Children: range
Used by: item, row, column
Example: Allows the user to select 1 to 10 arcs
 <item>
    <control_feature_selector feature = "arc">
                                     unique_name="mySelector">
         <range>1-10</range> 
     </control_feature_selector>
 …

<control_file_selector>
Info: Push button that opens a file open dialog to select files. Possible outputs are file_path.
Version(s): 1 (<custom_control_XXXX>), 2
Attributes: default,

create_file, filter, unique_name

Children: dependency, text_style
Used by: item, row, column
Example: Opens a file dialog, filtering on files with *.h5 and *.cmcards extensions
<item>
   <text>File:</text>
   <control_file_selector
           filter = "Cmcards file (.cmcards)"> 
    </control_file_selector>
…

<control_length>
Info: Displays an edit box and combo box. Combo box can contain meters, cm, mm, um, ft, in. Possible outputs are value and units.

Keywords:

  • #LEN_MM
  • #LEN_CM
  • #LEN_M
  • #LEN_KM
  • #LEN_INCH
  • #LEN_FT
  • #LEN_YD
  • #LEN_MILE
  • #LEN_UM
Version(s): 1 (<custom_control_XXXX>), 2
Attributes: default, unique_name
Children: option, dependency, range, text_style
Used by: item, row, column
Example: Displays only cm, and mm in combo box. If cm is selected and exported, returns the text "centimeter".
<item   text = "Length">
   <control_length   unique_name="myLength">
       <option>
          text = "cm"
          export_text="centimeter"
          unit_keyword = "#LEN_CM">
       </option>
       <option>
          text = "mm"
          export_text = "mm">
          unit_keyword="#LEN_MM"
          default
        </option>
    </control_length>
 …

<control_nesting>
Info: Push button that opens a special dialog to create nesting points. The dialog allows the user to select a parent and child grid and a coverage to put the nesting sites in.
Version(s): 3
Attributes: unique_name
Children: dependency
Used by: item, row, column
Example: Creates the nesting dialog widget
<item>
   <control_nesting   unique_name="ccNesting">
    </control_nesting>
…

<control_set>
Info: Table like widget that allows for multiple points, polygons, or arcs to be joined together as a set. An example usage would be to join two arcs in creating a weir. By default the <control_set> contains two columns, object and role. The object column identifies the arc, point, or poly id. The role column is a user defined combo box that allows for customization of types and behavior. See <roles>. Addition columns can be added by simply adding a <column> tag with a widget. See tables. When exporting you can use the #object or #role keyword for retrieving data from those particular columns.
Version(s): 3
Attributes: min (default = 0),

max (default = 2.147 billion), increment (default is 1), unique_name

Children: column, roles
Used by: item, row, column
Example: Example of a culvert widget with a extra "Name" column. The culvert requires 2 arcs.
<control_set min = "2" 
                     max = "2"
                     unique_name = "tblSetCulverts">
      <roles behavior = "SWAP">
	<role   text = "upper">
 	   <range>1-1</range>
	</role>
	<role  text = "lower">
 	   <range>1-1</range> 	 
	</role>
       </roles>
       <column   text = "Name">
	<edit_box  unique_name="edtMyArcsName"
  	                              type="text"> 
	</edit_box>
        </column>
</control_set>

User allows for either 2 or 4 arcs on a weir.

<control_set min = "2" max = "4" increment = "2" >
….

<control_velocity>
Info: Displays an edit box and combo box. Combo box can contain m/sec, m/min, m/hours, etc.... Also could be m/sec, cm/sec, ft/sec, etc... The option tag specifies which options are displayed. The edit box will display doubles, within the given range, if provided. Possible outputs are value and units.

Keywords:

  • #VEL_M_PER_S
  • #VEL_KM_PER_H
  • #VEL_FT_PER_S
  • #VEL_MPH
  • #VEL_KNOTS
  • #VEL_CM_PER_S
  • #VEL_MM_PER_S
Version(s): 1 (<custom_control_XXXX>), 2
Attributes: default, unique_name
Children: option, dependency, range, text_style
Used by: item, row, column
Example: Displays m/sec and cm/sec in combo box. If m/sec selected and exported, returns the text "m sec".
<item>
   <text>Velocity </text>
   <control_velocity    unique_name="ccVelocity">
       <range>0-100</range>
       <option  text="m/sec"
                     export_text = "m sec"
                     unit_keyword = "#VEL_M_PER_S">
       </option>
       <option   text = "cm/sec"
                      export_text = "cm sec"xt
                      unit_keyword = "#VEL_CM_PER_S">
        </option>
    </control_velocity>
 …

<control_volume_flow>
Info: Displays an edit box and combo box. Combo box can contain m^3/sec, m^3/min, m^3/hours, etc.... Also could be m^3/sec, cm^3/sec, ft^3/sec, etc... The option tag specifies which options are displayed. The edit box will display doubles, within the given range, if provided. Possible outputs are value and units.
Version(s): 2
Attributes: default,

unique_name

Children: option, dependency, range, text_style
Used by: item, row, column
Example: Displays m^3/sec and cm^3/sec in combo box. If m^3/sec selected and exported, returns the text "m^3 sec".
<item   text="Volume flow">
   <control_volume_flow  unique_name ="ccVolumeFlow">            
       <range>0-100</range>
       <option
          text = "m^3/sec"
          export_text = "m^3 sec"
          unit_keyword = "#VFLOW_CU_M_PER_SEC">
       </option>
       <option
          text = "cm^3/sec"
          export_text = "cm^3 sec"
          unit_keyword = "#VFLOW_CU_CM_PER_SEC">
        </option>
    </control_volume_flow>
 …

<count_filter>
Info: Specifies the range on which the process_on_count is valid.
Version(s): 2
Attributes: none
Children: none
Used by: process_on_count
Example:

Elements D - H

<dataset_name>
Info: Determines the name of the dataset to be created. Uses the standard printf and sprintf format (www.cplusplus.com/reference/clibrary/cstdio/printf/). The keywords #row_number, #column_number, #row_name, and #column_name are used when the dataset is in a table.
Version(s): 1
Attributes: none
Children: none
Used by: control_dataset
Example: <control_dataset>
    <dataset_name>"Five percent Layer %d", #row_number</dataset_name>
	…
</control_dataset>

<declare_coverage>
Info: Defines a coverage type for the model.
Version(s): 2
Attributes: z_is_elev,

bind_to, name, use_icon

Children: point_att,

arc_att, polygon_att, material_att, menu_item

Used by: model
Example: This defines a coverage that can be created.
<declare_coverage z_is_elev = "true"   name="MyCov">
  <point_att>
    <menu_item  text = "Assign BC…"  use_dialog = "NodeAtt">
    </menu_item>
  </point_att>
  <arc_att>
   <menu_item  text = "Assign BC…"  use_dialog= "NodestringBC">
    </menu_item>
  </arc_att>
  <material_att   use_dialog= "MaterialProp"</material_att>
</coverage>

<declare_dialogs>
Info: Contains all the dialogs used in a model.
Version(s): 2
Attributes: none
Children: declare_dialog
Used by: model
Example:

<declare_dialog>
Info: Used to define a dialog.
Version(s): 2
Attributes: name,

help_button_url, help_button_wiki

Children: pages
Used by: dialogs
Example:

<declare_file>
Info: A way to declare a file that will be used in the future.
Version(s): 3
Attributes: name, file_type
Children: comment, identifier, card, export_format, export, process_each_row, process_each_coverage, export_group, process_on_condition, xmdf_group, xmdf_data, xmdf_geometry, xmdf_dataset, section
Used by: files
Example:

<declare_pages>
Info: Signals the beginning of page creation for a dialog. One or more pages may be created using declare_page.
Version(s): 3
Attributes: none
Children: declare_page
Used by: dialog
Example: <declare_dialog name ="Model Control">
   <declare_pages>
       <declare_page  text="Page1">
                ….
       </declare_pagef>
       <declare_page  text ="Page2">
                ….
       </declare_page>
   </declare_pages>

<declare_page>
Info: This defines the page or tab of a dialog. If there is only one page_def in a dialog, then no tabs will appear.
Version(s): 3
Attributes: text, display
Children: contains
Used by: declare_pages
Example:

<declare_parameter>
Info: A way to declare data that will be used in the future.
Version(s): 3
Attributes: none
Children: none
Used by: input_file, anything beginning with "process_each", takes
Example:

<dependency>
Info: Dependencies allow widgets to be hidden, dimmed (grayed out), or shown based on the state/value of another widget. The <dependency> tag can be placed in any widget, combo-box option, item, or group. A user needs to specify the condition that this object is dependent upon and what the value(s) need(s) to be in order for the object to be shown/not dimmed. If the condition is false, by default the control is hidden. To have the control dimmed, use the <dim> tag.
Version(s): 1
Attributes: dim
Children: condition
Used by: card, check_box, text_box, combo_box, table, any element that begins with "custom_control", edit_box, item, group
Example: Example 1

We only want our edit_box displayed if the check_box is checked (true). If check_box is not checked, we want to dim (show but is grayed out) the edit_box.

<check_box  unique_name = "MyBox">
…

<edit_box>
  <dependency   dim>	
      <condition>MyBox EQUALS CHECKED</condition>
  </dependency>

Example 2 We want our text_box displayed if the edit_box has a value between 0-3 or if the combo box has the value minutes or days.

<edit_box   unique_name="MyEdit_box">
…
<combo_box   unique_name = "MyComboBox">
   <option  text = "hours"></option>
   <option  text ="minutes"></option>
  …


<text_box>
   <dependency>
       <condition>(MyEdit_box GREATER_THAN_EQUALS 0 AND MyEdit_box LESS_THAN_EQUALS 3) OR (MyComboBox EQUALS "minutes" OR MyComboBox EQUALS "days")</condition>
  </dependency>
</text_box>

<display_options>
Info: Specifies that the options in the combo box are to be used as arc/nodestring boundary condition display options. This element should only be used once in a combo_box and once in a edit_box per dialog.
Version(s): 2
Attributes: type,

text

Children: none
Used by: combo_box
Example: <combo_box unique_name="cbxArcDeleteMe">
 <display_options type= "point" text ="Save Points Name"></display_options>
   <option   text="Hydro"   default></option>
   <option  text="Sediment"></option>
</combo_box>

<dynamic_model>
Info: Used to define a dynamic model.
Version(s): 1
Attributes: file_type – always "dynamic model",

version

Children: model
Used by: none
Example:

<edit_box>
Info: Widget that displays text or numbers. If <type> not specified, default to double. The type can also be text, or integer.
Version(s): 1
Attributes: default,

optional, type, unique_name

Children: range, dependency, text_style, display_options
Used by: item, row, column
Example: <edit_box type="double"
                  default="1.0"  
                  unique_name="edtBox5"
                  optional>
   <range>0, 2.2</range>
   <dependency>…</dependency>…
</ edit_box >

<end_card>
Info: Defines that the card end with a single iteration of the enclosing <process_each_XXX>
Version(s): 1
Attributes: none
Children: none
Used by: anything starting with process_each
Example:

<executable>
Info: Represents a single executable used by the model.
Version(s): 2
Attributes: executable_order,

text, default_executable_name32, default_executable_name64

Children: use_parameter, executable_command
Used by: simulation
Example: Example 1
<executable name ="MyModel"  executable_order = "1" 
       default_executable_name32="MyModel32.exe"
       default_executable_name64="MyModel64.exe">
     <use_parameter>HydroFile</use_parameter>
     <execute_command>
        <command_args>" \"%s\"", edtMyModelText</command_args>
        <execute>"%s", #executable_name</execute>
     </execute_command>
 </executable>
  <input_files>
     <input_file>
         <use_file_def>myFile</use_file_def>
        <export_location>"%s.srhhydro", #project_name</export_location>
        <declare_paremeter>HydroFile</declare_parameter>
     <input_file>  
  </input_files>  

Example 2 In the following example, one instance of the numeric model is executed per coverage. A file will be exported per coverage and no command line arguments are used when launching the model.

<executable name = "SRH 2D"   executable_order="1" </executable>
  <use_parameter>MyCaseFile</use_parameter>
  <executable_command>
       <command_args>"\"%s\"", #file_name</command_args>
       <execute>"%s - %s", #executable_name, #geom_name</execute>
  </executable_command>
</executable>
<input_files>
    <input_file>
      <process_each_coverage>
         <use_file_def>caseFile</use_file_def>
         <export_location>"%s/%s", #geom_name,      #project_name</export_location>
         <declare_paramter>MyCaseFile</declare_parameter>
      </process_each_coverage>
   </input_file>
</input_files>

Example 3 In the following example, only one instance of the numeric model is executed. A file will be exported per coverage and no command line arguments are used when launching the model.

<executable name ="SRH 2D   executable_order="1""</executable>
  <executable_command>
       <execute>"%s", #executable_name</execute>
  </executable_command>
</executable>
<input_files>
  <input_file>
    <use_file_def>caseFile</use_file_def>
    <process_each_coverage>
      <export_location>"%s/%s", #geom_name, #project_name</export_location>
   </process_each_coverage>
  </input_file>
</input_files>

<executable_command>
Info: Defined command line arguments for the executable.
Version(s): 3
Attributes: none
Children: command_args, execute
Used by: executable
Example: See executable example.

<executable_progress_update>
Info: Updates the status bar of the model based on output from the model.
Version(s): 3
Attributes: amount,

max

Children: update_text
Used by: executable
Example: For a model that outputs "CASE 1 of 35","CASE 2 of 35" etc..
<executable name="My Model Main"</executable>
   <executable_progress_update   
       amount="0"  max ="35"
       <update_text>"CASE %d of %d" #progress_amount, #progress_max       
        </update_text>
    </executable_progress_update> 
</executable>

<execute>
Info: Defines when to run an executable. The text of this element is the text that will be displayed as the process name when running the model.
Version(s): 2
Attributes: none
Children: none
Used by: input_file, anything starting with process_
Example: See executable example.

<export_format>
Info: Placed inside the <card> to determine how the card format will be displayed when exporting to a text file. Uses the standard printf and sprintf format (www.cplusplus.com/reference/clibrary/cstdio/printf/). "#card_name" should be used when displaying the card. When using an element that starts with "custom_control", a user can use the # character to get to the value or units.
Version(s): 1
Attributes: ignore_on_read
Children: none
Used by: card, export_each_row (version 1), export_column (Version 1), export_each_coverage (version 1), export_each_polygon (version 1), export_each_arc (version 1), export_each_point (version 1),

anything starting with process_each_

Example: Example 1
<edit_box   unique_name="MyEditBox">
</edit_box>
…
<card>
  <card_name>FIFTH_GRAIN</card_name>
  <export_format>"%s %lf\n", #card_name, MyEditBox</export_format>
</card>

If the edit_box has the value of 15, this would print out: FIFTH_GRAIN 15

Example 2 If export_format was changed to this: <export_format>"%s \"%lf\" // comment\n", #card_name, MyEditBox </export_format>

FIFTH_GRAIN "15" // comment

<control_length   unique_name="MyLength">

Example 3

...
</control_length>
…
<card>
  <card_name>ADAPTATION_LENGTH_TOTAL</card_name>
  <export_format>"%s %lf, %s\n", #card_name, MyLength#value,
                             MyLength#units</export_format>
</card>

ADAPTATION_LENGTH_TOTAL 25 cm

<export_group>
Info: A way of grouping optional exports.
Version(s): 2
Attributes: ignore_on_read,

required

Children: Any element beginning with "process_" and required (version 2), xmdf_dataset, xmdf_data, xmdf_group, xmdf_geometry, export_optional, section
Used by: Any element beginning with "process_".
Example:

<export_location>
Info: Relative or absolute path of the export file (.cmcards). Can be used multiple times if exporting to more than 1 file location. Keywords can be #PROJECT_NAME and #GEOMETRY.
Version(s): 1, 2
Attributes: none
Children: none
Used by: group, card, input_file (version 2), output_file (version 2). If it used just within group then everything within the element will use the same export location unless specified in the child group or item card.
Example: Example 1

<export_location>\\Ideal__Inlet.cmcards</export_location>

Example 2 <export_location>\\#PROJECT_NAME_#GEOMETRY.cmcards</export_location> <export_location>"\\%s__%s.cmcards", #PROJECT_NAME, #GEOMETRY</export_location>

<export_optional>
Info: Indicator of text that might be included. If it has default as a child, then SMS will write out the text included in this element.
Version(s): 2
Attributes: ignore_on_read,

default

Children: Any element beginning with "process_", export_format, default (version 2), separator, xmdf_dataset, xmdf_data, xmdf_group, xmdf_geometry, section
Used by: Any element beginning with "process_".
Example:

<files>
Info:
Version(s): 2
Attributes:
Children: file_def
Used by: model_control_executable
Example:

<group>
Info: Tree group item that contains one or more items or groups.
Version(s): 1
Attributes: text
Children: item (version 1), dependency, text_style, contains (version 2)
Used by: link_to (version 1), page_def (version 2), another <group> if nested (version 1), <contains> (version 2)
Example: <group text = "Timing">
  <item>
 	… tree item stuff
  </item>
</group>

Elements I - O

<input_file>
Info: Defines a file to be used for input for an executable.
Version(s): 2
Attributes: none
Children: use_file_def, export_location, process_each_row, process_each_coverage, process_each_material, declare_parameter
Used by: input_files
Example: See executable example.

<input_files>
Info: A container to place all of the input files into for a simulation.
Version(s): 3
Attributes: none
Children: input_file
Used by: simulation
Example:

<item>
Info: Tree item contains one or more widgets (combo_box, text_box, edit_box, etc). A tree item can contain multiple cards (version 1), but those cards must be mutually exclusive.
Version(s): 1
Attributes: text
Children: card, dependency, text_box, edit_box, check_box, combo_box, table, any element starting with "control", text_style, new_line
Used by: group
Example: <item>
     <text>Transport Time Step</text>
     <edit_box>…. </edit_box>
     <card>…</card>

<location>
Info: Used to specify which point locations to export. Point locations are defined as: "corner", "mid", "center", "disjoint" and "all". Point locations can have a slightly different meaning based on their context as described below.

Exporting coverage arc points:

  • mid = middle points of arc
  • corner = 2 end points of an arc
  • disjoint = not valid
  • center = not valid

Exporting coverage polygon points:

  • mid = non nodes in the polygon
  • corner = nodes in the polygon
  • disjoint = not valid
  • center = not valid

Exporting grid/quad points:

  • mid = midside points on the cell
  • corner = corner points on the cell
  • disjoint = not valid
  • center = center point on cell

Exporting mesh points:

  • disjoint = disjoint points only
  • corner = end points of arcs, nodes in polygons
  • mid = mid points in arcs, mid points in polygons
  • center = not valid
Version(s): 3
Attributes: none
Children: none
Used by: process_each_point, snap
Example: // writes out snapped coordinates of the 2 end points of each arc
<process_each_coverage>
    <use_parameter>myCov</use_parameter>
    <process_each_arc source = "snap">
        <process_each_point source = "snap">
            <location>corner</location>
            <export_format>"%Lf %Lf %Lf\n", #point_x, #point_y,  #point_z
            </export_format>
        </process_each_point>
    </process_each_arc>
</process_each_coverage>

// writes out all points of each arc
<process_each_coverage>
    <use_parameter>myCov</use_parameter>
    <process_each_arc source = "snap">
        <process_each_point source = "snap">
            <location>corner</location>
            <location>mid</location>
            <export_format>"%Lf %Lf %Lf\n", #point_x, #point_y,  #point_z
            </export_format>
        </process_each_point>
    </process_each_arc>
</process_each_coverage> 

// writes disjoint nodes in a mesh
<process_each_geometry>
    <use_parameter>myMesh</use_parameter>
    <process_each_point source = "geometry">
        <location>disjoint</location>
        <export_format>"%Lf %Lf %Lf\n", #point_x, #point_y,  #point_z
        </export_format>
    </process_each_point>
</process_each_geometry>

// writes all midpoints in a grid
<process_each_geometry>
    <use_parameter>myGrid</use_parameter>
    <process_each_point source = "geometry">
        <location>mid</location>
        <export_format>"%Lf %Lf %Lf\n", #point_x, #point_y,  #point_z
        </export_format>
    </process_each_point>
</process_each_geometry>

<material_att>
Info: Used to specify what attributes should be used for materials of a coverage.
Version(s): 2
Attributes: use_dialog
Children: none
Used by: declare_coverage
Example: See coverage example.

<max_rows>
Info: Optional element used to limit the number of rows the user can specify in a control_curve. If this element is not used, the max_rows is unlimited.
Version(s): 2
Attributes: none
Children: none
Used by: control_curve
Example: This example creates a curve button with the date/time flag.
 <item>
   <control_curve>
       <unique_name>myCurve1</unique_name>
       <max_rows>10</max_rows>
       <x_column>
          <text>Time
       </x_column>
       <y_column>
  	<text>Velocity</text>   						 
       </y_column>	
   </control_curve>
 …

<menu_item>
Info: Item to be placed in a menu. The text is the text displayed in the menu, use_dialog describes the dialog to be launched, dependency describes what needs to be true in order for the menu item to appear.

The double_click attribute (if true) indicates that this is the menu item to be launched on a double click event. For example, if a menu_item is in an arc_att, and has double_click = "true", then when an arc is double clicked, the dialog specified by the menu item is launched.

Version(s): 2
Attributes: double_click,

use_dialog, text

Children: dependency
Used by: simulation, attribute_set (version 3), declare_coverage, point_att, arc_att, polygon_att, material_att
Example: See the model example.

<msg>
Info: Used to display text to the user when a model check condition has failed.
Version(s): (Version 3 replaced with problem_text, description_text and fix_text)
Attributes: none
Children: none
Used by: model_check
Example: < table >
  <column   text="A>
     <edit_box  unique_name = "colA">
     </edit_box>
   </column>
…// other columns also defined
  
<model_check  problem_text = "Column D or E is required." 
               description_text = "This model requires column D."
               fix_text = "To fix do the following:  …...   ">
      <condition>( (colA OR colB) AND NOT(colD OR colE))</condition>
  </model_check>
< /table >

<model>
Info: Defines the model interface that is being created.
Version(s): 2
Attributes: name,

version

Children: simulation, declare_coverage, dialogs, files
Used by: dynamic_model
Example: A simple model that has one coverage type, one dialog, and one file definition. This interfaces with version 4 of "MyModel".
<dynamic_model filetype="dynamic model">
                            version="2">
 <model  name="MyModel"  version="4">
   <simulation>
     …
   </simulation>
   <declare_coverage  name= "MyCov">l</coverage>
     ...
   </coverage>
   <declare_dialogs>
     …
   </declare_dialogs>
   <file_def>
     …

<model_check>
Info: Used to validate data of multiple combinations when the OK button is clicked. Displays an error message if the logic in the <condition> is false. Can use AND, OR, LESS_THAN, GREATER_THAN, EQUALS and NOT.
Version(s): 1
Attributes: problem_text,

description_text, fix_text

Children: condition, process_each_coverage, process_each_geometry
Used by: item (version 1), model_checks (version 2)
Example: < table >
  <column  text="A">
     <edit_box  unique_name="colA">
     </edit_box>
   </column>
…// other columns also defined
< /table >
  
<model_check  problem_text = "Column D or E is required." 
               description_text = "This model requires column D."
               fix_text = "To fix do the following:  …...   ">
    <condition>( (colA EQUALS 0.0 OR colB EQUALS 0.0) AND NOT(colD EQUALS 0.0 OR colE EQUALS 0.0))</condition>
</model_check>

<model_checks>
Info: Contains all model checks
Version(s): 2
Attributes: none
Children: model_check
Used by:
Example: <declare_dialogs>
 <declare_dialog>
 ...
   < table >
      <column  text="A">
         <edit_box  unique_name="colA">
         </edit_box>
       </column>
…// other columns also defined
   < /table >
 ...
 <declare_dialog>
<declare_dialogs>
<model_checks>
<model_check  problem_text = "Column D or E is required." 
               description_text = "This model requires column D."
               fix_text = "To fix do the following:  …...   ">
    <condition>( (colA EQUALS 0.0 OR colB EQUALS 0.0) AND NOT(colD EQUALS 0.0 OR colE EQUALS 0.0))</condition>
 </model_check>
<model_checks>

<new_line>
Info: Creates a new line before adding the next widget in a tree item.
Version(s): 1
Attributes: none
Children: none
Used by: item
Example: In the dialog there would be:
    Breaking Efficency:   [edit box]        (new_line called)
    Friction Efficency:
<item>
   <text>Non-cohesive bedload entrainment</text>
        <text_box>
           <text>Breaking Efficency:</text>
        </text_box>
        <edit_box  unique_name="edtBreakingEff">
        </edit_box>
        <new_line></new_line>
        <text_box  text="Friction Efficency:">
        </text_box>

<option>
Info: Widget that displays list of options. Only 1 can be selected.
Version(s): 1
Attributes: default,

text, unit_keyword, display_options_hide

Children: export_text, dependency, text_style
Used by: combo_box, any element that starts with "custom_control" and has units
Example: Creates a combo box with hours, minutes and seconds. Minutes is the default item.
<combo_box  unique_name="cbxTransportUnits">                      	
      <option  text="hours">
       </option>
       <option  text="minutes"     
                     default>
        </option>
        <option  text="seconds">
        </option>
   <dependency>…</dependency>…
</ combo_box >

<output_file>
Info: Defines a file to be created by the executable.
Version(s): 1
Attributes: none
Children: use_file_def, export_location, export_table, export_each_coverage, export_each_material
Used by: executable
Example: See executable example.

<output_files>
Info: A container to place all of the output files into for a simulation.
Version(s): 3
Attributes: none
Children: output_file
Used by: simulation
Example: See executable example.

Elements P - S

<page_def>
Info: This defines the page or tab of a dialog. If there is only one page_def in a dialog, then no tabs will appear.
Version(s): 2 (depreciated use <delcare_page>)
Attributes: name,

display

Children: contains
Used by: dialog
Example:

<point_att>
Info: Used to specify what attributes should be used for the points of a coverage.
Version(s): 2
Attributes: none
Children: menu_item, snap
Used by: coverage
Example:

<polygon_att>
Info: Used to specify what attributes should be used for the polygon of a coverage.
Version(s): 2
Attributes: none
Children: menu_item, snap
Used by: coverage
Example:

<process_each_arc>
Info: Indicator to loop through each arc in the given context.
Version(s): 2
Attributes: ignore_on_read,

order, i_order, j_order, source

Children: card_name, export_format, separator, process_each_point, end_card, use_parameter, declare_parameter, executable_command, section, export_group, export_optional, process_on_condition, process_each_neighbor, xmdf_dataset, xmdf_data, xmdf_group, xmdf_geometry
Used by: card, process_each_coverage, process_each_polygon
Example:

<process_each_coverage>
Info: Indicator to loop through each coverage in the given context.
Version(s): 2
Attributes: ignore_on_read,

order, i_order, j_order, source

Children: card_name, export_format, separator, process_each_point, process_each_polygon, process_each_arc, end_card, use_parameter, declare_parameter, process_each_set, executable_command, export_group, export_optional, process_on_condition, process_each_material, xmdf_dataset, xmdf_data, xmdf_group, xmdf_geometry, count_range, section, location
Used by: card
Example:

<process_each_material>
Info: Indicator to loop through each material in the given context.
Version(s): 2
Attributes: ignore_on_read,

order, i_order, j_order, source

Children: card_name, export_format, separator, end_card, use_parameter, declare_parameter, process_each_polygon, export_group, export_optional, process_on_condition, process_each_polygon, section, count_range, xmdf_dataset, xmdf_data, xmdf_group, xmdf_geometry
Used by: card, process_each_coverage, process_each_polygon
Example:

<process_each_neighbor>
Info: Indicator to loop through each neighbor in the given context.
Version(s): 3
Attributes: corner_skip,

feature, ignore_on_read, order, i_order, j_order, interior_polygon, null_id, neighbor_per_edge, source

Children: card_name, export_format, separator, end_card, use_parameter, declare_parameter, process_each_polygon, export_group, export_optional, process_on_condition, process_each_arc, process_each_polygon, process_each_point, section, xmdf_dataset, xmdf_data, xmdf_group, xmdf_geometry
Used by: card, process_each_coverage, process_each_polygon
Example:

<process_each_point>
Info: Indicator to loop through each point in the given context.
Version(s): 2
Attributes: ignore_on_read,

order, i_order, j_order, source, dataset_widget

Children: card_name, export_format, separator, end_card, use_parameter, declare_parameter, executable_command, location, export_group, export_optional, process_on_condition, section, process_each_ neighbor, xmdf_dataset, xmdf_data, xmdf_group, xmdf_geometry
Used by: card, process_each_coverage, process_each_polygon, process_each_arc
Example:

<process_each_polygon>
Info: Indicator to loop through each polygon in the given context.
Version(s): 2
Attributes: ignore_on_read,

order, i_order, j_order, source

Children: card_name, export_format, separator, process_each_point, process_each_arc, end_card, use_parameter, declare_parameter, executable_command, export_group, export_optional, process_on_condition, section, process_each_neighbor, process_each_material, xmdf_dataset, xmdf_data, xmdf_group, xmdf_geometry
Used by: card, process_each_coverage
Example:

<process_each_row>
Info: Indicator to loop through each row in a table. Has the widget attribute that must be used. The widget attribute needs to be set to the name of a widget which belongs to the table to be iterated through. To iterate through the rows of a curve widget, use the name of the curve widget and a keyword, such as "#x".
Version(s): 2
Attributes: ignore_on_read,

widget, order, i_order, j_order

Children: card_name, export_format, separator, export_group, export_optional, process_on_condition, section, process_each_polygon, process_each_material, process_each_arc, process_each_point, executable_command, xmdf_dataset, xmdf_data, xmdf_group, xmdf_geometry
Used by: card, process_each_coverage, process_each_polygon, process_each_arc, process_each_point
Example: <process_each_row widget = "someColumnWidget">

<process_on_condition>
Info: Indicator to perform a certain action only if the condition is satisfied.
Version(s): 2
Attributes: ignore_on_read
Children: process_each_coverage, process_each_geometry, process_each_polygon, process_each_arc, process_each_point, card_name, export_format, separator, condition, use_file_def, xmdf_dataset, xmdf_data, xmdf_group, use_parameter, end_card, xmdf_geometry, export_location, export_group, export_optional, process_on_condition, section, process_each_row, process_each_material, process_each_neighbor, process_on_count, process_model
Used by: card, process_each_coverage, process_each_polygon, process_each_arc, process_each_point
Example:

<process_on_count>
Info: Indicator to perform a certain action only on certain iterations of a loop.
Version(s): 2
Attributes: ignore_on_read
Children: process_on_condition, process_each_geometry, process_each_material, section, export_optional, export_group, process_each_coverage, process_each_polygon, process_each_arc, process_each_point, card_name, export_format, separator, count_filter, xmdf_dataset, xmdf_data, xmdf_group, xmdf_geometry
Used by: card, process_each_coverage, process_each_polygon, process_each_arc, process_each_point
Example:

<push_button>
Info: The button to be used for a control_dataset. Can be SELECT, CREATE, or DELETE.
Version(s): 1, 2
Attributes: none
Children: none
Used by: control_dataset
Example: See control_dataset example.

<range>
Info: Determines the range of acceptable values in an edit_box. Can use the keywords GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN and LESS_THAN_EQUALS. Numbers assumed inclusive unless otherwise specified.
Version(s): 1
Attributes: none
Children: none
Used by: edit_box, any element that starts with "control" except: control_file_selector, control_dataset and control_date
Example: Example 1
<edit_box>                       	
    <range>0-1</range>
</ edit_box >

Example 2

<range>0 – 5.6546</range>

Example 3

<range>GREATER_THAN 0</range>

Example 4

<range>GREATER_THAN 0.0 - LESS_THAN 5.0</range>

Example 5 Both examples are equivalent

<range>0.0 - LESS_THAN 5.0</range>
<range>GREATER_THAN_EQUALS 0.0 - LESS_THAN 5.0</range>

<required>
Info: Used to indicate that something from the exported group must be used.
Version(s): 2
Attributes: none
Children: none
Used by: export_group
Example:

<role>
Info: A single entry in a combo box option for <roles>. Used to define the displayed text and range. The range specifies how many objects that can have this role.
Version(s): 3
Attributes: none
Children: text, range
Used by: roles
Example: Example of a culvert widget with a extra "Name" column
<control_set  unique_name="tblSetCulverts">
      <roles behavior = "SWAP">
	<role  text="upper">
 	   <range>1-1</range>
	</role>
	<role  text="lower">
 	   <range>1-1</range> 	
	</role>
       </roles>
       <column  text = "Name">
	<edit_box  unique_name="edtMyArcsName"
 	                  type="text">
	</edit_box>
        </column>
</control_set>

<roles>
Info: Defines the behavior of each role.
Version(s): 3
Attributes: behavior
Children: role
Used by: control_set
Example: Example of a culvert widget with a extra "Name" column
<control_set  unique_name="tblSetCulverts">
      <roles behavior = "SWAP">
	<role  text="upper">
 	   <range>EQUALS 1</range>
	</role>
	<role  text = "lower">
 	   <range>EQUALS 1</range> 	
	</role>
       </roles>
       <column text="Name">
	<edit_box    unique_name="edtMyArcsName"
 	                    type="text">
	</edit_box>
        </column>
</control_set>

<row>
Info: Typically you would only use row if you had a fixed table and wanted to display row text or to specify specific rows as read only. Row tags are placed inside a < table >.
Version(s): 1
Attributes: text,

read_only

Children: optional, dependency, text_box, combo_box, edit_box, all elements starting with "custom_control", check_box, text_style
Used by: table
Example: Row 1 is read only, row 2 isn’t
< table >
       …
   <row   text = "Row1"  read_only></row>
   <row   text = "Row2"></row>
< /table >

<separator>
Info: Determines how to separate text that is being exported into a text file.
Version(s): 1
Attributes: none
Children: none
Used by: export_each_row
Example: See <export_table>

<simulation>
Info: The simulation object that represents what will run and be exported upon launching a model. There can only be one per model.
Version(s): 2
Attributes: use_icon
Children: takes, executable, menu_item, input_files, output_files
Used by: model
Example: See the model example.

<snap>
Info: Snaps the arc, point or polygon in a coverage to the underlying geometry (mesh, grid, etc) that is defined by the <declare_coverage> bind_to attribute
Version(s): 3
Attributes: none
Children: snap_exterior, snap_interior, location
Used by: arc_att, point_att, polygon_att
Example: Snaps an arc boundary condition to the interior of the mesh when the arc type is Monitor Line and to the exterior when the arc is a Inlet-Q.
<declare_coverage name= "Boudary Conditions" bind to ="MESH2D">
   <arc_att>
       <menu_item double_click = "true" text = "Assign Linear BC"
                               link_to = "Linear BC" </menu_item>
           <snap>
     	    <snap_exterior>
       	        <condition>cbxLineType EQUALS "Inlet-Q"
                   </condition>
     	    </snap_exterior>
     	    <snap_interior>
       	        <condition>cbxLineType EQUALS "Monitor-Line" </condition>
     	    </snap_interior>  
   	</snap>
     </arc_att>
</coverage>

<snap_exterior>
Info: Snaps the arc, point or polygon in a coverage to the closest exterior point, arc, or polygon of the underlying geometry.
Version(s): 3
Attributes: none
Children: condition
Used by: snap
Example: See <snap>

<snap_interior>
Info: Snaps the arc, point or polygon in a coverage to the closest interior point, arc, or polygon of the underlying geometry.
Version(s): 3
Attributes: none
Children: condition
Used by: snap
Example: See <snap>.

Elements T - Z

<table>
Info: Table widget with columns and rows. Will most likely have multiple column and row tags (version 3). Using the attribute fixed_row_count means that the user can’t add or delete rows. Not using the fixed_row_count , an insert and delete button will be included at the bottom of the table.
Version(s): 1
Attributes: read_only,

fixed_row_count (version 3), max_row_count (version3), min_row_count (version 3), min_height (version3), unique_name

Children: column, row, dependency, text_style
Used by: item
Example: (version 3) Read only table with 2 columns and 3 rows. The number of rows are fixed.
< table unique_name = "myTable"   
            read_only
            fixed_row_count="3">
   <column   text = "hours"</column>
   <column   text = "minutes"</column>
</ table >

<take_coverage>
Info: Represents a coverage that can be taken in the project explorer.
Version(s): 2
Attributes: limit
Children: declare_parameter, condition, use_coverage
Used by: simulation, attribute_set(version 3)
Example: See takes example.

<take_mesh2d>
Info: Represents a coverage that can be taken in the project explorer.
Version(s): 2
Attributes: limit, linear
Children: declare_parameter, condition
Used by: simulation, attribute_set(version 3)
Example: See takes example.

<takes>
Info: Represents what can be dragged under another object in the project explorer.
Version(s): 2
Attributes: none
Children: declare_parameter, take_coverage, take_mesh2d, take_grid2d
Used by: simulation, attribute_set(version 3)
Example: Example 1

This example shows a simulation that can take a coverage and a 2D mesh which uses linear elements.

<takes>
 <take_coverage limit = "1">
   <use_coverage>My Cov</use_coverage>
   <condition>""</condition>
 </take_coverage>
 <take_mesh2d limit = "1" linear = "true">
   <condition>""</condition>
 </take_mesh2d>
 <declare_parameter>meshCov</declare_parameter>
</takes>

Example 2 This example shows taking one type of coverage OR another type of coverage.

<takes>
 <take_coverage limit = "1">
   <use_coverage>My Cov</use_coverage>
   <use_coverage>My Other Cov</use_coverage>
   <condition>""</condition>
 </take_coverage>
 <declare_parameter>monitorCov</declare_parameter>
</takes>

<text_box>
Info: Widget that displays text that is not editable.
Version(s): 1
Attributes: alignH, alignV, text, unique_name
Children: dependency, text_style
Used by: item, row, column
Example: <text_box unique_name = "edtD50Units" alignH= "CENTER"
       text = "mm">
</text_box>

<text_size>
Info: Sets the point size of the text. Ranges from 8 to 20. Added in SMS 11.2.
Version(s): 1, 2
Attributes: none
Children: none
Used by: text_style
Example: This would set the size of the text to 20pt. when the value in the edit_box is less than 0.0.
<edit_box>
  <unique_name>edtA</unique_name>
  <default>1.0</default>
  <text_style>
      <text_size>20</text_size>
      <condition>edtA LESS_THAN 0.0</condition>
  <text_style>
</edit_box>

<text_style>
Info: Holds the style options for the text. Added in SMS 11.2.
Version(s): 1
Attributes: bold, italic, strike_through, text_size, underline
Children: color, condition
Used by: group, item, text_box, combo_box, edit_box, all elements starting with "custom_control", check_box, options
Example: This would bold the text when the value in the edit_box is less than 0.0.
<edit_box>
 <unique_name>edtA</unique_name>
 <default>1.0</default>
 <text_style   bold   text_size="12">
     <condition>edtA LESS_THAN 0.0</condition>
 <text_style>
</edit_box>

<title_format>
Info: This indicates what the title of an object in an h5 file is. Uses the standard printf and sprintf format ([www.cplusplus.com/reference/clibrary/cstdio/printf/ www.cplusplus.com/reference/clibrary/cstdio/printf/]). Works the same as export_format.
Version(s): 3
Attributes: none
Children: none
Used by: h5_group, h5_geometry, h5_dataset, h5_data
Example:

<unique_link_name>
Info: A unique name given to a link when using link_to_xml. This is needed to identify the unique_name elements from the file, especially when a linked to XML file is used multiple times. Hence, when using link_to_xml, this tag is required. No spaces or punctuation are allowed in the name.
Version(s): 1, 2
Attributes: none
Children: none
Used by: link_to_xml
Example: See link_to_xml example.

<update_text>
Info: Used to match the output text from a model to determine the progress amount.
Version(s): 3
Attributes: none
Children: none
Used by: executable_progress_update
Example: Lets say our model outputs "CASE 1 of 35" then "CASE 2 of 35" etc..
<executable name="My Model Main"</executable>
   <executable_progress_update   amount="0"  max ="35">
       <update_text>"CASE %d of %d" #progress_amount, #progress_max       
        </update_text>
    </executable_progress_update> 
</executable>

<use_coverage>
Info: Use a coverage that has previously been defined in the attribute type in <declare_coverage>
Version(s): 2
Attributes: none
Children: none
Used by: declare_coverage, take_coverage
Example: See the coverage example and the takes example.

<use_file_def>
Info: A way to access file data that has been previously declared with <declare_file_def>.
Version(s): 2
Attributes: control_file
Children: output_file, input_file
Used by: file
Example:

<use_parameter>
Info: A way to access file data that has been previously declared with <declare_parameter>.
Version(s): 3
Attributes: none
Children: none
Used by: anything beginning with "process_each", card, control_dataset
Example:

<x_column>
Info: Used to define the attributes in the x column such as text (heading).
Version(s): 2
Attributes: text
Children: none
Used by: control_curve
Example: This example creates a curve button with the date/time flag.
<item>
   <control_curve>
       <unique_name>myCurve1</unique_name>
       <max_rows>10</max_rows>
       <x_column>
          <text>Time
       </x_column>
       <y_column>
  	<text>Velocity</text>  		 
       </y_column>	
   </control_curve>
 …

<xmdf_data>
Info: Writes data to the XMDF file. The attributes rows, columns and layers indicate what information should be written for each row, column or layer respectively. By default, the attributes are set to "#specified". If no attributes are set then each export_format will be assumed to be a new row. The attribute columns can only be set if the rows attribute is set. The attribute layers can only be set if both the rows attribute and the columns attribute is set. The datatype attribute can be set to "float", "double", "integer", or "text". If the datatype attribute is not set or is set to "text" then export_format can be used. Otherwise, only export can be used. If more than 1 dimension is used, then the datatype cannot be "text". If 3 dimensions are used, then the datatype cannot be "integer".
Version(s): 3
Attributes: datatype
Children: export_format, title_format, export
Used by: xmdf_group, file_def, and anything beginning with "process_each".
Example: This writes out 6 different widgets’ values, one on each row.
<xmdf_data datatype = "text">
  <export_format>"%s", widget1</export_format>
  <export_format>"%s", widget2</export_format>
  <export_format>"%s", widget3</export_format>
  <export_format>"%s", widget4</export_format>
  <export_format>"%s", widget5</export_format>
  <export_format>"%s", widget6</export_format>
</xmdf_data>

This writes out a table with each row being a different timestep and each column a different point. Each export would be written to different layers.

<xmdf_data rows = "#timestep" columns = "#point" datatype = "double">
  <export>#component1</export>
  <export>#component2</export>
</xmdf_data>

<xmdf_dataset>
Info: Writes out all of the data of a dataset in an SMS friendly format to an xmdf file. The attribute null_value is optional. If used, it specifies a numeric value that will be treated by the model as inactive. By default, SMS will write an activity array. The attribute location specifies where data should be taken from. The attribute widget specifies to only write the dataset referenced by the named widget. If no title_format is used, then the name of the dataset will be used.
Version(s): 3
Attributes: null_value,

location, widget

Children: title_format
Used by: xmdf_group, xmdf_geometry, process_each_coverage.
Example: This writes out the hardbottom dataset as specified by the widget edtHardBottomWidget that exists in some dialog. Any value that is inactive is written as -999.0.
<xmdf_dataset widget = "edtHardBottomWidget" location = "all" null_value = "-999.0">
  <title_format>"Hardbottom"</title_format>
</xmdf_dataset>

<xmdf_dimension>
Info:
Version(s): 3
Attributes: dimension
Children:
Used by: xmdf_data
Example:

<xmdf_geometry>
Info: Writes a geometric object in an SMS friendly format to an XMDF file. Different geometric types will be written differently from each other. If no title_format is used, then the name of the geometry will be used.
Version(s): 3
Attributes: none
Children: title_format, xmdf_dataset
Used by: file_def, xmdf_group
Example:

<xmdf_group>
Info: Writes an XMDF group to the xmdf file. A title_format must be used. The group_type attribute must be used.
Version(s): 3
Attributes: group_type
Children: xmdf_group, xmdf_geometry, xmdf_dataset, xmdf_data, title_format, and anything beginning with "process_each".
Used by: file_def, xmdf_group, xmdf_geometry, xmdf_dataset, and anything beginning with "process_each".
Example:

<y_column>
Info: Used to define the attributes in the y column such as text (heading).
Version(s): 2
Attributes: text
Children: none
Used by: control_curve
Example: See example in x_column

Attributes

Attributes A-C

<alignH>
Info: Align text horizontally in a text box.
Values: bottom, top, center
Version(s): 1
Used by: text_box

<alignV>
Info: Align text vertically in a text box.
Values: bottom, top, center
Version(s): 1
Used by: text_box

<amount>
Info:
Values: integer
Version(s): 3
Used by: execute_progress_update

<behavior>
Info: When a user changes a role, you can define behaviors that automatically update the roles.
Values: None: no enforcement of rules in the dialog

Swap: all assigned up front. When some object is being assigned a role and is there are already a max number of objects assigned to the role, then any objects that had that role will be switched to the old role of the object being asgined until we surpass the maximum amount of that role, then unassigned.

Max_hide: Don’t allow the role to show up in the combo box to be assigned to a "object" if the max has been reached for that role.

Swap_max_default: (not implemented yet) Enforce max with default is like swap, but instead of the old option, it changes it to the default or unassigned (if no default provided) value. Chooses the first or last "object" of the role it encounters to change.

Version(s): 3
Used by: roles

<bind_to>
Info: Binds a coverage to a mesh, or grid
Values: MEHS2D, CGRID
Version(s): 3
Used by: declare_coverage

<blue>
Info: A color. Ranges from 0 to 255. Added in SMS 11.2. See also green and red.
Values: integer (0 to 255)
Version(s): 1
Used by: color

<bold>
Info: Sets the text to be bolded when this attribute is used. Added in SMS 11.2.
Values: none
Version(s): 1
Used by: text_style

<columns>
Info: Represents a column in the H5 file that we are mapping to
Values: #timestep, #point, #arc, #polygon, #coverage, #material
Version(s): 3
Used by: xmdf_data

<corner_skip>
Info: Skip corners when exporting neighbors
Values: true, false
Version(s): 3
Used by: process_each_neighbor

<create_file>
Info: If attribute is specified, then create_file is true
Values: none
Version(s): 3
Used by: control_file_selector

<dataset_type>
Info: Specify the dataset type as scalar or vector. Default is scalar.
Values: scalar, vector
Version(s): 1
Used by: control_dataset

<dataset_widget>
Info: When exporting points from a dataset, the attribute identifies the dataset widget being used (contains the selected dataset).
Values: Name of the dataset_widget
Version(s): 3
Used by: process_each_point

<datatype>
Info:
Values: float, double, integer, text
Version(s): 3
Used by: xmdf_data

<default>
Info: Sets the initial default value of a widget. Can also be used to state the default combo-box option.
Values: edit_box or any element that begins with custom_control: double

check_box: checked, unchecked
combo_box: no values or empty string
export_optional: true, false

Version(s): 1
Used by: edit_box, check_box, option, any element that begins with "control" ("custom_control" in version 1), combo_box, export_optional

<default_executable_name32>
Info: Sets the initial default file name for the 32-bit executable.
Values: text
Version(s): 3
Used by: executable

<default_executable_name64>
Info: Sets the initial default file name for the 64-bit executable.
Values: text
Version(s): 3
Used by: executable

<description_text>
Info: A detailed description of why a model check failed. This text is displayed to the user.
Values: string
Version(s): 3
Used by: model_check

<dim>
Info: Specifies that when the dependency is false, the widget should be dimmed, not hidden.
Values: none
Version(s): 1
Used by: dependency

<dimension>
Info: Specifies values for rows, columns and layers.
Values: rows, columns, layers
Version(s): 3
Used by: xmdf_dimension

<display>
Info: This is used to describe how the dialog should display.

flex is the default. In this mode, there is a tree on the left hand side of the dialog. Clicking on an item in the tree will display that portion of the tree along with any child items below the clicked item. Other items will be hidden on the right hand side.

full will show a tree on the left hand side of the dialog. Clicking on an item in the tree will move the scroll bars on the right hand side to make the item visible. All items that are not disabled due to dependencies are shown on the right hand side of the dialog in this mode.

no_nav will have no left hand side tree. Instead, all items that are not disabled due to dependencies are shown in this mode. Added in SMS 11.2.

Values: flex, full, no_nav
Version(s): 1
Used by: declare_page

<display_options_hide>
Info: Don’t show a specific combo-box option in the display option dialog of SMS. This only applies to <combo_box> ‘s that have included the <display_options> element. Default value is false.
Values: true, false
Version(s): 3
Used by: option

<double_click>
Info: The double_click attribute (if true) indicates that this is the menu item to be launched on a double click event.
Values: true, false
Version(s): 2
Used by: menu_item

Attributes E-L

<executable_order>
Info: Defines the order in which this executable should run relative to other executables in the same simulation.
Values: integer ≥ 1
Version(s): 2
Used by: executable

<feature>
Info: Determine whether to select points, arcs or polygons (poly).
Values: point, arc, poly
Version(s): 2
Used by: control_feature_selector, process_each_neighbor

<fix_text>
Info: A brief summary of what steps to take to fix a model check failure. This text is displayed to the user.
Values: string
Version(s): 3
Used by: model_check

<file_type>
Info: Specifies a file type of <declare_file_def> defines the file type.
Values: CARD_ASCII, SEQUENTIAL_ASCII, SEQUENTIAL_BINARY, XMDF
Version(s): 2
Used by: declare_file_def, section

<filter>
Info: When selecting a file, used to filter the available files by the extension type. The filter tag contains two parts. The first part is the text describing the filter that gets displayed to the user. The second part is a pair of parentheses that contains the actual filter. For example: Cmcards file (.cmcards)
Values: string (string)
Version(s): 3
Used by: control_file_selector

<flags>
Info: Flags are optional, and are used to modify the behavior/appearance of the control_curve. Only 1 flag is currently defined: XY_USEDATE. When this flag is set, the x column becomes a date/time calendar.
Values: XY_USEDATE
Version(s): 2
Used by: control_curve

<footer>
Info: Exported text inside a table that is placed at the end.
Values: string
Version(s): 2
Used by: export_table, export_each_row, export_column

<geometry>
Info: The default behavior is to only allow geometric objects that are contained under a simulation to be a candidate for selection. Otherwise "all" geometries are candidates.
Values: all
Version(s): 2
Used by: control_dataset

<green>
Info: A color. Ranges from 0 to 255. Added in SMS 11.2. See also blue and red.
Values: integer (0 to 255)
Version(s): 1
Used by: color

<header>
Info: Exported text inside a table that is placed at the beginning.
Values: string
Version(s): 1
Used by: export_table, export_each_row, export_column

<help_button_url>
Info: Provides online help when the help button is clicked. Loads the specified url in a web browser. Example: help_button_url="www.aquaveo.com"
Values: string
Version(s): 2
Used by: declare_dialog

<help_button_wiki>
Info: Provides online help when the help button is clicked. Loads the specified url in a web browser. Example: help_button_wiki="DynSrhModelControl"
Values: string
Version(s): 2
Used by: declare_dialog

<increment>
Info: An increment values. Used Increment from the min time to the max time, using the increment.
Values: Integer ≥ 1
Version(s): 2
Used by: control_set

<interior_polygon>
Info: Only used for polygons when finding neighbors. Specify the polygon preference.
Values: interior_first, exterior_first, interior_only, exterior_only
Version(s): 3
Used by: process_each_neighbor

<italic>
Info: Sets the text to be italicized when the element is specified. Added in SMS 11.2.
Values: none
Version(s): 1
Used by: text_style

<i_order>
Info: Start at min i and go to max. Only used by cartesian grids and process_each_neighbor on quad trees.
Values: ascending, descending
Version(s): 3
Used by: process_each_arc, process_each_coverage, process_each_material, process_each_point, process_each_polygon, process_each_row

<j_order>
Info: Start at min j and go to max. Only used by cartesian grids and process_each_neighbor on quad trees.
Values: ascending, descending
Version(s): 3
Used by: process_each_arc, process_each_coverage, process_each_material, process_each_point, process_each_polygon, process_each_row

<layers>
Info: Represents a layer in the H5 file to which we are mapping.
Values: #timestep, #point, #arc, #polygon, #coverage, #material
Version(s): 3
Used by: xmdf_data

<location>
Info: The location from which we will be getting dataset values.
Values: TBD
Version(s): 3
Used by: xmdf_dataset

Attributes M-S

<max>
Info: A max value. The default is 2.147 billion.
Values: Integer ≥ 1
Version(s): 2
Used by: control_set, execute_progress_update

<max_row_count>
Info: Used to set the maximum number of rows allowed in a table or curve.
Values: integer
Version(s): 3
Used by: table, control_curve

<min>
Info: A minimum value. The default is 0 (zero).
Values: Integer ≥ 1
Version(s): 2
Used by: control_set

<model>
Info: Specify the model name of the executable
Values: string
Version(s): 2
Used by: control_executable

<name>
Info: Specify a name. When used by dialog this is required.
Values: string
Version(s): 3
Used by: declare_file_def, declare_dialog, model, control_dataset, declare_coverage

<neighbor_per_edge>
Info: Minimum number of neighbors in any direction. The default value is 0 (zero).
Values: integer
Version(s): 3
Used by: process_each_neighbor

<null_id>
Info: Integer for an id of a neighbor not found
Values: integer
Version(s): 3
Used by: process_each_neighbor

<null_value>
Info: The null_value for the dataset.
Values: any integer, any double
Version(s): 3
Used by: xmdf_dataset

<optional>
Info: Placed inside widgets to suppress a warning message from being displayed if the widgets data is empty. By default, data associated with a widget is required. If the <optional> tag is included and the widget’s data is empty, a warning message won’t be displayed.
Values: none
Version(s): 2
Used by: text_box, combo_box, edit_box, table, any element that starts with "custom_control", check_box, column, row

<order>
Info: The way spatial entity objects are to be sorted before iterating. Currently only available for Cartesian grids and quadtrees (process_each_neighbor).
Values: clockwise, counter_clockwise, ij, ji
Version(s): 3
Used by: process_each_arc, process_each_material, process_each_point, process_each_polygon, process_each_neighbor

<problem_text>
Info: A brief summary of why a model check failed. This text is displayed to the user.
Values: string
Version(s): 3
Used by: model_check

<required>
Info: Specifies that at least one option in the group must be present.
Values: true
Version(s): 3
Used by: export_group

<rows>
Info: Represents a row in the .h5 file to map to
Values: #timestep, #point, #arc, #polygon, #coverage, #material
Version(s): 3
Used by: xmdf_data

<select_time>
Info:
Values: single, #range, #all
Version(s): 2
Used by: control_dataset

<source>
Info: When exporting things such as point or arc locations, the source identifies the desired location such as on the coverage or on the geometry (grid, mesh)
Values: coverage (use locations from coverage), snapped (use the snapped location on a geometry from a coverage), geometry (use locations from geometry)
Version(s): 3
Used by: process_each_polygon, process_each_arc, process_each_point, process_each_material, process_each_coverage, process_each_neighbor

<strike_through>
Info: Sets the text to have a line through the middle when the element is specified. Added in SMS 11.2.
Values: none
Version(s): 1
Used by: text_style

Attributes T-Z

<text>
Info: Text that is displayed in the SMS user interface.
Values: any text string
Version(s): 1
Used by: group, item, text_box, check_box, option, x_column, y_column, column, row, display_options, menu_item, declare_page, executable

<type>
Info: For <display_options> defines point, or arc
Values: display_options: arc, point

edit_box: text, integer, double

Version(s): 2
Used by: declare_coverage, display_options, edit_box

<time_type>
Info: Type of time either transient, steady state, or all. Default is all.
Values: transient, steady state, all
Version(s): 2
Used by: control_dataset

<underline>
Info: Sets the text to be underlined when this attribute is specified. Added in SMS 11.2.
Values: none
Version(s): 1
Used by: text_style

<unique_name>
Info: A unique name given to an widget, which determines how to reference the widget. This is needed if the widget is being used as a dependency (parent), or if the widget value is being exported. When a unique_name is being referenced it should be by the file (nothing if current file), then unique_name. No spaces or punctuation (except _) are allowed in the name. The name must contain at least 1 non-numeric letter. The name must be unique. Names are not case sensitive, hence "aaa" is the same as "AAA".
Values: string (unique)
Version(s): 1
Used by: card, text_box, combo_box, edit_box, table, all elements starting with "custom_control", check_box, text_box, control_curve

<unit_keyword>
Info: The units of a widget that begins with "control_" (where applicable). This provides a mapping for SMS to know the unit type.
Values: Length:
  • #LEN_KM (kilometers)
  • #LEN_M (meters)
  • #LEN_FT (feet)
  • #LEN_CM (cm)
  • #LEN_MM (mm)
  • #LEN_INCH (inch)
  • #LEN_YD (yd)
  • #LEN_MILE (mile)
  • #LEN_UM (um)

Time:

  • #TIME_SECONDS
  • #TIME_HOURS
  • #TIME_MINUTES
  • #TIME_DAYS
  • #TIME_WEEKS

Volume:

  • #VFLOW_CU_FT_PER_SEC
  • #VFLOW_CU_M_PER_SEC
Version(s): 1
Used by: option

<use_dialog>
Info: Determines which dialog definition we are linking to
Values: string
Version(s): 2
Used by: material_att, menu_item

<use_file>
Info: Complex command arguments can be built by referencing a <declare_file>.
Values: string = a <declare_filename >
Version(s): 3
Used by: command_args

<use_icon>
Info: Allows for a custom icon to be imported into sms for coverages and simulations. When a coverage or simulation is create the custom icon will be shown instead of the default one in the tree structure. The icon must be given to Aquaveo in advance. The icon dimensions are 16x16 pixels.
Values: string = (icon_name.bmp)
Version(s): 3
Used by: simulation, declare_coverage

<version>
Info: Sets the version number
Values: integer
Version(s): 1
Used by: model, dynamic_model

<z_is_elev>
Info: If the z value is elevation, set this to true. Default is false.
Values: true, false
Version(s): 2
Used by: declare_coverage

Tutorial Links

For more information on using the Dynamic Model Interface, download the XML file tutorial: