RCL/2004
(RockWorks Command Language)
Preliminary Technical Reference
Last updated 02/09/04/JPR
Almost all of the applications within RockWorks may be accessed, sans RockWorks menus, by placing special commands within an ASCII text file. The target applications for this capability include;
The net result would be a contour map on the screen without the normal RockWorks menus.
Note that it addition to running applications via an RCL script, it is also possible to display the RockWorks sub-menus. This is often a more suitable way for third-party developers to use the RockWorks capabilities while providing their users with greater flexibility.
There are four ways to launch the RCL processor;
Note (again): Command line parameter must be in enclosed by quotation marks to keep Windows from terminating the command parameter if there's a space in the file path.
The RCL (RockWorks Command Language) has been completely redesigned. The previous RockWorks/2002 scheme, based on XML (eXtensible Markup Language), proved to be far too complex for casual use. This new version consists of simple commands preceded by optional parameters. Unlike the previous version, which only covered a few operations, the new RCL includes commands for almost every RockWorks application.
RCL commands are stored within tab or space-delimited ASCII files. A typical command file consists of a series of "DEFINE" statements followed by an "EXECUTE" command. The DEFINE statements define the parameters that are used by the associated EXECUTE command. For example, let's say that you wanted to import an ASCII file into the RockWorks Geological Utilities datasheet. You would begin by defining the name of the ASCII file that is to be imported and then you would execute the ASCII2ATD import program.
Example:
: Import ASCII data into Geological Utilities datasheet
: and create contour map.
DEFINE: ASCII2ATD INPUT_FILE XYZ.txt
EXECUTE: ASCII2ATD
: Create contour map.
DEFINE: EZMAP X_COLUMN 1
DEFINE: EZMAP Y_COLUMN 2
DEFINE: EZMAP Z_COLUMN 3
DEFINE: GENERAL 2D_OUTPUT EZMAP.RKW
EXECUTE: EZMAP
All RCL commands must include a colon as the last character.
Examples:
DEFINE ASCII2ATD INPUT_FILE XYZ.txt <--- BAD (No colon after "DEFINE")
DEFINE: ASCII2ATD INPUT_FILE XYZ.txt <--- GOOD (Colon after "DEFINE")
Adding Comments
Blank lines and lines that begin with a colon in the first column are ignored by the RCL engine. Comment lines are therefore preceded by a colon.
Example:
: Import Data Into Datasheet.
DEFINE: ASCII2ATD INPUT_FILE ASCII XYZ.txt
DEFINE: ASCII2ATD INCLUDES_HEADER False
EXECUTE: ASCII2ATD
: Create EZ-Map.
DEFINE: EZMAP X_COLUMN 1
DEFINE: EZMAP Y_COLUMN 2
DEFINE: EZMAP Z_COLUMN 3
DEFINE: GENERAL 2D_OUTPUT EZMAP.RKW
EXECUTE: EZMAP
: Convert EZ-Map To WMF Format.
DEFINE: RP2D_WMF INPUT_FILE EZMAP.RKW
DEFINE: RP2D_WMF OUTPUT_FILE EZMAP.WMF
EXECUTE: RP2D_WMF
: Terminate RockWorks.
HALT:
Examples
The RockWorks tutorial folder (My Documents/RockWorks2004/Samples) include several sample RCL script files that are designed to be used in conjunction within the other tutorial files. Please have a look at one of these files in order to get a feel for what an RCL file looks like.
Creating Two-Dimensional Diagrams
Before executing any procedure that creates two-dimensional diagrams, you must specify the name for the output (RKW graphic) file. Otherwise, RockWorks will leave the file name in an "undefined" state thereby producing an error . This is accomplished by setting the GENERAL,2D_OUTPUT variable;
Example:
DEFINE: 2D_STRUCTURE STRAT_UNIT 1
DEFINE: 2D_STRUCTURE GRID_NAME Structure01.grd
DEFINE: GENERAL 2D_OUTPUT Structure01.rkw <---
EXECUTE: 2D_STRUCTURE
Creating Three-Dimensional Diagrams
Before executing any procedure that creates three-dimensional diagrams, you must specify the name for the output (XML graphic) file. Otherwise, RockWorks will leave the file name in an "undefined" state thereby producing an error . This is accomplished by setting the GENERAL,3D_OUTPUT variable;
Example:
DEFINE: GENERAL 3D_OUTPUT Stratigraphy Logs.xml <---
EXECUTE: LOG_FENCE
Enabling & Disabling Diagram Display
Let's say that you want RockWorks to create a two-dimensional diagram but you don't necessarily want the user to see it (e.g. you intend to overlay the diagram later on with another diagram or you want to export the diagram to a bitmap format and then import it into your program). This can be accomplished by disabling the automatic display within RockPlot/2D via the GENERAL,2D_DISPLAY setting;
Example:
DEFINE: GENERAL 2D_DISPLAY False
In a similar fashion, the automatic display of three-dimensional diagrams may also be supressed viat the GENERAL,3D_DISPLAY setting.
Example:
DEFINE: GENERAL 3D_DISPLAY False
The following commands describe what may be entered into an RCL script file.
Purpose:
Loads a specified ATD (ASCII Tab-Delimited) file into the Geological Utilities datasheet.
Parameters:
File Name: Name of ATD file that is to be loaded into the Geological Utilities Datasheet.
Example:
DATASHEET: Hydrochemistry.atd
Purpose:
Define a variable setting (something that would normally be accomplished via a menu).
Parameters:
Group Name:
Item Name:
Variable Setting:
Example:
DEFINE: IDATA_SOLID TRACK 1
DEFINE: IDATA_SOLID NEW_MODEL_NAME Benzene.mod
DEFINE: FENCELOC SHOW_MAP False
DEFINE: FENCELOC STYLE 2
DEFINE: PROFILE X1 652660
DEFINE: PROFILE Y1 5535000
DEFINE: PROFILE X2 653600
DEFINE: PROFILE Y2 5535980
DEFINE: GENERAL 2D_OUTPUT Benzene Profile.rkw
EXECUTE: IDATA_PROFILE
Comments:
The two-part variable name follows the same syntax as the Windows registry and Windows INI files.
The final item is the actual setting that is to be assigned to a variable.
Purpose:
Launches a RockWorks task (e.g. generating a contour map).
Parameters:
Application Name: Click here to view a list of available commands.
Example:
EXECUTE: EZMAP
Comments:
Be sure to define all necessary variables (via the DEFINE) command before listing the EXECUTE command.
Purpose:
The EXIT command will terminate the RCL processing and display the main RockWorks menu.
Parameters:
None.
Example:
EXIT:
Comments:
If you wish to terminate RockWorks without showing the RockWorks menu, use the HALT command instead.
Purpose:
The HALT command will terminate the RCL as well as RockWorks.
Parameters:
None.
Example:
HALT:
Comments:
If you wish to terminate the RCL process but return to the RockWorks menu, use the EXIT command instead.
Purpose:
The MENU command is used to display a RockWorks menu.
Parameters:
Menu Name:
Example:
MENU: TERNARY
Comments:
If the user selects the OK option from this menu, the program will perform the appropriate operation. Conversely, if the user select the Cancel option from within this menu, the RCL scripting will continue without returning to the main RockWorks menu.
Purpose:
The PROJECT command is used to define the folder (aka directory) in which all of the data is stored.
Parameters:
Folder Name:
Example:
PROJECT: C:\SITE_27B
Comments:
It is important that the PROJECT command be listed at the top of the
Purpose:
The PROMPT command is used to display a simple message on the screen.
Parameters:
Caption: The message that will be displayed within the dialog box.
Example:
PROMPT: Gridding completed. Press OK to contour the grid.
Comments:
Purpose:
Restore all menu settings to their original default states.
Parameters:
None.
Example:
RESTORE:
Comments:
The defaults values are defined within the Menus.txt file that is stored within the \Program Files\RW2004\Tables folder.
The following table lists the available parameters for the EXECUTE command.
| RockWorks Menu Item | RCL Command | Example |
| File | ||
| Project Folder | PROJECT | |
| New Datasheet | ||
| New Log | ||
| Open Datasheet | DATASHEET | |
| Erase | ||
| Save | ||
| Save As | ||
| Import | ||
| Into Borehole Manager | ||
| ASCII | TEXT_2_BM | |
| RockWorks/99 | RW99_2_BM | |
| Penetrometer | PEN_IMPORT | |
| XLS | XLS_2_BM | |
| Into Geological Utilities | ||
| ASCII | ASCII2ATD | RCL_01.txt |
| DBF | DBF_2_GU | |
| Delorme GPL | DELORME | |
| DXF | ||
| ASCII | DXF_2_XYZA | |
| DataGrid | DXF_2_XYZB | |
| GSM-19 | GSM19_IMP | |
| Laser Atlanta | LASER_IMP | |
| ModPath | MODPATH_IMP | |
| NEIC | NEIC_IMPORT | |
| RockBase | ROCKB_IMP | |
| SEG-P1 | SEGP1_IMP | |
| XLS | XLS_2_GU | |
| Export | ||
| From Borehole Manager | ||
| ASCII | BM_2_TEXT | |
| Excel | BM_2_XLS | |
| From Geological Utilities | ||
| ASCII | GU_2_TEXT | |
| DBF | GU_2_DBF | |
| XLS | GU_2_XLS | |
| Transfer | ||
| Locations | ||
| Borehole Files -> Utilities Datagrid | BM_LOC_2_GU | |
| Utilities Datagrid -> Borehole Files | GU_LOC_2_BM | |
| Stratigraphy | ||
| Borehole Files -> Utilities Datagrid | GU_2_BM | |
| Utilities Datagrid -> Borehole Files | BM_2_GU | |
| Borehole Table -> Utilities | BM_TAB_2_GU | |
| RockPlot2D | ||
| RockPlot3D | ||
| ReportWorks | ||
| Close | EXIT & HALT | |
| Edit | ||
| Digitize | ||
| Points | ||
| Lines | ||
| Filter | ||
| View | ||
| Restore | RESTORE | RCL_01.txt |
| Locate | ||
| Borehole Manager | ||
| Lithology Table | ||
| Stratigraphy Table | ||
| Map (Borehole Manager) | ||
| Borehole Locations | BOREHOLE_MAP | RCL_04.txt |
| Adjust Coordinates | ||
| Jeffersonian -> Easting/Northing | SPOT_WELLS | |
| Longitude/Latitude -> Easting/Northing | ||
| Striplogs | ||
| Single Log 2-D | STRIPLOG_2D | |
| Single Log 3-D | STRIPLOG_3D | |
| Multi-Log Profile | LOG_PROFILE | |
| Multi-Log Section | LOG_SECTION | |
| Multi-Log 3D | LOG_FENCE | RCL_05.txt |
| Summary | BH_SUMMARY | |
| Lithology | ||
| Profile | LITH_PROFILE | |
| Section | LITH_SECTION | |
| Fence | LITH_FENCE | RCL_05.txt |
| Surface Map | LITH_SURFACE | |
| Plan Map | LITH_PLAN | |
| Model | LITH_MODEL | RCL_05.txt |
| Volumetrics | LITH_VOLUME | |
| Import | ||
| RockWorks99 Lithology | LITH_RW99IMP | |
| Export | ||
| ASCII XYZG | LITH_2_TEXT | |
| Lithology -> I-Data | LITH_2_IDATA | |
| Stratigraphy | ||
| Structural Elevations | ||
| 2-Dimensional | 2D_STRUCTURE | RCL_02.txt |
| 3-Dimensional | ||
| One-Surface | 3D_STRUCTURE | |
| All-Surfaces | 3D_CONTACTS | |
| Stratigraphic Thicknesses | ||
| 2-Dimensional | ISOPACH | RCL_04.txt |
| 3-Dimensional | ISOPACH_3D | |
| Profile | STRAT_PROFILE | RCL_04.txt |
| Section | ||
| Modeled | STRAT_SECTION | |
| Section | STRAT_XSECT | |
| Fence | ||
| Modeled | STRAT_FENCE | RCL_05.txt |
| Straight | STRAT_XFENCE | |
| Fence (ESRI) | ||
| Modeled | STRAT_EFENCE | |
| Straight | STRAT_EXFENCE | |
| Surface Map | STRAT_SURFACE | |
| Plan Map | STRAT_PLAN | |
| Model | STRAT_MODEL | RCL_05.txt |
| Pick-Contacts | PICK_STRAT | |
| Volumetrics | STRAT_VOLUME | |
| Export | ||
| ASCII XYZ | STRAT_2_TEXT | |
| I-Data | ||
| Profile | IDATA_PROFILE | RCL_04.txt |
| Section | IDATA_SECTION | |
| Fence | IDATA_FENCE | RCL_05.txt |
| Plan | IDATA_PLAN | |
| Model | IDATA_MODEL | RCL_05.txt |
| Volumetrics | IDATA_VOLUME | |
| Import | ||
| RockWorks99 | IDATA_RW99IMP | |
| Export | ||
| ASCII-XYZG | IDATA_EXPORT | |
| P-Data | ||
| Profile | PDATA_PROFILE | RCL_04.txt |
| Section | PDATA_SECTION | |
| Fence | PDATA_FENCE | |
| Plan | PDATA_PLAN | |
| Model | PDATA_MODEL | |
| Import | ||
| Colog | PDATA_COLOG | |
| RockWorks99 | PDATA_RW99IMP | |
| Export | ||
| ASCII-XYZG | PDATA_EXPORT | |
| Fractures | ||
| Profile | FRAC_PROFILE | |
| Section | FRAC_SECTION | |
| Fence | FRAC_FENCE | |
| Surface Map | FRAC_SURFACE | |
| Plan Map | FRAC_PLAN | |
| Model | FRAC_MODEL | |
| Export | ||
| ASCII File | FRAC2TXT | |
| Utilities DataGrid | FRAC2GU | |
| Aquifers | ||
| Profile | AQ_PROFILE | RCL_04.txt |
| Section | AQ_SECTION | |
| Fence | AQ_FENCE | RCL_05.txt |
| Plan Map | AQ_PLAN | RCL_04.txt |
| Model | AQ_MODEL | RCL_05.txt |
| Export | ||
| ASCII | AQ_EXPORT | |
| Geological Utilities | ||
| Map (Geological Utilities) | ||
| EZ-Map | EZMAP | RCL_01.txt |
| Grid-Based Map | GRIDMAP | RCL_06.txt |
| Multivariate | ||
| PieChart | PIEMAP | |
| Starburst | BURSTMAP | |
| Barchart | BARMAP | |
| Land Grid | ||
| Section Map | SECTION_MAP | |
| Lease Map | LEASE_MAP | |
| Shotpoints | SEISMAP | |
| SpherePlot | ||
| 2D | SPHERE2D | RCL_04.txt |
| 3D | SPHERE3D | |
| Grid | ||
| Statistics | ||
| Report | GRID_STATS | |
| Histogram | GRID_HIST | RCL_06.txt |
| K-Gram | GRID_KGRAM | |
| Residuals | GRID_RESID | |
| Multivariate-Anomalies | ANOMALY_MAP | |
| Normalize | GRID_NORM | |
| Standardize | GRID_STAN | |
| Math | ||
| Grid & Grid | GRID_GMATH | RCL_06.txt |
| Grid & Constant | GRID_CMATH | |
| Density Conversion | GRID_DENSITY | |
| Absolute Value | GRID_ABSOLUTE | |
| Filters | ||
| Boolean | GRID_BOOL | RCL_06.txt |
| Limit | GRID_LIMIT | |
| Minimum Area | GRID_MIN_AREA | |
| Polygon Clip | GRID_POLYFILT | |
| Range | GRID_RNGFILT | RCL_06.txt |
| Round | GRID_ROUND | |
| Smooth | GRID_SMOOTH | |
| Edit | GRID_EDIT | |
| Slope/Aspect | GRID_SLOPE | |
| Directional Maps | ||
| Downgradient Vectors | DOWNHILL_MAP | |
| Upgradient Vectors | UPHILL_MAP | |
| Strike & Dip Symbols | SD_MAP | |
| FlowMap | FLOW_MAP | |
| 3D Flow Diagram | FLOW_DIAGRAM | |
| Trend Surface Analysis | ||
| Report | TREND_REPORT | |
| Residuals | TREND_RESID | |
| Import | GRID_IMPORT | |
| Export | GRID_EXPORT | |
| Grids -> Stratigraphic Fence | GRIDS_2_FENCE | RCL_06.txt |
| Grids -> Stratigraphic Model | GRIDS_2_STRAT | |
| Grids -> 3D Stack | GRIDS_2_STACK | |
| Grids -> Stratigraphic Logs | GRIDS_2_LOGS | |
| Solid | ||
| Model | SOLID_MODEL | |
| Profile | SOLID_PROFILE | |
| Section | SOLID_SECTION | |
| Fence | SOLID_FENCE | |
| Plan | SOLID_PLAN | |
| Statistics | ||
| Report | SOLID_STATS | |
| Histogram | SOLID_HIST | |
| Math | ||
| Model & Constant | SOLID_CMATH | |
| Model & Model | SOLID_SMATH | |
| Filter | ||
| Distance | SOLID_DISTFLT | |
| Grid Filters | ||
| G-Filter | SOLID_GFILT0 | |
| One-Bounding Grid | SOLID_GFILT1 | |
| Two-Bounding Grids | SOLID_GFILT2 | |
| Polygon Clip | SOLID_POLYFLT | |
| Range Filter | SOLID_RNGFILT | |
| Rounding Filter | SOLID_ROUND | |
| Smooth | SOLID_SMOOTH | |
| Boolean Ops | ||
| Boolean Conversion | SOLID_BOOLFLT | |
| Minimum Ore Zone Thickness | SOLID_MINORE | |
| Minimum Total Ore Thickness | SOLID_MINTORE | |
| Maximum Waste Thickness | SOLID_MAXWSTE | |
| Stripping Ratio | SOLID_STRPRAT | |
| Density Conversion | SOLID_DENSITY | |
| Conversions | ||
| Ore Thickness -> Grid | SOLID_OREGRID | |
| Overburden Thickness -> Grid | SOLID_WSTGRID | |
| Extract Grid from Model | EXTRACT_GRID | |
| Insert Grid into Model | INSERT_GRID | |
| Edit | EDIT_SOLID | |
| Fracture Discs -> Solid | DISCS_2_SOLID | |
| Import | SOLID_IMPORT | |
| Export | SOLID_EXPORT | |
| Initialize | SOLID_INIT | |
| Volumetrics | ||
| EZ-Volume | EZ_VOLUME | |
| 2D | RESERVES_2D | |
| Extract Solid | EXTRACT_SOLID | |
| Hydrology | ||
| Drawdown (One Well) | DRAWDOWN_CALC | |
| Drawdown Surface | DRAWDOWN_GRID | |
| FlowLines | FLOWLINES | |
| HydroGraph | HYDROGRAPH | |
| Hydrochemistry | ||
| Ion Balance | ||
| Piper Diagram | PIPER | RCL_04.txt |
| Stiff Diagram | STIFF | RCL_04.txt |
| Total Dissolved Solids | ||
| Linears | ||
| Arrow Map | ARROW_MAP | RCL_04.txt |
| Lineation Gridding | LINGRID | |
| Lineation Map | LINMAP | RCL_04.txt |
| Lineation Properties | ||
| Rose Diagram | ROSE | RCL_04.txt |
| Import | ||
| DXF Lineations | ||
| Planes | ||
| 3-Points -> Planes | ||
| One-Set | ||
| Multiple Sets | ||
| Beta Intersections | ||
| Beta Pairs | ||
| Rotate Planes | ROTATE_PLANES | |
| Stereonet | ||
| Strike -> Dip Direction | ||
| Strike & Dip Map | ||
| Import | ||
| Polylines -> Planes | ||
| Geotechnical | ||
| Movement Analysis | ||
| Stats | ||
| Univariate | ||
| Histogram | ||
| Single | HISTOGRAM | RCL_06.txt |
| Multiple | MULTIHIST | RCL_04.txt |
| Scattergram | SCATTERGRAM | |
| Ternary | TERNARY | RCL_04.txt |
| Normalize | ||
| Standardize | ||
| Random | ||
| Completely Random | RANDOM_COL | |
| Normal Distribution | RANDOM_N_COL | |
| Survey | ||
| Bearing/Distance | ||
| XYZ File | ||
| 2D-Map | SURVEY2D | |
| 3D-Diagram | SURVEY3D | |
| Triangulation | ||
| Setup XY Stations | ||
| Interpolate Points Along Line | ||
| Drill-Hole Survey | ||
| Coordinates | ||
| Longitude/Latitude -> UTM | ||
| UTM -> Longitude/Latitude | ||
| Lon/Lat/Offset -> UTM | ||
| Decimal -> Degree/Minute/Second | ||
| Degree/Minute/Second -> Decimal | ||
| Polar -> XY | ||
| XY -> Polar | ||
| Azimuth -> Quadrant | ||
| Quadrant -> Azimuth | ||
| Rescale XY Data | ||
| Rotate XY Data | ||
| Shift XY Data | ||
| Jeffersonian Points -> Cartesian | ||
| Jeffersonian Polygons -> Cartesian | ||
| Dates -> Stardates | ||
| Utilities | ||
| Colors | ||
| Color Numbers | ||
| RGB -> Windows | ||
| Finance | ||
| Breakeven Analysis | ||
| Lease Analysis | ||
| Loan Analysis | ||
| Geometry Calculator | ||
| Geological Time Chart | ||
| Igneous | ||
| Periodic Table | ||
| Trigonometry Calculator | ||
| Unit Converter | ||
| Describe Rock | ||
| Images | ||
| Compile RCL File | ||
| Grafix | ||
| 2-D Utilities | ||
| Montage | MONTAGE | RCL_04.txt |
| RockPlot/2D -> RockPlot/3D | RP2D_RP3D | RCL_05.txt |
| RockPlot/2D -> WMF | RP2D_WMF | RCL_03.txt |
| RockPlot/2D -> EMF | RP2D_EMF | |
| 3-D Utilities | ||
| Discs | DISCPLOT | RCL_05.txt |
| Images | ||
| Cubes | ||
| Drape | DRAPE | RCL_05.txt |
| Float | FLOAT | RCL_05.txt |
| Panels | ||
| Vertical | VPANELS | RCL_05.txt |
| Horizontal | HPANELS | RCL_05.txt |
| Oriented Objects | ||
| Perimeter | ||
| Spheres | SPHERES | RCL_05.txt |
| Storage Tanks | ||
| Horizontal | HTANKS | RCL_05.txt |
| Vertical | VTANKS | RCL_05.txt |
| Triangles | ||
| Tubes | TUBES | RCL_05.txt |
| Append | APPEND_3D | RCL_05.txt |
| Cage | CAGE | RCL_05.txt |
| Images | ||
| PicShow | ||
| BMP -> JPEG | ||
| JPEG -> BMP | ||
| Raster Conversion | ||
| Raster -> RKW | ||
| Rotate Bitmap | ||
| Digitize From Bitmap | DIGBITMAP | |
| Window | ||
| Tile | ||
| Cascade | ||
| Help | ||
| Execution History | HISTORY | |
| Project Dimensions | ||
| Enabled Boreholes | SCAN_ENABLED | |
| All Boreholes | SCAN_ALL | |
| Utilities Datasheet | SCAN_DATA |
RockWorks Execution Log
RockWorks maintains an execution history file that lists various information that may be useful when trying to troubleshoot problems. We typically use this file when trying to diagnose a user problem. The log file is stored within the My Documents \ RockWorks2004 \ System folder. The file is named "RW_LOG.TXT". A new version of this file is created every time the program is launched.
During installation, the RockWorks program creates a folder titled "My Documents\RockWorks2004\Samples). The folder includes the following sample RCL files that designed to be used in conjunction within the other tutorial files. The sample RCL files are a great place to start learning RCL by example.
RCL_01.rcl:
Restore all variables to default settings.
Disable "Cue Card" help messages.
Import ASCII data into Geological Utilities datasheet.
Create EZ-Map.
Terminate script without killing RockWorks.
RCL_02.rcl:
Restore all variables to default settings.
Disable "Cue Card" help messages.
Create a contour map depicting the structural elevations
(derived from downhole data) along the top of the first unit within the
stratigraphy table.
RCL_03.rcl:
Restore all variables to default settings.
Disable "Cue Card" help messages.
Suppress automatic 2D diagram display.
Import an ASCII file into the RockWorks Geological Utilities datasheet.
Create an "EZ-Map" (without displaying it in RockWorks).
Export the final map to a WMF file.
Terminate RockWorks.
RCL_04.rcl
Under construction.
Question: How can I quickly determine a variable name?
Answer: When viewing a sub-menu, right-clicking on a menu item will present a dialog box that lists the group name and the item name.

