Rules and Standards |
Building and Launching a CAA V5 Use CaseHow to set up the environment, compile and execute a use case |
Use Case |
AbstractThis article shows how to set up a CAA V5 build time environment for use case, compile one or several use case modules, then set up a run time environment, and finally launch the use case. |
This use case is intended to show you how to set up a CAA V5 build time environment, by copying the CAA frameworks containing the use cases in a workspace root directory of your own, get the prerequisite frameworks of the CAA frameworks, and build a use case along with its prerequisites. Then, it shows how to set up a run time environment, and finally launch the use case.
[Top]
The operating systems V5 currently supports are used thanks to an acronym in different directory paths to store dedicated files. These acronyms are:
Acronyms | Operating Systems |
---|---|
intel_a | Windows XP 32-bit |
win_b64 | Windows XP 64-bit |
aix_a | AIX 32-bit |
aix_a64 | AIX 64-bit |
hpux_b | HP-UX |
solaris_a | Solaris |
A typical usage of these acronyms is to name the directory path where the executable code is stored. For example,
InstallRootDirectory\intel_a\code\bin
Where InstallRootDirectory is the directory where you install the V5 run time.
[Top]
CAAUseCase is a generic name for the CAA V5 use cases. You should just replace CAAUseCase by the actual name of the CAA V5 use case module you want to build and launch. To leave your CD-ROM installation as a safe reference, create a separate root directory for the CAA use cases in which you can freely copy, build, run, and possibly modify the use cases. In the following, assume that InstallRootDirectory is the directory where you install the V5 run time and the CAA V5 CD-ROMs, and that ToolsRootDirectory is the directory where you install the CAA-RADE V5 CD-ROM.
[Top]
To build and launch a CAA use case, first set up the build time environment by copying the CAA frameworks containing the use cases in a workspace root directory of your own, and build the use case associated module(s) along with their prerequisites using the Multi-Workspace Application Builder mkmk. Then set up the run time environment, and launch the use case. Assume the load module is CAAUseCase.m. Open a Command Prompt (DOS window) and:
ToolsRootDirectory\OS_a\code\command\tck_init tck_profile TCK chdir MyRootDirectory\CAAFramework.edu mkGetPreq -p InstallRootDirectory
Where OS_a
is intel_a
for Windows XP 32 bit, and
win_b64
for Windows XP 64 bit.
To know which TCK
you can use, type tck_list
,
and choose the level that matches your installation among those available.
If you want to build and run a given use case, or a subset of the supplied
use cases, copy only the frameworks that contain these use case. Since some
use cases request other use cases, run mkCopyPreq
before
mkGetPreq
, as follows:
mkCopyPreq -p InstallRootDirectory\CAADoc
This will retrieve all the prerequisite CAA frameworks of the use case frameworks that you have copied.
mkmk -u CAAUseCase.m
mkmk -au
mkCreateRuntimeView mkrun -c "cmd"
set CNEXTOUTPUT=CONSOLE
CAAUseCase
CAAUseCase arg1 arg2 ...
CNEXT
mkCreateRuntimeView
http://HttpPortalServer/enovia_portal/indexCAA.html
mkCreateRuntimeView mkrun -c "cmd"
MyRootDirectory\CAAFramework.edu\CNext\code\command\CAARunUseCase OrbixPortalServer
where
InstallRootDirectory |
The pathname of the directory into which the CATIA V5 run time and CATIA-CAA V5 CD-ROMs were unloaded |
ToolsRootDirectory |
The pathname of the directory into which the CAA-RADE V5 CD-ROM were unloaded |
MyRootDirectory |
The pathname of the root directory where you can copy and build the use case |
TCK |
The Tool Configuration Key, such as V5R9 or V5R9_SP2 |
CAAFramework.edu |
The CAA framework that contains the use case module |
CAAUseCase.m |
The use case module, or one of the modules that make up the use case |
CAARunUseCase |
The command which launches the use case, delivered in MyRootDirectory\CAAFramework.edu\CNext\code\command |
HttpPortalServer |
The hostname of the server in the form: server:http_port or server if the port is 80. ex: MyMachine:85 |
OrbixPortalServer |
The hostname of the server in the form server:orbix_port or server if the port is 1570. ex: MyMachine:1574 |
[Top]
To use Visual Studio .NET with CAA V5, you need to set up the build time environment, and access the prerequisite frameworks.
You can now build and launch a CAA use case, that is, build the use case associated module(s) along with their prerequisites using mkmk. Then you set up the runtime environment, and launch the use case. Here we assume that the load module is CAAUseCase.m.
[Top]
To build and launch a CAA use case, first set up the build time environment by copying the CAA frameworks containing the use cases in a workspace root directory of your own, and build the use case associated module(s) along with their prerequisites using the Multi-Workspace Application Builder mkmk. Then set up the run time environment, and launch the use case. Assume the load module is CAAUseCase.m. Open a shell window and:
$ . ToolsRootDirectory/OS_a/code/command/tck_init $ tck_profile TCK $ cd MyRootDirectory/CAAFramework.edu $ mkGetPreq -p InstallRootDirectory
To know which TCK
you can use, type tck_list
,
and choose the level that matches your installation among those available.
If you want to build and run a given use case, or a subset of the supplied
use cases, copy only the frameworks that contain these use case. Since some
use cases request other use cases, run mkCopyPreq
before
mkGetPreq
, as follows:
mkCopyPreq -p InstallRootDirectory/CAADoc
This will retrieve all the prerequisite CAA frameworks of those you copied.
$ mkmk -u CAAUseCase.m
$ mkmk -au
$ mkCreateRuntimeView $ mkrun -c "/bin/ksh"
CAAUseCase
CAAUseCase arg1 arg2 ...
CNEXT
$ mkCreateRuntimeView $ mkrun -cf EnvFileFullPath -c "/bin/ksh"
Where:
EnvFileFullPath
is the full pathname of the environment
file you want to use to launch the use caseCAAUseCase
CAAUseCase arg1 arg2 ...
$ mkCreateRuntimeView
$ export CAA_RTVS=MyRootDirectory/OS_a/docs/java
http://HttpPortalServer/enovia_portal/indexCAA.html
$ mkCreateRuntimeView $ mkrun -c "/bin/ksh"
MyRootDirectory/CAAFramework.edu/CNext/code/command/CAARunUseCase OrbixPortalServer
where
InstallRootDirectory |
The pathname of the directory into which the CATIA V5 run time and CATIA-CAA V5 CD-ROMs were unloaded |
ToolsRootDirectory |
The pathname of the directory into which the CAA-RADE V5 CD-ROM were unloaded |
MyRootDirectory |
The pathname of the root directory where you can copy and build the use case |
OS_a |
The UNIX operating system dependent directory. Valid values are:
|
TCK |
The Tool Configuration Key, such as V5R9 or V5R9_SP2 |
CAAFramework.edu |
The CAA framework that contains the use case module |
CAAUseCase.m |
The use case module, or one of the modules that make up the use case |
CAARunUseCase |
The command which launches the use case, delivered in MyRootDirectory/CAAFramework.edu/CNext/code/command |
HttpPortalServer |
The hostname of the server in the form: server:http_port or server if the port is 80. ex: MyMachine:85 |
OrbixPortalServer |
The hostname of the server in the form server:orbix_port or server if the port is 1570. ex: MyMachine:1574 |
[Top]
This use case shows how to set up the environments, compile, and launch a CAA V5 use case with Windows and UNIX.
[Top]
Version: 2 [July 2005] | Document updated |
Version: 1 [Apr 2000] | Document created |
[Top] |
Copyright © 1999-2007, Dassault Systèmes. All rights reserved.
Special Notices
CAA V5 CATIA |
CAA V5 DELMIA |
CAA V5 ENOVIA