Using the CATIA V5 Launcher

The CATIA V5 launcher allows you to start multiple CATIA V5 installations; and environments.

This page discusses:

To activate the CATIA V5 launcher, you must:

  • Set the value true in the key HKEY_CURRENT_USER\Software\Dassault Systemes\xCAD_Connectors\CATIAV5Launcher\IsActive. This setting helps you start CATIA V5 from the 3DCompass, or using your shortcut.
  • Set the XML file path (inside a directory that you can access) in the registry key HKEY_CURRENT_USER\Software\Dassault Systemes\xCAD_Connectors\CATIAV5Launcher\ConfigPath. For example E:\launcher.xml. You should not create the configuration file. The CATIA V5 launcher uses this referenced path to generate the configuration file at the location defined in the key. Ensure that the edition rights are appropriate for the launcher to create the file. The launcher does not create intermediate directories if they do not exist.
    Note: An error message appears if you run the CATIA V5 launcher by setting an invalid value for the ConfigPath key.

Using the CATIA V5 Launcher for the First Time

When you use the CATIA V5 launcher for the first time, it checks the local machine to identify the available CATIA V5 installations. The CATIA V5 launcher also detects the environments associated with every CATIA V5 installation. You can detect these environment files from:

  • Global environment: The folder containing these environment files is defined in the EnvDir.txt file of the CATIA V5 run-time view folder.
  • User environment: You can search these files in a specific folder. For example, $APPDATA\DassaultSystemes\CATEnv.

The CATIA V5 launcher considers only the CATIA V5 installations, and associated environments that are compatible with the CATIA V5 POWER'BY connector. If an environment is missing, you must restore the environment file or select another environment.

Note:
  • When you activate the CATIA V5 launcher, the registered CATIA V5 installation and environment is not used.
  • The CATIA V5 launcher remembers the available CATIA V5 installations. The configuration is not selected by default during the first launch. For all subsequent launches, the configuration is selected by default.

CATIA V5 Launcher Configuration File

The below table explains the file sections:

Configuration File Sections Description
Automatic section (CATIAV5AutomaticEnvironments) This section contains all the configurations that are displayed in the Automatic mode from the user interface. It is updated when you refresh the CATIA V5 launcher. In this section, you can modify only the IDReleases tag. To see the changes done to the IDReleases tag, you must exit and restart the CATIA V5 launcher. To switch levels from V5-6R2015 and onward in the extension mode, the user or admin must add the <V5LevelCompatibilityMode Value = "true"/> tag to the concerned level section.
Custom section (CATIAV5CustomizedEnvironments) In this section, you can define custom batches and scripts. You can select the scripts to automate your tasks.

1. Script case:

Syntax: <InputFormat>|<Path>|<ModuleName>[|<SubName>]

  • CATVBA
    • InputFormat: Integer. The format of input. It must be 0.
    • Path: The absolute path to the CATVBA file.
    • ModuleName: Name of the module within the CATVBA.
    • SubName: Name of sub within the ModuleName to be executed (CATMain by default)
  • CATScript
    • InputFormat: Integer. The format of input. It must be 0.
    • Path: The absolute path to the CATScript file.
    • ModuleName: Not required (empty).
    • SubName: Name of Sub to be executed (CATMain by default)

Example:

<CATMacro Value=”E:\Program Files\Dassault Systemes\V5Launcher\SampleExportBatch.CATScript ”/>

<CATBatch Value=”true”/>

Here, the CATMacro tag contains the path of the script. To use the batch option, you must define the value true in the CATBatch tag.

2. Batch case:

You must specify the batch location, and parameters in the CATApp tag. Ensure that the batch you run does not interfere with the running processes.

Example:

<CATApp Value = "E:\SampleBatch.bat myOption"/>

XML example:

<CATIAV5CustomizedEnvironments>

<V5Level Name = "V5-6R2020">

<IDReleases Name = "Batch test">

