Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
version 1.1.x
CATIA V5 Starter Tool
for AIX, WINDOWS,
HP-UX, IRIX and SOLARIS
For better orientation in the manual the following symbols are used:
Warning triangle
The warning triangle refers to critical circumstances ,
which should be considered i m p e r a t i v e l y
in order to avoid s e r i o u s problems in your work..
Hint symbol
The light bulb relates to hints ,
which provide you with practical examples
to simplify your work..
Note symbol
The hand symbol relates to notes ,
which you should pay attention to in order to assure
that you can work without problems .
Info symbol
The info symbol relates to
background information .
Table of Contents
***
NOTE
To be able to work on this example, the following working
environment is prerequisite:
(1) WINDOWS-PC with installed CATIA V5 on it;
(2) installed JAVA-runtime-Environment V 1.2.2 or higher;
(3) if need be, CATIA license server;
(4) if necessary, TransCAT VDFS-Prozessor;
(5) if necessary, DC-Start-Tool.
HINTS
• To make your work with XML files easier, we recommand to use the open-
source MXL editor XERLIN that can be downloaded from:
http://www.xerlin.org
This editor is written in JAVA, and runs as well under WINDOWS as under UNIX.
Before downlading, please, pay attention to the license conditions.
The use of a XML editor would help you to avoid errors when writing the XML
file (which often occur when writing XML text using a simple editor.)
• With myV5 the myV5sample.xml file is provided. It contains the final
state of the XML file which is to be worked out as result of the exercise of this
tutorial. If problems should occur during the exercise, you can compare your
XML file with this file.
NOTES
• The information that we give in this tutorial is to be understood as
e x a m p l e . All detailed information that you will find (e. g. on paths) is to be
adapted to the realities of your computer or network system.
In our tutorial we use only short (example) paths. It may be necessary to
replace the following paths:
C:\Java by JAVA installation path
• In some of the XML texts you can find non-XML-conform lines with several
colons:
: : : : : :
Such lines stand for o m i t t e d lines of the XML file.
NOTE
If errors should occur, refer to section 4 Trouble shooting on page 26.
2. Installing myV5
(1) Unpack the installation files in a directory
(that may be a common directory for several computers).
(3) Test myV5 by starting myV5.bat (by double-clicking on the myV5 icon or on the file
name).
Now successively the console window (that edits the programm flow), the splash
screen and the myV5 window must appear.
• Press OK.
` Test the icon.
• Add an ‘Environments’ node with the envname and direnv attributes for the
resulting environment file:
• Add user nodes for CATIA, CATIA batch, office tools and system tools as ‘logical nodes’
defined by the denystart attribute:
• Add notepad to the Office node as a startable application, and set close attribute
to false in order to ensure that myV5 will not closed after starting notepad.
: : : : : :
<Environment name="Office" denystart="true">
<Environment name="Notepad" script="notepad.exe myV5Env.txt"
envpar="false" close="false"/>
</Environment>
: : : : : :
ADVICE:
If in the tree a selection is made that not can
be started , the start icon will be grayed.
NOTE
To be able to use myV5, a license is required.
If when starting myV5 n o l i c e n s e f i l e is
available, a message box will be displayed.
• In this case, press the OK button;
• send an e-mail with license request to
license@transcat.de .
• Copy than the license file that you have
received by e-mail to your myV5 directory.
q
w
Attribute Signification
HINT:
Path and name of the environment file can be copied from the target text
box of the existing CATIA icon.
Example text
copied from the target text box:
C:\B12\intel_a\code\bin\CATSTART.exe -run CNEXT.exe
-env Catia_P3.V5R12.B12 -direnv "C:\B12\CATEnv"
• env:
env="i:\b12\CATEnv\CATIA_P3.V5R12.B12.txt"
If there are b l a n k s in the path, additional quotation marks (“) must be used
(quotation marks in an XML attribute are represented by ")
E x a m p l e f o r script:
script=""C:\B12\intel_a\code\bin\CATSTART.exe" -run CNEXT.exe"
(In this example, the need to put quotation marks occurs due to the blank in the \Dassault
Syst\ string.)
Some XML editors mark translate quotation marks (“)on their own with ".
To start batch files (*.bat), you have to use the command-line interpreter cmd.exe.
The optional parameter /c means: close this command window after execution.
(For detailed information on parameters see WINDOWS help).
In order to keep maintained the option /c after DOS-to-UNIX transformation, the option
within the script attribute must be put in single quotes ('):
: : : : : :
<Environment env="C:\B12\CATEnv\CATIA_P3.V5R12.B12.txt" name="Catia V5 R14"
script=""C:\B12\intel_a\code\bin\CATSTART.exe" -run "CNEXT.exe""
denystart="true">
<Environment name="CATIA_Standard">
</Environment>
<Environment name="CATIA_Del_CATTemp" script="cmd ´/c´ startCatiaDelB12.bat"/>
</Environment>
: : : : : :
Syntax:
HINT:
If you do not have TransCAT VDAFS PROCESSOR V5, you can get a trial
version at www.transcat.de/tcsoft .
: : : : : :
<Environment name="CATIA_Standard">
<Environment name="TC VDAFS Processor" addon="checked"
env="C:\b12\CATEnv\VdafsR12_121.txt"/>
</Environment>
: : : : : :
Add to the env attribute the environment, made by the setup of the VDAFS PROCESSOR.
If in the tree the program is selected and the add-on check box is checked, then when
pressing the start button the resources (“env” and “set” attributes) of TCVDAFS-
PROCESSOR node will be added to the resulting environment-file.
An environment file consists of a set of variables. There are two types of variables:
• Path variables (multiple values) and
• value variables (single value).
These variable-types have to be defined for myV5 execution in the Variables section of the
XML file:
Most variables are predefined in the delivered XML file.
<TransCAT>
<Environments envname="myV5" direnv=".">
: : : : : :
</Environments>
<Variables>
<Variable name="CATEnvironment" type="path"/>
<Variable name="CATInstallPath" type="path"/>
<Variable name="PATH" type="path"/>
<Variable name="LIBPATH" type="path"/>
<Variable name="LD_LIBRARY_PATH" type="path"/>
<Variable name="LD_LIBRARYN32_PATH" type="path"/>
<Variable name="SHLIB_PATH" type="path"/>
<Variable name="CATDLLPath" type="path" sort="bot"/>
<Variable name="CATICPath" type="path"/>
<Variable name="CATCommandPath" type="path"/>
<Variable name="CATDictionaryPath" type="path"/>
<Variable name="CATDocView" type="path"/>
<Variable name="CATReffilesPath" type="path"/>
<Variable name="CATFontPath" type="path"/>
<Variable name="CATGalaxyPath" type="path"/>
<Variable name="CATGraphicPath" type="path"/>
<Variable name="CATMsgCatalogPath" type="path"/>
<Variable name="CATFeatureCatalogPath" type="path"/>
<Variable name="CATDefaultCollectionStandard" type="path"/>
<Variable name="CATStartupPath" type="path"/>
<Variable name="CATW3ResourcesPath" type="path"/>
<Variable name="USER_HOME" type="value"/>
<Variable name="CATReferenceSettingPath" sort="top" type="path"/>
<Variable name="CATUserSettingPath" type="path"/>
<Variable name="CATCollectionStandard" type="path"/>
<Variable name="CATTemp" type="value"/>
<Variable name="CATMetasearchPath" type="path"/>
<Variable name="CATW3PublishPath" type="path"/>
<Variable name="CATSharedWorkbookPath" type="path"/>
<Variable name="CATErrorLog" type="value"/>
<Variable name="CATReport" type="value"/>
<Variable name="CATDisciplinePath" type="path"/>
<Variable name="JAVA_HOME" type="value"/>
<Variable name="CLASSPATH_JDBC" sort="top" type="path"/>
<Variable name="CLASSPATH" type="path"/>
</Variables>
</TransCAT>
For the VDAFS PROCESSOR it is necessary to be referenced in the path variables before
CATIA. Therefore, in the CATDLLPath variable the VDAFS PROCESSOR path must stand
before the CATIA path. This can be achieved by giving the sort attribute the bot value.
• bot
<TransCAT>
<Environments envname="myV5" direnv=".">
: : : : : :
</Environments>
<Variables>
<Variable name="CATInstallPath" type="path"/>
<Variable name="CATDLLPath" type="path" sort="bot"/>
<Variable name="CATICPath" type="path"/>
: : : : : :
</Variables>
</TransCAT>
Result:
With the bot attribute the CATIA CATDLLPath will be in bottom position, i. e. behind the
VDAFS Processor CATDLLPath.
CATDLLPath=E:\Programme\TransCAT\VdafsR12_121\intel_a\code\bin;i:\B12\intel_a\code\bin
• top would give the following result (what, in this case, is not desired):
<TransCAT>
<Environments envname="myV5" direnv=".">
: : : : : :
</Environments>
<Variables>
<Variable name="CATInstallPath" type="path"/>
<Variable name="CATDLLPath" type="path" sort="top"/>
<Variable name="CATICPath" type="path"/>
: : : : : :
</Variables>
</TransCAT>
Result:
CATDLLPath=i:\B12\intel_a\code\bin;E:\Programme\TransCAT\VdafsR12_121\intel_a\code\bin
On each subnode the additional parameters for the project are added (beginning with the
@ sign).
<Environment
name="DaimlerCrysler"
script="cmd /c start wperl I:/B12/_DC_Zulieferer3/srv/B12/scripts/V5Start.pl -v B12 -env
DCAG_Prod"
envpar="false"
denystart="true">
<Environment name="DaimlerCrysler" script="@-p /DC -lic ED2" envpar="false">
<Environment/>
<Environment name="Chassis" script="@-p /DC/Chassis -lic ED2" envpar="false">
<Environment/>
<Environment name="POS" script="@-p /DC/POS -lic ED2" envpar="false">
<Environment/>
<Environment name="Powertrain" script="@-p /DC/Powertrain -lic ED2" envpar="false">
<Environment/>
<Environment name="Rohbau" script="@-p /DC/Rohbau -lic ED2" envpar="false">
<Environment/>
<Environment name="TubingISO" script="@-p /DC/TubingISO -lic ED2" envpar="false">
<Environment/>
</Environment>
If you want to ensure dynamic binding of TransCAT VDAFS PROCESSOR (or of any other
add-on) in the DC environment, proceed as follows:
• Copy the standard VDAFS CATIA environment file (in order to adapt it to the
DaimlerChrysler start tool requirements).
copy I:\B12\_CATEnv\VdafsR12_121.txt I:\B12\_CATEnv\DC_VdafsR12_121.txt
CATInstallPath=$EDisk/Programme/TransCAT/VdafsR12_121/intel_a;$IDisk/B12/intel_a
@set EDisk=e:
@set IDisk=i:
As a result myV5 creates a new environment template-for the DC PERL script. Then the DC
PERL script adds specific environments and starts CATIA V5.
The script has to be started with the -env and -direnv parameters.
<TransCAT>
: : : : : :
<GlobalRadios>
<GlobalRadio name="MD2" set="LicMD2SetDir"/>
<GlobalRadio name="HD2" set="LicHD2SetDir"/>
</GlobalRadios>
</TransCAT>
<TransCAT>
: : : : : :
<Tools>
<Tool name="Editor" script="notepad.exe"/>
<Tool name="Calculator" script="calc.exe"/>
</Tools>
</TransCAT>
` Test it, open the Tools menu and start the applications.
<TransCAT>
: : : : : :
</Tools>
<Options>
<Option destination="cmdline" name="admin" value=" -admin"/>
<Option destination="envfile" name="console"
value="CNEXTOUTPUT=console"/>
</Options>
</TransCAT>
` Test this function by deleting the file C:\myV5\myV5Env.txt. Restart then myV5 .
4. Trouble shooting
For trouble shooting you can use the debug output, which displays critical runtime values
of myV5. To get debug output,
• write in the start batch file (myV5.bat) in the myV5 command line the option –d
• add a line with the pause command
• start from console window.
` Edit myV5.bat and test if the debug information is displayed in the console window
(cf. example below).
*-------------------------------------------------------------------------------
* Used XML-File : 'C:\myV5\myV5.xml'
* Used Lic-File : 'C:\myV5\myV5.lic'
* Load Imagefile : '.\myV5Logo.gif'
* Destination Env : '.\myV5Env.txt'
*-------------------------------------------------------------------------------
* Prev Treepath : '- TransCAT'
* Prev Treepath : '- Catia V5 R14'
* Prev Treepath : '- DaimlerCrysler'
* Prev Treepath : '- DaimlerCrysler'
* Prev LicenseCfg : '* MD2'
* Set Window (x,y): 601,357
* Set Window (w,h): 397,485
* Set vert. Tiler : 190
* Set horz. Tiler : 100
*-------------------------------------------------------------------------------
* initializing myV5 ended.
*-------------------------------------------------------------------------------
* Start Button pressed
*-------------------------------------------------------------------------------
* Retr. Info from : 'TransCAT'
* Retr. Info from : 'Batch V5 R14'
* Retr. Info from : 'CATDUA'
* Retr. Info from : 'MD2'
*-------------------------------------------------------------------------------
* Write variables to Env-File:
*-------------------------------------------------------------------------------
: : : : : : : : : : : :
* Original: 'CATReferenceSettingPath=C:\B12\CATSetMD2'
* Var_repl: 'CATReferenceSettingPath=C:\B12\CATSetMD2'
* OS_swapp: 'CATReferenceSettingPath=C:\B12\CATSetMD2'
*-------------------------------------------------------------------------------
* ScriptAttribute : 'C:\B12\intel_a\code\bin\CATSTART.exe -run "CATUTIL -Name CATDUAV5"'
* Start Script : 'C:\B12\intel_a\code\bin\CATSTART.exe -run "CATUTIL -Name CATDUAV5"'
***