======== shellRpt ======== .. contents:: Table of Contents :backlinks: top ------------ Introduction ------------ Creates a Comma Delimited (CSV) file of characteristics of all solids and surfaces (shells) in a geometry object or from all geometry objects in a directory. ----------- Quick Start ----------- Create a comma delimited (CSV) report listing various characteristics from all solids/surfaces in an object or all solids/surfaces in all objects in a directory. Note: If run outside of a MineSight(R) project directory the materials folder may not be found. Therefore, the script will be unable to find material attributes. INI Setup --------- The ini file is named shellRpt.ini, and must contain the following: INPUT_PATH=D:\\work\\polyRpt\\trueThickness\\_MSRESOURCES\\geology\\ew25 true new The input path can be a directory path or an msr file path. If it is a directory, all msr objects in that directory are processed. If it is an msr file path, only that msr is processed. The value assigned to INPUT_PATH is not surrounded by quotes and is the absolute path. The componets in the path can be separated by double backslashes (\\) or single front-slashes (/). OUTPUT_RPT_PATH=shellRpt.csv The output report file path can be an absolute path or just the file name, in which case it is written to the current directory. This is a comma delimited report and the file name should end with .csv do the default spawning program, like Excel can display it. RPT (Report) Configuration Values: All constants starting with RPT\_ are set to boolean values to indicate what is to be included in the report. Set to zero to not report or one to report. All tokens need to be present in the ini file. The order of these lines in the ini file reflect the order of the columns in the report. The following setting (ini lines) will report all the available information for each feature and indicate the order it is reported in the spreadsheet (CSV file). :: RPT_RESOURCE_NAME=1 RPT_RESOURCE_MATERIAL=1 RPT_ELEMENT_NAME=1 RPT_ELEMENT_MATERIAL=1 Notes ----- The element material model code is what is used for coding the model. If msr material has a different model code this would be a strange way to set up the model. The material vbm code for a shell can be important if the shell is sliced into 2d polygons, so this option is be included in report. ---------- Discussion ---------- Creates a csv file of characteristics of all solids and surfaces (shells) in a geometry object or from all geometry objects in a directory. Items to include in the report are user selected and can be configured as to which column an item is written to in the comma delimited report. The selection of solids and surfaces to include in the report can also be filtered by volume, name and material. The desired configuration can be saved to an .ini file for future runs or entered in the interface panel in interactive mode. For detailed help, place mouse in desired area of interface panel and press F1. ========================== ====================================== Reporting Items Description ========================== ====================================== Resource Folder Name of folder where geometry object resides Resource name Name of .msr file/geometry object Element name Solid/surface element attributed name Resource material Geometry object material Element material Solid/surface attributed material Resource model code Object material model code Element model code Solid/surface material model code Resource VBM code Object material VBM code Element VBM code Solid/surface material VBM code Volume cu meters Volume of the solid in cu meters Volume cu feet Volume of the solid in cu feet Volume cu yards Volume of the solid in cu yards Surface area sq meters Area in square meters Surface area hectares Area in hectares Surface area sq feet Area in square feet Surface area sq yards Area in square yards Surface area acres Area in acres Total faces Number of faces of the solid/surface Total points Number of nodes of the solid/surface Tonnage Computed tonnage of the solid Tonnage SG Specific gravity used to compute tonnage Tonnage TF Tonnage factor used to compute tonnage ========================== ====================================== ---------------------- How to Run this Script ---------------------- This script can be run from MineSight(R) or from the command line. It can be run with or without the GUI interface. If run from MineSight(R) or from the command line with no arguments, a GUI is presented. If run from MineSight(R), no arguments are allowed, so the GUI panel is always presented. To run silent without the GUI, an .ini file can be used that contains configuration values describing what is wanted in the report. Starting the script with command line arguments as explained below suppress the GUI interface panel and the values .ini file are used. To create an .ini file, run the script with no arguments and enter your desired configuration into the GUI panel and check "Save Responses". This will create an .ini file in your project directory, if run from MineSight(R) or the working directory, if run from the command line. Multiple .ini files can be created, one for each project as they can be stored in the respective project directories. The .ini file is always named :file:`