<CATApp Value = "E: \3DEX_Launcher.bat"/>

<Favorite Value = "false"/>

<Mandatory Value = "false"/>

</IDReleases>

</V5Level>

</CATIAV5CustomizedEnvironments>

To start a CATIA V5 interactive session and open selected data in CATIA V5, you must ensure that 3DEX_Launcher.bat contains the correct instruction.

For example:"e:\Programs\Dassault Systemes\B30\win_b64\code\bin\CATSTART.exe" -run "CNEXT.exe" -env CATIA_P1.V5-6R2020.B30 -direnv "C:\ProgramData\DassaultSystemes\CATEnv" -object "-e 3DEXPRunOperation \"%1\"" –nowindow.

Here:

  • "-e 3DEXPRunOperation \"%1\"" is the argument that allows forwarding the open specification file to CATIA V5.
  • The option –nowindow hides the console associated with your CATIA V5 session.
Note: The CATIA V5 interactive session is detected when you restart the CATIA V5 launcher. The launcher will not appear the next time you start CATIA V5 from the Compass.

CATIA V5 Launcher Options

The below table explains the CATIA V5 launcher user interface:

CATIA V5 Launcher Options Description
Modes/Views The CATIA V5 launcher has the following modes/views:
  • Automatic mode: This mode lists all the CATIA V5 installations, and environments that were automatically discovered on the local machine.
  • Customized mode: This mode lists all the CATIA V5 customer scripts, and batches to automate users tasks.
  • Favorites: This mode lists all the configurations that you have previously selected as favorites. You can add an environment configuration as a favorite. The Favorites mode is selected by default if there is at least one favorite environment. If you do not have a favorite environment, the Automatic mode is selected by default.
Notes:
  • The selection inside each view is maintained when you switch from one view to another.
  • The panel state information composed of last used view and selection of each view will be restored at next launcher execution as long as an environment is run from launcher panel. If you cancel the launcher, this information is not restored.
  • If the selected environment of a view does not exist at next launcher execution, then the first environment of that view, if any, will be selected by default.

Your last selection per view (Automatic, Customized, Favorites) is managed using theENOV5MALauncher.CATPreferences file located in the xCAD_Connectors folder of 3DEXPERIENCE settings.

Deleting the CATPreferences file will prevent the last used view and selection of each view to be restored at next launcher execution. In that case, the first environment of each view will be selected by default.

CATIA V5 levels This section displays a list of the supported CATIA V5 levels found on the local machine. The CATIA V5 launcher detects all CATIA V5 levels. One version can correspond to multiple CATIA V5 installations of this version. Select a version to see the corresponding list of environments that are detected.
CATIA V5 environments This section displays a list of all the supported CATIA V5 environments corresponding to each installation of the level defined in the CATIA V5 level selector. You must avoid using the same environment name for different installations to distinguish between them.
Favorites button Is available for each environment configuration listed in the CATIA V5 environment selector. Click to add the configuration to the Favorites list.
Refresh CATIA V5 launcher Checks the local machine for all the configurations that are compatible with the CATIA V5 POWER'BY connector. This action cleans the automatic section of the XML configuration file, and recreates it.
Do not show next time check box This option automatically starts the last configuration that you used without displaying the CATIA V5 launcher. To view the launcher again, you must manually delete the ENOV5MALauncherMandatory.CATPreferences file located in the xCAD_Connectors folder of 3DEXPERIENCE settings.
Run Allows you to run a selected configuration.
Cancel Closes the CATIA V5 launcher.

Notes:
  • The Refresh and Favorites options are not available if you set the value true in the key HKEY_CURRENT_USER\Software\Dassault Systemes\xCAD_Connectors\CATIAV5Launcher\ReadOnly. The ReadOnly attribute is created when you execute the launcher for the first time. Its default value is False.
  • If a CATIA V5 session is already running when you execute the CATIA V5 launcher, the CATIA V5 Launcher dialog box is not displayed. The current session is used to complete your action.