In the preceding example, we see that the strip log manual depth label interval has a group name of "LOG" and an item name of "DEPTHBAR_INTERVAL". If we wanted to change this setting within an RCL file, we would enter the following text;
DEFINE: LOG DEPTHBAR_INTERVAL 5.0
Question: Can I display a selected RockWorks menu in order to avoid recreating my own version of the menu?
Answer: Yes. The "MENU:" command will activate a RockWorks tree-style sub-menu without displaying the main RockWorks menu.
Question: Do I need to define every variable when creating RCL scripts?
Answer: No. You should define only the variables that you want to change. This is important because some applications have over 600 variables. We've tried to make good defaults settings, so that you won't need to change too much stuff. For example, you may need to specify which data column contains the geophysical log that you want to plot within a borehole diagram, but you shouldn't need to specify what color and line-style to use for the curve.
Question: How can I generate a list of variables for a given menu?
Answer: Select the View / General-Preferences menu and check the box labeled "Create Menu Summaries" and the sub-item labeled "Show Variable Names".

From now on, whenever you select the "Ok" option from a menu, RockWorks will create a text report of all the menu prompts, current settings, group names, and item names. The program will load this program into the Windows text editor so that you can use it as a reference for which variables you might wish to change.

Question: What type of delimiter is used to separate fields within RCL files?
Answer: RCL files may contain either tabs or spaces as delimiters. This may seem odd, given that the RCL supports international numeric formats which may contain spaces as digit separators. Fortunately, this is not a problem because the last item on a given line is always interpreted as the value. For example, consider the following line of text in which the number (one million) is expressed in a Russian format using spaces for delimiters and a comma for the decimal place.
DEFINE: LOG SCALE 1 000 000,00
The program processes this line by reading everything up to the first colon ("DEFINE:"). It then reads the group name ("LOG") and the item name ("SCALE"). Next, it looks up the variable type in a table and determines that the following variable is a real number. Next, the program removes the leading and trailing spaces from the remaining text ("1 000 000,00"). Finally, it uses the Windows regional settings to convert the text to a real number.
The main reason for supporting space delimiters is readability. Hand-typed, tab-delimited files look ugly.
Question: How do I know where the RockWorks/2004 program is located so that I can launch it from my own program?
Answer: The program path (i.e. where the program resides) and the user folder (i.e. where the program tables and temporary files are stored) are listed within the Windows registry. This provides a means for developers of other software to know where to look when launching RCL (RockWorks Command Language) scripts and where to store temporary files.

The registry path for the RockWorks program is; HKEY_LOCAL_MACHINE / SOFTWARE / RockWare / RockWorks2004 / FilePath
The registry path for the UserFolder (the place where we store user-modifiable program tables) is HKEY_LOCAL_MACHINE / SOFTWARE / RockWare / RockWorks2004 / UserFolder.