| 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.
|