|
XML File Configuration
GPP2 can read the XML report file and load relevant procedure data into special GPP XML system variables. Note that starting with version 7.2 patch, the XML file is created each time old GPP is run and executed.
The names of these special XML system variables, and the mapping of XML data into these variables is defined in a configuration file called gpp2-xml.ini that is stored in the GPP2 program folder (where GPP2.EXE is stored) (\Cimatron\Program\).
This configuration file has to be modified by the Cimatron Provider or Reseller in order to properly work with translated versions of Cimatron (since the XML parameter names are translated text).
Note that a single gpp2-xml.ini file can be installed and used with a single installation of Cimatron. It should contain all the XML variables that are used in all post processors and all reports expected on the target computer.
The file is a simple text file, with multiple lines. Each line is either a comment line (starting with a '*', like in the EX2 files) or defines a single XML parameter as follows:
<id> <XML parameter String> <XML Variable Name> <format>
<id> is the unique ID number of the XML parameter. For instance, the "Part Surface Offset" parameter has ID 55. Not all XML parameters have a unique ID. For those that do not have one use the number -1 (they will be identified by their name).
The advantage of using the unique ID when available is that these lines do not need to be translated - the ID stays the same in all languages, and allows identification of the XML parameter.
<XML parameter string> is the name of the XML parameter (the same name that appears in the Cimatron NC grid). This name is not critical for XML parameters with a unique ID number. For the others (ID -1), it must be exactly the same as the name used in the XML file (the translated name).
<XML Variable Name> is the name of the new GPP2 system variable that will get the value of the XML parameter. The name must follow the standard naming of GPP2 system variables. By convention, it starts with XML_.
<format> is the format of the new GPP2 system variable, in numeric form (from 0 to 18). See the GPP2 Language Reference Manual for details on GPP2 formats.
Example
-1 "Procedure Unique ID" XML_PROC_UID 0
3207 "Spin " XML_PROC_SPIN 4
55 "Part Surface Offset" XML_SURF_OFF 1
Note the first example, with XML variable name XML_PROC_UID. This is a special name and must be kept as is in all configuration files. GPP2 is expecting this XML system variable name in order to properly handle multi-tool procedures.
Spaces, tabs and the comma character can be freely used in the gpp2-xml.ini file. Comments at the end of each line (starting with //) are also supported.
|