Management and execution of command files

Management of command files

The command files are managed:

  • either by Flux, in automatic manner (default files)
  • or by the user

Automated management

Two files are automatically managed:

  • the “Flux[XX]” : all commands performed by the user during a session are recorded in this file.

    This file is stored on the current working directory.

  • the “”: all commands performed by the user during the beginning of the project up to the end of the project are recorded in this file.

    This file is stored with the save of the project at the following link : …\project.FLU\persistent\Jython_log

Flux module Current session file Previous session file*
2D, 3D and Skew  

* In order that the file Flux[XX] should not be reinitialized (rewritten) upon the opening of a new session, the file is renamed by Flux (*

User management

The user can manage command files by means of the Flux commands from the Project > Command file menu.

Flux command Function
New creation / opening of a file
Interrupt break of the sequence saving
Resume resumption of the sequence saving
Close end of the sequence saving / closing the file

Note: It is impossible to open two command files at the same time for a Flux session.

Modes of running

There are two modes to run a command file. These two modes are presented in the table below.

Mode Description
direct mode with graphic refreshment
silent mode without graphic refreshment (faster execution)

Run a command file

To run a command file, you can use one of the two following methods.

Method 1: from the supervisor (only batch mode):

  • double-click on the file name

Method 2: from the Flux window (silent mode or direct mode):

  • in the Project menu, point on Command file and click on Run a python file or Run a python file in silent mode
  • in the dialog box, enter the file name
  • in the python editor, open the file and execute it (direct mode)

All the PyFlux instructions from the command file are ran.

Warning: For a correct process of operations, it is necessary to run the command file in the appropriate context (expected by the command file).