The CATDMUUtility is a batch process enabling the generation of cgr, 3dmap, hcg, wrl and NCGM formats from a CATIA file or from a MULTICAD file. It can also process files accessed in a PDM database, e.g. ENOVIAVPM or ENOVIA V5 VPM. | |
All paths indicated in the CATDMUUtility command line must be absolute paths. | |
When using input data that contains references to a PDM system, it is imperative that you be connected to that PDM system while the CATDMUUtility process is running. | |
The -3dxml option enables you to generate 3D XML files for CATParts. | |
|
|
A typical computation parameters file looks
like this: Example 1: CATDMUUtility -f inputfile -cgr outputfile1 [-nolod] [-sag value] [-3dmap outputfile2] [-vox value2] [-unit value3] Example 2: CATDMUUtility -l inputliste -db VPM
-user username -pwd password -server servername Example 3: CATDMUUtility -l inputliste -cgr -wrl -cache Example of input file:
"e:\New
A\CRIC_BRANCH_1.CATPart"
/usr/B05doc/online/dmnug/samples/CRIC_BRANCH_1.CATPart |
|
It is possible to use DLNames. The use of a
DLName is indicated in the CATDMUUtility by the following string:
CATDLN://
Examples: UNIX:
Windows:
|
|
DLNames are supported for CATIA file definition in the CATDMUUtility. For more information on DLNames, see the Infrastructure Guide, Administrating Data Using the DLName Mechanism. | |
However, DLNames are supported only for CATIA
files, i.e. in order to indicate a .txt file as an input parameter, it is
necessary to supply an absolute path, e.g.
The .txt file, of course, can contain DLNames, e.g.
|
|
Note: Special characters []
identify optional parameters. Please find below the different options available input, output:
|
|
If you specify an extension in the output file
name which isn't the correct extension for the output option used, the correct extension is added to the output filename. The only exception to this feature is the -box output option, with which you can choose any extension you wish. Example: |
|
Input Options |
|
-f :
Input file with appropriate extension. A path must follow the option. |
|
It is now possible to convert a V4 cgr file to
a V5 cgr file. The -f input file should be a V4 cgr file and the -cgr
output file should specify the name of what will be the new V5 cgr file.
The -f option is mandatory, the -cache option cannot be used for the
conversion of cgr files. |
|
-l :
Input list of model with -f, or database identifiers with -db
option (note: the -cache option is mandatory).
-db : Input database type: For processing data stored in a PDM database. For details on using the -db option, see Accessing Data in a PDM Database.
Generic example for CATDMUUtility: CATDMUUtility -db VPM -user $user_db -pwd $pwd_db -server $server_name -coid $coid_nb -compid $compid_nb -cattab $table_name -catenv $env_name -cgr (if you want to tessellate into a cgr) $output_file_path or -cache (if you want the outputfile to be placed in the cache)
|
|
-coid : Input identifier of the ENOVIAVPM
data to convert. The -db, -compid, -catenv and -cattab options are mandatory.
-compid : Input identifier of the ENOVIAVPM
data to convert. -catenv : Input identifier of the ENOVIAVPM
data to convert. -cattab : Input identifier of the ENOVIAVPM
data to convert.
|
|
Output Options |
|
-cgr
: Output file for cgr corresponding to the input file. A path must be
indicated after the option. If no output file name is mentioned, output
file will be generated in input file directory. |
|
-jpg : Output file for jpg corresponding to the input file. The input file can be of format CATPart, model or cgr. This option cannot be used with -db, -cache or -mp options. If no output file name is mentioned, output file will be generated in input file directory. | |
The following options are now available for
specifying jpg output. These options can only be used with the -jpg
option.
-xsize : Specifies the horizontal size of the generated jpg file
in pixels. An integer value is required.
-camera : Specifies the camera (viewpoint) used to generate the jpg file. A camera name is required. The specified viewpoint can be a standard view or a camera. A viewpoint name containing blanks should be surrounded by quotation marks, e.g. -camera "* iso".
-viewmode : Specifies the view mode {shading, shadingedges, wireframe, material}. A mode name is required.
-bk : Specifies the background color of the generated jpg file. The color can be either white of the background color currently defined via Tools -> Options -> General -> Visualization:
|
|
-hcg
: Output file for hcg corresponding to the input file. A path must be
indicated after the option, if no path is specified the output will be
written into the cache by using -cache option. If
no output file name is mentioned, output file will be generated in input
file directory. -NCGM : Output file for NCGM corresponding
to the input file. A path must be indicated after the option, if no path is
specified the output will be written into the cache by using the -3dmap : Output file for 3dmap corresponding to the input file. A path must be indicated after the option, if no path is specified the output will be written into the cache by using -cache option. If no output file name is mentioned, output file will be generated in input file directory. -wrl : Output file for vrml corresponding to the input file. A path must be indicated after the option, if no path is specified the output will be written into the cache by using -cache option. If no output file name is mentioned, output file will be generated in input file directory. Note: In batch mode, as there is no editor, the wrl file will not contain any viewpoints. -product : Output file for CATProduct documents generation from
an assembly (MultiCAD or CATIA). The linked documents will be computed
if -cgr, -3dmap ... options are specified.
-box : Switch to generate the bounding box corresponding to the input file. The -f option is mandatory. If the input file is not a cgr file, then the -cgr option is necessary. This option is not compatible with the -cache option. Examples:
|
|
-vps : Output file for vps corresponding to the input file. The voxel size value can be specified using the –vox option. If the option –vox is omitted, the voxel size value will be retrieved from the CATSettings (default value = 5mm). The minimum voxel size value is 1mm. The vps files accuracy can be specified using the –vpssag option. If the –vpssag option is specified, vps files are generated with the voxel size and triangle accuracy. If the option is omitted, computation is performed with only voxel size. Example:
|
|
-3dxml : Output file for 3D XML. The generation of a 3D XML
file is only possible for input file of type .CATPart. Example:
|
|
Computing Options |
|
-mp :
CATDMUUtility batch will be launched in multi-process mode. Multi-process
parameters must be set in :
Tools -> Options -> Digital MockUp ->
Multiprocess Settings. The -l and -cache options are
mandatory.
Example: CATDMUUtility -l e:\tests\lists\list1.txt -cgr -cache -mp |
|
-timeout : -timeout time: set the
time out. After this time, child processes will be killed, on the
assumption that they've entered a CPU loop. Available with multi-process
mode (-mp) only. |
|
-process number_of_processes : set the number of child processes. Available with multi-process mode (-mp) only. | |
-filter : -filter <filter.txt> : . This option is only available if the input file is a model, CATPart or CATProduct. The output file must be a cgr, wrl or hcg. The file filter.txt is a list of filter rules. See Using Visualization Filters. | |
-apps : Enables eventual access to V4
comment pages and V4 layers and filters in visualization mode : {com | lnf}
|
|
-vox
: Switch to generate 3map with a specified voxel value. Its use is
mandatory after -3dmap option. A float value is required. -sag : Optional switch to generate cgr with a specified sag value. A float value is required. Default value is defined in the settings. Note: The sag option does not work with certain V4 models (e.g. solids). |
|
-sagon: Optional switch enabling you
to re-generate a cgr with a specified sag value. A float value is required.
Available only with the -cache and -sag options. Works only for input files
that are .CATPart or .model. The default value is defined in the settings. Previously, if you modified the sag value, the cgr was not updated in the cache. Example: CATDMUUtility -f e:\tmp\model.model
-cgr -sag 0.2 -cache Now, if you modify the sag value using the -sagon option, CATDMUUtility
will take the new value into account.
|
|
-keepsag: Activate this switch to
re-tessellate a cgr, keeping the same sag value. The -force option
is mandatory when using -keepsag. You should not use -sag
option with -keepsag. If cgr doesn't exist, it is created with default sag value ( settings ). Examples : CATDMUUtility -f e:\tests\CATPart\cylinder.CATPart
-cgr e:\tmp\keepsag.cgr
-keepsag -force |
|
-nolod : Optional
switch to generate CGR without Level Of Detail (LOD)
-unit : Optional switch to compute
in the appropriate unit { mm, cm, m, inch, foot } -cache : Optional switch to generate files directly in the cache directory (note: this option is mandatory if you are using the -l option). |
|
-log: Store all the error messages in
a log file. If no log file is specified, CATDMUUtility creates one in the
temporary directory Examples : CATDMUUtility -f e:\tmp\model.model -cgr -cache -log e:\tmp\logfile.txt CATDMUUtility -f e:\tmp\model.model -cgr -cache -log -force: Rebuild the output file if the option is activated (You have generated an output file, and you want to update it : use the -force option) Limitation : Only available with -cache option Examples : Test 1 : CATDMUUtility -f e:\tmp\model.model
-cgr -cache If the options are different, CATDMUUtility takes it into account : Test 2 : CATDMUUtility -f e:\tmp\model.model
-cgr -sag 0.2 -cache Test 3 : CATDMUUtility -f e:\tmp\model.model
-3dmap -vox 20 -cache |
|
Note: The contents of the
input file list for the ENOVIAVPM database must be
formatted as follows:
|
|
To use this option, make sure you
work with the Cache system. For this: select Tools->Options->Infrastructure->Cache Management |
|
For more detailed information, see the Infrastructure User's Guide, Cache Management. | |
On UNIX:
On Windows:
Note: The $install_path is the path of the installation directory or folder. For more information on installing DMU, see the Installation User's Guide.
|
|
A user interface is now available
for running the CATDMUUtility batch.
For more information on using the Batch Monitor, see the Infrastructure User's Guide, Basic Tasks, Running Batches, Running Batches Using the Batch Monitor.
|
|
|
More About the Conversion Formats supported:
File Extensions |
CONVERSION TO |
||||||||||
|
cgr | 3dmap | hcg | hsf | vps | VRML |
CAT |
CAT Part |
CAT |
NCGM | |
CATIA | |||||||||||
.model | yes | yes | yes | - | yes | yes | - | - | - | - | |
.CDMA.model | yes | - | - | - | - | - | - | - | - | - | |
.cgr | - | yes | yes | - | yes | yes | - | - | - | - | |
.CATPart | yes | yes | yes | - | yes | yes | - | - | - | - | |
.CATProduct | yes | - | - | yes | - | - | yes | - | - | - | |
CATPSLayout | - | - | - | - | - | - | yes | - | - | - |
Note: For supported Multi-CAD formats, see the sections Requirements and Methodologies and Advice in the corresponding documentation:
- MULTICAx ID Plug-In User's Guide (IDEAS)
- MULTICAx PD Plug-In User's Guide (Pro/Engineer)
- MULTICAx UD Plug-In User's Guide (Unigraphics)
- MULTICAx D5 Plug-In User's Guide (DELMIA D5 Integration)
- MULTICAx Solidworks Plug-In User's Guide (Solidworks)
- MULTICAx SE Plug-In User's Guide (SolidEdge)
- MULTICAx AD Plug-In User's Guide (Acis/DXF3D)
- MULTICAx IGES Plug-In User's Guide (IGES)
- MULTICAx STEP Plug-In User's Guide (STEP)