Copyright 2007 by gINT Software. All rights reserved worldwide.
GRA002.TXT
gINT Rules Code Add-In menus Samples - 002
Requires gINT version 8 or later.
NOTE: Code samples are provided free of charge and as-is. gINT Software makes no claim or warranty as to the accuracy of the samples. It is the responsibility of the user to ensure that the code performs as it should. Comments, suggestions, and error reports are appreciated.
Description
===========
Inserts the "GRA002" submenu under the "Add-Ins" menu in Input with the command "Batch N Value Output" under this submenu. "Batch N Value Output" does the following:
1. Reads all the layer units defined in the project.
2. Creates a script that prints, previews, or exports to PDF (user's choice) graphs of N Value versus Depth filtered on each unit. There will be one graph per unit.
3. Runs the script.
Revision History
================
19 December 2007:
Version 8 now uses single quotes to delimit text field filters instead of double quotes. This broke the unit filter text in the footer of the graph report. The text expression looked for double quote delimited text instead of single quote delimited text. The expression was changed. However, that would break usage with earlier builds of 8 and all of version 7. To make it backward compatible, the filter text is now manipulated to replace double quotes with single quotes before the main text expression.
--------------------------
26 August 2006:
Made use of the version 8 "Execute Program" script operation to open the generated PDF in the system's PDF viewer program.
--------------------------
02 April 2005:
Initial public upload
*************************************************
INCLUDED FILES:
GRA002.GLB:
Add-Ins: GRA002-Batch N Value Graphs
gINT Rules code modules:
GRA002 Main
BatchNValueGraphs
GRA002 COMMON PROCEDURES RecordsetClose
Graph Reports: GRA002 N VALUE VS DEPTH
GRA002.GPJ:
Sample project that makes use of the code.
*************************************************
INSTALLATION PROCEDURE:
Copy the files wherever you prefer. To see the gINT Rules code modules you must either merge the GLB into your library (Utilities:Lib Merge/Copy) or change to the included library (File:Change Library). Note that there are no data markers or report tracking codes drawing library block in the GRA002 library. They will only appear if you merge into your library.
*************************************************
SPECIAL NOTES:
1. See the How To Guide topic "Batch output through Add-Ins scripts" for a detailed description of this sample. You will find it under Help:Contents and then open the "How To Guide" book and then "Command Scripts". Please refer to this topic for guidance on how to make changes to this project to meet your needs.
*************************************************