Documente Academic
Documente Profesional
Documente Cultură
AITAC B.V.
http://www.aitac.nl Guido Gezellelaan 10
phone: +31 6 21 53 87 65 2182 WC Hillegom
or: +31 6 51 52 47 01 The Netherlands
AITAC B.V.
paul.van.der.zande@aitac.nl
December 7, 2004
2 Installation
2.1 Prerequisites
The program runs on AIX only, on the following levels:
424RF01 (provided the PTF’s corresponding to APAR: HC88597, HC88695, HC92492,
HC90491, HD03848 are installed).
424RF03 (provided the PTF’s corresponding to APAR: HC97895, HD00961, HD04398,
HD03577, HD02645 are installed).
The program runs also on Catia 421 and 422, but a special declaration has to be set.
First option is to define a new directory, for example a directory local to the project :
$PROJ_LOC/steplib/AIX or local to the reference site: $CAT_SITE/steplib/AIX
Place the module in that directory; the module must be readable for all users:
chmod a+r AECDXF
Note: if you don’t want to use the above mentioned directory, you can find out which existing
directories can be used to place the module. To do so, use following command:
catpath –l -A STEPLIB
It will list the directories that are taken into account when loading the module (e.g.
$CAT_CUST/code/steplib/AIX).
2.3 Declarations
2.3.1 Quickly setting up the declarations
In order to quickly set up the declarations, you can do the following. If your master
declaration file is pointing to a central declaration file which is accessible by all users, then
add the following 2 lines to the end of this file:
include(‘$CAT_SITE/dec/DXF.dcls’) ;
Note that the master declaration file is defined by the environment variable : CATMSTR
If your master declaration file is not pointing to a central declaration file (e.g. it is pointing to
$HOME/USRENV.dcls), do the following:
Change the value of CATMSTR to: $PROJ_LOC/dec/SHIP1.dcls, then create this file, and
add the line described above. If you still want to include the USRENV.dcls in the home
directories of the users, also add the line:
include (‘$HOME/USRENV.dcls’);
You will still have to modify the values of declarations in DXF.dcls, but most of the work is
done.
/* function AEC_DXF */
CATCMD.FUNCTION.NAME.AECDXF = 'AEC_DXF';
CATCMD.FUNCTION.LOAD3D.AECDXF = 'AECDXF';
CATCMD.FUNCTION.MODSPACE.AECDXF = TRUE;
If you already have a function ‘AEC_DXF’ or you already have a module AECDXF, you can
use different names (don’t forget to rename the file AECDXF).
If you (re-)start CATIA, you will be able to find the function key in the list of available
functions if the declaration is done correctly, and CATIA could find the module AECDXF
during the startup. The function will not work correctly however until the message files have
been installed.
The following declaration is optional (default). It allows to run without SOLIDE license.
/* To use ABA API’s */
CATDXF.SETUP.DXF.ABA_API : INTEGER;
CATDXF.SETUP. DXF.ABA_API = 1 ;
/* */
If you use SOLIDE API’s you need to have the SOLIDE (SOE, SBP, SBD, etc) license
allocated to yourself before starting the conversion.
Note: if you have one fixed directory for all projects, you can use $CAT_SITE instead of
$PROJ_LOC.
Be sure to always allocate the SOLIDE license before you start the function (the function will
never access the ABA API’s of course).
• Layers:
o All elements are placed in a layer corresponding to their Catia layer number,
or;
o All elements are placed in a layer corresponding to their Catia layer number,
but piping elements, and equipments, are placed on a layer that is not defined
by the Catia layer number, but by the name of the pipeline of the equipment.
• Polynomial curves:
o Polynomial curves are written as polylines with a number of straight segments.
This option will always the taken when version 12 DXF file is created.
o Polynomial curves are written as Bezier arcs. 1 Bezier arc per polynomial arc.
This option is to be used when no FRF license is available.
o Polynomial curves are written as (multi segment) B-Splines. But you need
access to licenses allowing these API’s to be executed. In case of abend
(‘licensing violation’), use previous option.
Select the File… button and select the DXF file (notice that the file should have only
LineFeed characters (LF) at the end of the line (as common on Unix) and not CR/LF
characters (as used on Windows). So transfer the file using the ASC mode when using FTP.
Define the dX,dY,dZ for the transformation (normally 0/0/0, but you can translate the
geometry to a different location in you 3D model directly on import).
In some cases the DXF file may have been written by a program that orients the normal
vector of facets towards the inside of the volume described by the polyfacet (relevant for
closed volumes only, not for open body polyfacets). In that case, you may want to tell Catia
to invert the orientation of the facets.
Select the Apply button. After the program has finished, reframe the model, and you may
want to review also the detail workspaces.