Translating Files from the Command Line

This procedure describes how to run the CATDMUUtility Batch. 

The CATDMUUtility is a batch process enabling the generation of .CATPart, .cgr formats from IGES.

Some IGES entities are not converted to V5. Click here for more information.

The following examples show typical arguments and command switches passed to the CATDMUUtility batch:

Converting a IGES part to a V5 cgr file

CATStart.exe -env CATIA.V5R10.B10 -direnv C:\Documents and Settings\user\Application Data\DassaultSystemes\CATEnv -run "CATDMUUtility -f InputPartFile -cgr OutputCgrFile"

Converting a IGES part to a V5 CATPart file

CATStart.exe -env CATIA.V5R10.B10 -direnv C:\Documents and Settings\user\Application Data\DassaultSystemes\CATEnv -run "CATDMUUtility -f InputPartFile -part OutputPartFile.CATPart"

 

Options

Input and output options that can be used with CATDMUUtility are described below.

Input Options

-f Input file with appropriate extension. A path must follow the option.

For IGES part, the extension file should be .igs,

Output Options

-cgr Output file for cgr corresponding to a part input file.
-part Output file for CATPart corresponding to the part input file.
 

Other options

The other options available for conversion are the settings corresponding to the environment.
They are defined in Tools -> Options -> General -> Compatibility -> External Formats and  IGES.
In particular, the use of cgr or CATPart can be customized in these options.
For more information see Customizing External Formats in CATIA Infrastructure User's Guide and IGES Settings.

 

 

How to run the Batch

  Run the following shell to start the batch process :
  1. Write a shell script containing the following lines:

"C:\<install_dir>\intel_a\code\bin\\CATStart.exe -env CATIA.V5R10.B10 -direnv C:\Documents and Settings\user\Application Data\DassaultSystemes\CATEnv -run "CATDMUUtility.exe -f inputfile -cgr outputfile1"

  1. Run the shell.

Where

-env ... is the default environment

-direnv ... is the directory path containing this environment.

 

CATIA.V5R10.B10 is an example of environment name, it will vary with the level of CATIA installed.