Working with multiple AGS data format versions

There are four official versions of AGS 4 in the UK.  These versions are installed with the AGS Python Library and are as follows:-

  • 4.0.3
  • 4.0.4
  • 4.1
  • 4.1.1

An AGS file stores its version number in the TRAN_AGS field. The AGS toolkit checks this field and assigns the appropriate dictionary file for the check before launching the AGS Python library,

If a version number is not one of the standard versions, the AGS toolkit will display a message box on the screen asking which AGS dictionary the file should be checked against. This can be a common request, as some AGS files will just have “4” or “4.0” in the TRAN_AGS field.

The standard UK dictionary files are installed to the Python Library folder.  This folder can easily be opened in Windows Explorer by clicking on the View Folder button next to the AGS Python Location information in the About box.

There are international versions of AGS which are not covered by the AGS Python Library.  The following formats have been published in Australia and New Zealand

Dictionary files for these formats can be downloaded by clicking on the Download Dictionaries button and these files are automatically stored in the Program Data Folder.  The Program Data Folder can be viewed by clicking on the View Folder button next to the Program Data Folder label on the About box.

The Python AGS Folder is reset whenever the install/update option is selected.  By saving the dictionary files to the Program Data Folder instead, they will remain intact and operational after an update.

The AGS toolkit will check the AGS Python location first.  If it finds an appropriately named dictionary file it will use it, otherwise it will check the Program Data Folder.  If the appropriate file can not be found in either location, it will display the prompt to select a version number and display all the dictionary files that are present in either folder.

If you want a set dictionary to be used for each new version of the AGS_TRAN field, then you can select the “Always use this version as an Alias” option. This will stop the message from appearing for future appearances of that AGS_TRAN value.

Aliases already set up are listed in the Settings form and stored in the settings.ini file in the Progam folder. An alias can be removed by removing the appropriate line from the INI file using a standard text editor.