Creating DLLs for Reading Legalex Rules

Two binary rule set files exist on Legalex's website (www.legalex.com): CODES.DAT and TI.DAT.  LawManager Administrators can create a COM DLL allowing them to read these binary files. Developers can reference the DLL from within various LawManager scripts.

To import Legalex rule sets, Administrators should do the following:

  1. Download an up-to-date Legalex Windows program (LegalexRulesUpdate.EXE) that contains all the rule sets.  This program can be downloaded at the website:  http://www.legalex.com/downloads.html.

  2. Choose item 2, LegalexSQL and ProLaw Rules (LegalexRulesUpdate.EXE), on the downloads page.

  3. Run the LegalexRulesUpdate.EXE program that was downloaded.  

Note:  The LawManager Administrator will need a license key from Legalex to run the program.

  1. Enter the directory where the TI.DAT and CODES.DAT files will be created.  This directory must be the Legalex directory under the same directory as the LawManager executable, which is typically:  C:\Program Files\Law Manager, Inc.\LawManager.Pro\Legalex.

  2. Enter the license key.

  3. The DLL can now read from the TI.DAT and CODES.DAT files and extract any rule set.

The Legalex import control will be a COM control that will allow the Legalex data from the TI.DAT and CODES.DAT files to be saved into tables. Optionally the control may enable the programmer to access the codes and timelines in code.  The object will be created with CreateObject and functions/properties.  If you have previously saved an array to a tab separated type file, then you can read it by constructing the LegalexArray object and calling ReadFromFile.