Difference between revisions of "Windows Right Click Functionality"

From Tuflow
Jump to navigation Jump to search
(Created page with "The following method allows custom context menu options, but involves a free utility called '''FileMenu Tools''' the is available for download at [http://www.lopesoft.com/en/f...")
 
Line 22: Line 22:
  
 
[[File:FileMenu Tools Run TUFLOW.png|frame|none|Running TUFLOW using FileMenu Tools]]
 
[[File:FileMenu Tools Run TUFLOW.png|frame|none|Running TUFLOW using FileMenu Tools]]
 +
 +
==Other Filemenu Tools tasks==
 +
Another example of FileMenu Tools could be to convert between .flt and .asc grids or vice versa.  To do this:
 +
# Enter a ''Description'' (e.g Convert format using asc_to_asc)
 +
# Under ''Element Types'', set ''Files'' to '''Yes'''
 +
# Under ''Element Types'', set ''Extensions'' to '''flt,asc''' (this is available to both .asc and .flt files)
 +
# Under ''Element Types'', set both ''Folders'' and ''Drives'' to '''No'''
 +
# Under ''Program Properties'' set the ''Program'' to the full path to the asc_to_asc utility. For my machine this is: "C:\TUFLOW\Utilities\w64\asc_to_asc_w64.exe"
 +
# Under ''Program Properties'' set the ''Arguments'' field to '''-conv %FILENAMES%'''
 +
# Select Apply and exit the configuration.<br>
 +
<br>
 +
Another example of FileMenu Tools could be to convert the maximum velocities from an .xmdf file to a .mif file.  This would look like the configuration below:<br>
 +
[[File:FileMenuTools xmdf.JPG]]
 +
 +
Use your imagination to create others!

Revision as of 11:10, 5 August 2014

The following method allows custom context menu options, but involves a free utility called FileMenu Tools the is available for download at http://www.lopesoft.com/en/filemenutools/download. In the example below this is configured to run TUFLOW, however, this tool can also be configured for post-processing of TUFLOW output files.<.br> Note A word of caution, be careful with the installation dialogues as this may try to install additional software.

Configuring FileMenu Tools

To use this program to run TUFLOW from a right click window, follow the steps below:

  1. Download and install FileMenu Tools using the link provided above
  2. Open the Configure FileMenu Tools interface (this can be accessed from the Windows Start Menu)
  3. Under Actions select Add Command
  4. Highlight the newly created item and select Properties from the toolbar
  5. Enter the desired menu text under Menu Text, I have used 'Run TUFLOW 2010-10-iSP-w64 (this tells me I am starting the Single Precision (iSP), 64 bit (w64) version of the 2010-10 release of TUFLOW
  6. Enter a Description
  7. Under Element Types, set Files to Yes
  8. Under Element Types, set Extensions to tcf (the Run TUFLOW option will only be available for .tcf files)
  9. Under Element Types, set both Folders and Drives to No
  10. Under Program Properties set the Program to the full path to the TUFLOW executable on your system. For my machine this is: C:\TUFLOW\Releases\2010-10\w64\TUFLOW_iSP_w64.exe
  11. Under Program Properties set the Arguments field to %FILENAMES%
  12. Select Apply and exit the configuration.

The completed FileMenu Tools configuration page is shown in the image below.

File Menu Tool Configuration Page

Running TUFLOW

The FileMenu Tool should now be configured. To run TUFLOW navigate to a TUFLOW Control File (.tcf) and right click on the file. In the menu dialogue that appears, select FileMenu Tools >> Run TUFLOW. This is shown in the image below.

Running TUFLOW using FileMenu Tools

Other Filemenu Tools tasks

Another example of FileMenu Tools could be to convert between .flt and .asc grids or vice versa. To do this:

  1. Enter a Description (e.g Convert format using asc_to_asc)
  2. Under Element Types, set Files to Yes
  3. Under Element Types, set Extensions to flt,asc (this is available to both .asc and .flt files)
  4. Under Element Types, set both Folders and Drives to No
  5. Under Program Properties set the Program to the full path to the asc_to_asc utility. For my machine this is: "C:\TUFLOW\Utilities\w64\asc_to_asc_w64.exe"
  6. Under Program Properties set the Arguments field to -conv %FILENAMES%
  7. Select Apply and exit the configuration.


Another example of FileMenu Tools could be to convert the maximum velocities from an .xmdf file to a .mif file. This would look like the configuration below:
FileMenuTools xmdf.JPG

Use your imagination to create others!