Bladed Knowledge Base

Generating .IN files from .$PJ files
Category: Automation

Problem

Bladed versions affected: all current 4.x versions 
Date of last article update: 19th March 2024

=========================================================================

Is is possible to generate a .IN file from a .$PJ file using the command line?

Solution

A .IN file can be generated from a .PRJ or .$PJ file using the command line, by opening a command prompt window and running the following command:

- <Path to Bladed_m72.exe> -Prj <Path to the $PJ/PRJ file to convert> -RunDir <Path to directory to create .IN file in> -ResultsPath <Path to results directory including run name>

- For example: "C:\DNV\Bladed 4.15\Bladed_m72.exe" -Prj "C:\test\idling.$pj" -RunDir "C:\test" -ResultsPath "C:\test\idling"

- Note that the command prompt window should be started using the "Run as administrator" option for Bladed 4.10 or older.

A .IN file can also be generated using one of the following methods:

- Open the .$PJ file in the Bladed GUI, and use the procedure described in the first part of this Knowledge Base article to obtain the generated .IN file.

- Use the "Create Jobs From Runs" functionality in the Batch client (see Section 3.5.3 in the Batch user manual) - the .IN file can then be found within a job subfolder of the Jobs folder, within the current Batch folder.

- Use the ConvertPrjFileToDtbladedInFile() function in the Project API - see the Bladed API reference in the Bladed installation folder (e.g. C:\DNV\Bladed 4.15\Documentation\Bladed API\BladedAPIReference.chm) for more details.





Keywords .$PJ .IN command line