To import an envisionment to RMPL do the following: Start Lisp and load the file "env2qsp.lisp" eg: USER(1): (load "env2qsp.lisp") The magic numbers file should contain the data such that when loaded sets the following variables: *plant-model-file* This is the name of the plant model file to be used by the generated QSP *plant-name* This is the name of teh Plant class *mn-alist* This is the alist of magic nummbers index by qualitative state from the envisionment. Look at the example file magicnumbers.lisp for an example of such a file. The envisionment file should contain a form that sets the variable *envisionment* to the envisionmane see the example file envisionment.lisp. To generate the QSP file invoke the converter like this: USER(2): (convert-envisionment-to-qsp "ExampleRampGenerateQSPv1.rmpl2" "envisionment.lisp" "magicnumbers.lisp") ; Loading s:\Meta\svn\mit\InvisionerImport\envisionment.lisp ; Loading s:\Meta\svn\mit\InvisionerImport\magicnumbers.lisp NIL The first argument is the name of the QSP file to generate. The second argument is the name of the file that contains the envisionment. The third argument is the name of the magicnumbers file.