Using the Command Line Model Extractor
The FTMExtractor.cmd/.sh script has the following parameters:
FTMExtractor <RSA_WORKSPACE> <PROJECT_NAME> <MODEL_FILE_NAME> [<OUTPUT_DIRECTORY>] [-mv]
where :
- RSA_WORKSPACE
- is the existing RSA workspace containing the FTM models. For example: C:\RSA9workspace
- PROJECT_NAME
- is the name of the model's project/folder in the RSA workspace. For example: "FTM ODM Sample Model"
- MODEL_FILE_NAME
- is the name of the *.emx file for the model. For example: "FSM Model.emx"
- OUTPUT_DIRECTORY
- is the name of a directory where the extracted output is written. For example: C:\FTMExtractor\output This is an optional parameter. If it is not supplied, the output is written to the model's project/folder in the workspace.
- -mv
- This parameter determines whether the specified model will be validated. This is an optional parameter. If
it is not supplied, the model is not validated.
Any model validation issues found will be written to a report file called ValidationReport.txt. This report file is written to the directory specified in the optional OUTPUT_DIRECTORY parameter. If this parameter is not supplied, the file is written to the model's project/folder in the workspace. If the report file already exists, the extractor fails with return code 12 and displays "[Model Extractor] File already exists [<filespec>]"
FTMExtractor return codes:- 0 = The extractor completed successfully.
- 2 = The extractor completed with model validation information messages.
- 4 = The extractor completed with model validation warning messages.
- 8 = The extractor completed with model validation error messages.
- 12 = The extractor completed with a severe issue.
Notes:
- A sample script (runFTMExtractor.cmd/.sh) has been supplied to demonstrate how to call the FTM extractor.
- Before running the FTM extractor, ensure that the specified model does not contain any errors (out-of-synch profile errors or model validation errors) and that all referenced models are available in the specified workspace.