Project Settings

The Project Settings dialog box allows you to change many project settings and add comments about the project that are displayed in the project preview.

To open this dialog box, from the menu bar select Project > Settings.


Important:  When changing these settings and saving a project to a different location, data may be lost. Store an archived copy of the current project. To do this:

  1. Open your current project that has all data in the working directory (project setting Keep in working directory only).

  2. From the menu bar select File > Save current project as > Save a copy of project.

  3. Change the project settings of the new project to Store in project file.

All data will remain in the old project. If you have made changes before saving a copy, they will be lost unless you have saved them manually.


Working Data Tab

OptionDescription
Working directory locationDefines the location of the .opd working directory. Select from one of the following options:
  • Next to project file

  • Custom

Working directory contentsDefines what happens with the working project data. Select from one of the following options:
  • Keep in working directory only

    The project directory is not removed or archived when you close optiSLang.

  • Store in project file

    The project directory is only used temporarily. The data inside the optiSLang project directory is archived in an .opf file when you close optiSLang and the project directory is removed.

Ansys projects working directory nameDefines the directory for back-up copies and temporary files of projects connected with the Ansys Workbench node.
Project savingWhen selected, disables all automatic project save functions. When cleared, all systems and nodes will be automatically saved and the project is saved automatically when starting execution.
Characters in filenamesDefines what characters are allowed in file names. Select from the following options:
  • ASCII only, no spaces

  • All characters

Note:  Some reserved characters are always replaced in file names. Existing actors keep their current file names until renamed.

Reference files directory Tab

OptionDescription
Reference files directory locationDefines the location of the .opr reference files directory. Select from the following options:
  • Next to project file (default)

  • Custom location

Reference files directory contentsDefines what happens with the reference files directory content when the project is closed. Select from the following options:
  • Keep in separate directory (.opr) (faster)

    The directory is not moved or archived when closing the project.

  • Store in project file

    The data inside the reference files directory is archived in the .opf file when closing the project.

  • Delete directory when closing the project

    Only available if both Next to project file (default) and Store in project file are selected. Deletes the .opr directory once the project is closed.

Purge Tab

See Purge Project.

Actions Tab

Allows you to register arbitrary actions at the project level. These actions can be used to control project execution or to perform maintenance tasks. Each action has a certain execution point that defines when it is triggered.

Python script/file actions use the same Python context as the optiSLang Python console and with that have access to the complete set of methods and objects. You can also use action_point, which indicates the action point that triggered the action.

To add an action:

  1. Click the Name cell of a new row and enter a name for the action.

  2. Double-click the Type cell and select one of the following options:

    • Run python script

    • Run python file

  3. Double-click the Point cell and select one of the following options:

    • Any

    • Project open

    • Project opened

    • Project save

    • Project saved

    • Project about to start

    • Project started

    • Project stop requested

    • Project stopped

  4. If you selected Run python script in the Type cell:

    1. Double-click the Script cell.

    2. In the Edit text dialog box, paste the contents of a Python script into the text field.

    3. Click OK.

  5. If you selected Run python file in the Type cell:

    1. Double-click the Script path cell.

    2. Click  .

    3. Browse to the location of the Python file, select it, and click Open.

To remove an action:

  1. Select one or more rows in the table.

  2. Right-click the table and select Remove selected actions from the context menu.

  3. Click Yes.

Advanced Tab

OptionDescription
User InterfaceDisplays or hides tabs in integration nodes. For each tab visibility list, select one of the following options:
  • Inherit from application setting

  • Show

  • Hide

Default Node Continuation BehaviourSets the default option for skipping or continuing execution of the node, depending on the parent node success. Select one of the following options:
  • Skip execution if a predecessor did not run

  • Continue execution of a predecessor did not run

Maximum auto-relocation depthSets the default maximum search depth for automatic file relocation.
Maximum number of threadsSets the maximum number of threads that can be executed in parallel when running a project.
AuthenticationAllows you to set or clear a project password. You can also generate a password file.

Comments Tab

Use this tab to add comments, annotations, or other project information. This information is displayed in the project preview.