SlideShare a Scribd company logo
1 of 26
Download to read offline
White Paper
3DS.COM©DassaultSystèmes
CAA Rade by Example
Version 1.0 – 3/1/2014
Written by: Bernard Tanner
Validated by: NA
Edited by: Anne Marie Miller
3DS.COM©DassaultSystèmes
White Paper
2
3DS.COM©DassaultSystèmes
Executive Summary
This document is intended to serve as an introduction to using CAA RADE. It includes
information on the CAA RADE licensing mechanism, and how to integrate CAA RADE
to work with the Microsoft Visual Studio environment. Two example CAA RADE
applications are built and run. Then, source code changes are made, followed by a re-
compilation and re-run of the programs.
Introduction
The administration of CAD/CAM systems is an important responsibility of a systems
administrator in a design and manufacturing company. This paper covers some
advanced tips and techniques for both Windows and UNIX workstations that will make
your CATIA V5 Administration more efficient. These techniques will help simplify or
eliminate some of the time consuming installation and customization tasks. This
paper is intended for the administrators, who want to understand the concepts that
are beyond the basics tasks and can help with the maintenance of existing
installations.
White Paper
3DS.COM©DassaultSystèmes
Contents
1. What is CAA RADE?...................................................................................................... 4
2. Workspaces and Frameworks........................................................................................ 4
3. The Difference between a Script and a Program............................................................ 5
4. Compile-time and Run-time Failures.............................................................................. 5
5. The CAA RADE Licensing Mechanism .......................................................................... 5
6. Integration with Microsoft Visual Studio Environment..................................................... 7
7. Creating the Workspace................................................................................................. 9
8. Building the solution..................................................................................................... 18
9. Executing the Program................................................................................................. 19
10. Making a change to the source code........................................................................ 20
11. Rebuilding and running the new program ................................................................. 21
12. Exercise ................................................................................................................... 22
13. Conclusion ............................................................................................................... 24
14. References............................................................................................................... 24
15. Revision History ....................................................................................................... 25
16. Related Documentation............................................................................................ 25
17. Document History..................................................................................................... 25
White Paper
4
3DS.COM©DassaultSystèmes
1. What is CAA RADE?
The Component Application Architecture, Rapid Application Development Environment
makes possible the quick development of programs and standalone applications that can be
integrated with CATIA. CAA RADE enables improved productivity by means of enhancing
the existing CATIA functionality and enables the development of new applications.
Harnessing the full capabilities available with the CAA RADE software requires an in depth
knowledge of the APIs (Application Programming Interfaces) contained within CAA RADE.
As an example of the power a CAA RADE solution can have (a catch-all phrase for
application/program/environment), a programmer could create a solution that when a user
ran it, it would take the parameters that the user specified, and based on them the solution
would then create a complex CATPart. The user could then use this newly created Part as a
starting point for further design modeling.
2. Workspaces and Frameworks
To make the development of your CAA RADE solutions logical and easier to manage it is a
good idea to create new folders for each solution you develop. These folders are referred to
as Workspaces.
Each Workspace will have at least one Framework. As suggested by its name, a framework
can be looked upon as a skeleton, a basic building block, providing an environment for faster
solution development. Certain functions or interfaces, such as buttons and pop-up panels,
will be common to any solution you create and are provided within the framework. A
programmer new to CAA RADE should examine the source code supplied with the
education Frameworks in conjunction with the CAA RADE documentation in order to begin
learning how to develop their own CAA RADE solutions (the supplied “Use cases” are a
good starting point).
With the appropriate knowledge of the APIs, programmers can create new functionality, or
extend existing functions or interfaces.
White Paper
5
3DS.COM©DassaultSystèmes
3. The Difference between a Script and a Program
A Script, also known as a macro, is what is commonly called interpreted. You can read a
script like a sentence. It contains words and a grammatical structure. Each time a script is
run these readable statements are converted - interpreted, into a language that the computer
can understand. The converted language is known as machine code.
A Program, on the other hand, is already machine code and is generated by running source
code through a compiler. Although the source code for a program is in a readable format the
Program / machine code is in a non-readable format. Unlike a Script the source code is
compiled into a Program once and then the Program can be executed repeatedly without
any intermediate or interpretative step. When the program is run the computer understands
directly the operations it needs to do in order to execute the program.
In a way, Scripts could also be seen as source code, but instead of being compiled once, are
always interpreted on the fly each time the Script is run.
The rest of this document addresses only CAA programs built (compiled) and executed
within the Visual Studio IDE (Integrated Development Environment).
4. Compile-time and Run-time Failures
Since we have discussed compilation of source code it is imperative that we understand
there are two types of potential problems during the development cycle of a solution.
Problems can occur at the time of compilation - Compile-time failures, and also at the time of
running - Run-time failures. When reporting problems it is important to provide a clear
description of the problem and indicate if the error was a run-time or compile-time error. A
step-by-step scenario leading up to the error, a copy of the error message text and codes
seen at the time of the error and a copy of the workspace should be included in any problem
report submitted to Dassault Systemes.
5. The CAA RADE Licensing Mechanism
In order to use CAA RADE you must configure it to use a valid license. Begin this process
with the following selections on your workstation:
Start => All Programs => CAA RADE => Tools => RADE Licenses Manager V5R19
White Paper
6
3DS.COM©DassaultSystèmes
Figure 1 – CATVBTLicenser panel
Select the license appropriate for your environment and then select Apply button. You
should see an informational pop up window indicating the Settings were saved successfully.
Close the window.
White Paper
7
3DS.COM©DassaultSystèmes
6. Integration with Microsoft Visual Studio
Environment
In order to develop CAA RADE solutions with the Microsoft Visual Studio environment, you
must run the CATVBTSetup utility. On a default R19 environment this utility is located in:
C:Program FilesDassault SystemesB19intel_acodebin.
Execution of the “CATVBTSetup” will yield the window below.
Figure 2 – CATVBTSetup panel
Under Target applications make sure that Visual Studio is selected, along with the other
components you wish to install, and then select the Install button. You will be asked to
confirm this location. Figure 3 is an image of the window after the location has been
confirmed.
White Paper
8
3DS.COM©DassaultSystèmes
Figure 3 – CATVBTSetup output
Be certain the setup operation completes with the message “Setup done without errors”.
With the setup completed you are ready to start building and running RADE applications
within the Visual Studio environment.
White Paper
9
3DS.COM©DassaultSystèmes
7. Creating the Workspace
Begin creating a CATIA V5 Workspace with the creation of the following two folders:
C:MyRootDirector
C:MyRootDirectoryCAAxPDMInterfaces
Assuming a default R19 installation location, navigate within your Explorer window to:
C:Program FilesDassaultSystemesB19CAAdoc
Copy the CAAxPDMItnterfaces.edu framework and paste it into:
C:MyRootDirectoryCAAxPDMInterfaces
Launch Microsoft Visual Studio from your Windows Start => All Programs menu
If the CATVBTSetup you ran earlier worked OK, you should see the Welcome Panel.
White Paper
10
3DS.COM©DassaultSystèmes
Figure 4 – Welcome to CAA RADE
Select the Close button in the Welcome panel.
White Paper
11
3DS.COM©DassaultSystèmes
If you don’t see the Welcome screen, or you wish to check the validity of the CAA
RADE/Visual Studio integration, select Add-in Manager under the Visual Studio Tools
menu.
Figure 5 – Add-in Manager
If the CATVBTSetup.exe operation you ran earlier was successful, you should see at least
some of the CAA Add-in options as shown in Figure 5.
Select the OK button in the Add-in Manager window.
We are now ready to prepare our Workspace for compile-time and run-time operations.
From the Visual Studio File menu choose Open CAA Workspace...
Select Mkmk and enter or brows to C:MyRootDirectoryCAAxPDMInterfaces.
Set the Tool level at R19 as seen in Figure 6.
White Paper
12
3DS.COM©DassaultSystèmes
Figure 6 – Open V5 Workspace
Figure 7 – Tools Initialization
Note the potential debugging information given, such as the compiler level that will be used.
Closing the window in Figure 7 will result in the following warning:
White Paper
13
3DS.COM©DassaultSystèmes
Figure 8 – Prerequisite Warning
Selecting OK will result in the Project Generation pop up message window
Figure 9 – Project Generation
Select OK in the Project Generation window and then expand the tree as shown if Figure 10.
Select the CAAxPDMReadItemInfo module. Also select Generate projects for
prerequisites option at the bottom of the window.
White Paper
14
3DS.COM©DassaultSystèmes
Figure 10 – Module Selection
At this point the Prerequisite Warning message seen earlier in Figure 8 must be addressed.
From the Visual Studio CAAV5 Workspace menu select Define Prerequisite
Frameworks (OK to the warning).
Select the Access Prerequisites from their original location under the Mode section.
Select the Add button.
Select C:Program FilesDassault SystemB19 in the Origin for prerequisites Frameworks
section of the window.
White Paper
15
3DS.COM©DassaultSystèmes
Figure 11 – Prerequisite Workspaces
Select OK and a Installation Prerequisites window will be displayed. Upon completion of the
prerequisite installation the following window will be displayed:
White Paper
16
3DS.COM©DassaultSystèmes
Figure 12 – Prerequisite installation
Select the Close button in the Installing Prereqs window and the Prerequisite Installation
completes with the displaying of the Define Prerequisite Framework window, seen in
Figure 13.
White Paper
17
3DS.COM©DassaultSystèmes
Figure 13 – Current Framework
Select OK to close the window.
White Paper
18
3DS.COM©DassaultSystèmes
8. Building the solution
We are now ready to build (compile) the module. From the Visual Studio Build menu select
Mkmk and select the options seen in Figure 14 before selecting OK.
Figure 14 – Choose module(s) to build
With the selection of OK in the Code Builder window, a Command Manager and a log
window will appear. When the Command Manager completes, scroll through the log
window to check for a successful return code (RC = 0). Providing the log window indicates a
successful completion, you now have a functioning Module and are ready to execute the
Program.
White Paper
19
3DS.COM©DassaultSystèmes
9. Executing the Program
From within the Visual Studio Window menu, select Open Runtime Window
The name of the module that you have just compiled is called CAAxPDMReadItemInfo
When in this Runtime Window the following command will list all modules:
dir intel_acodebin*.exe
Now let’s execute the program. Assuming you have a valid Part called C:Part1.CATPart,
enter the following command:
CAAxPDMReadItemInfo C:Part1.CATPart
If the environment and build (compilation) is good, you should see output similar to the
following:
Figure 15 – First program run output
White Paper
20
3DS.COM©DassaultSystèmes
10. Making a change to the source code
Alterations to the source code are done by expanding the CAAxPDMReadItemInfo.m
module in the Solution Explorer in order to access the source code file
(CAAxPDMReadItemInfo.cpp) within the src folder.
Double click the CAAxPDMReadItemInfo.cpp C++ source code file, and as per the image
below see that it is now available for editing in the right hand windows
Execute a find (Cntrl-F) for “Created”.
Underneath the “A session is created” line, add another count statement to output another
message that will be seen after the solution is recompiled and run again.
Figure 16 – Editing the Source Code
Do a Cntrl-S to save the changes you have made to the source code.
White Paper
21
3DS.COM©DassaultSystèmes
11. Rebuilding and running the new program
Because we have made an alteration to the source code we need to re-build the solution,
updating the program module (CAAxPDMReadItemInfo.exe)
Once again select Build =>Mkmk and select the options seen in Fig 18 before selecting OK.
Figure 17 – Rebuilding after source code change
When the module has been rebuilt, go the runtime window and again enter:
CAAxPDMReadItemInfo C:Part1.CATPart
We should see a different output, reflecting the change made in the source code.
White Paper
22
3DS.COM©DassaultSystèmes
Figure 18 – Output from the modified Source Code
In the image seen in Fig 19 we can see the second line reflects what was changed in the
source code.
12. Exercise
In this exercise you will build and run the CAASkiBasicGeometries module, then make a
source code change, recompile the module and re-run it. The CAASkiBasicGeometries
module is part of the CAASketcherInterfaces.edu framework. The reader can refer to the
previous material presented in this document if they need to refresh themselves with the
procedure involved.
Create a new appropriately named workspace for this new solution.
Copy the CAASketcherInterfaces.edu framework into this new workspace.
In the Visual Studio environment, open the newly created workspace.
Do the necessary steps to prepare this new workspace for build-time and run-time
execution.
Build the solution.
Open the Runtime Window.
Enter the following command (choose a different Part name/location if desired):
CAASkiBasicGeometries C:CAASkiBasicGeometries1.CATPart
When the command completes, within CATIA open the CAASkiBasicGeometries1.CATPart
Update the PartBody if necessary.
White Paper
23
3DS.COM©DassaultSystèmes
Double-click the profile to activate the sketch.
Do a “Fit All in” if the sketch is not visible. Notice the radius value of 10mm as seen in Figure
19.
Figure 19 – Profile with radius of 10mm
Now make a change to the source code so that when the solution is run a different radius
size is created.
Use the Solution Explorer to locate and open the Source Code used to compile the
CAASkiBasicGeometries.exe module. A Ctrl-F will present the find dialogue box.
Underneath the // Creates corner + constraints comment line there will be the C++ statement
used to create the radius. Change the value from 10 to 25. What is the C++ statement that is
used to create this radius called, and how is it structured?
Save the changes to the source code and then re-build (recompile) the module.
Re-run the solution, but choose a different output file name:
CAASkiBasicGeometries C:CAASkiBasicGeometries2.CATPart
The images seen in Figure 20 display the radius differences between the original build and
the re-compilation build.
White Paper
24
3DS.COM©DassaultSystèmes
Figure 20 – Result of a source code change, re-build, and re-run of the solution
13. Conclusion
This document was written to be a hands-on introduction to using CAA RADE. Integration
between CAA RADE and Visual Studio is described in detail. The reader is exposed to the
process of building and running a solution along with making source code changes,
rebuilding the solution and verifying the changes made with a re-run of the modified module.
Examples provided leave the reader with the knowledge required to get started with CAA
programming.
14. References
CATIA V5 CAA Online Documentation:
- Technical Articles
- Use cases
- Quick References
White Paper
25
3DS.COM©DassaultSystèmes
15. Revision History
May 2011 – original doc authored
March 2014 – updated new template
16. Related Documentation
For additional information, refer to the following Q&A’s from our Knowledge Base:
KA QA00000007029 What is RADE?
KA QA00000002180 RADE Licenses
KA QA00000003673 How to build the CAA workspace on UNIX using visual studio and
RSH?
17. Document History
Document
Revision Date Revised By Changes/Notes
0.0 May 2011 A3R Original
1.0 Mar 2014 A3R Updated to new template
White Paper
26
3DS.COM©DassaultSystèmes

More Related Content

What's hot

Model Based Systems and Software Engineering an overview of the IBM Rational ...
Model Based Systems and Software Engineering an overview of the IBM Rational ...Model Based Systems and Software Engineering an overview of the IBM Rational ...
Model Based Systems and Software Engineering an overview of the IBM Rational ...Real-Time Innovations (RTI)
 
IBM Rational Rhapsody and Qt Integration
IBM Rational Rhapsody and Qt IntegrationIBM Rational Rhapsody and Qt Integration
IBM Rational Rhapsody and Qt Integrationgjuljo
 
Rhapsody Software
Rhapsody SoftwareRhapsody Software
Rhapsody SoftwareBill Duncan
 
Software architecture patterns
Software architecture patternsSoftware architecture patterns
Software architecture patternsRiccardo Cardin
 
Installing Oracle Primavera P6 Professional standalone
Installing Oracle Primavera P6 Professional standaloneInstalling Oracle Primavera P6 Professional standalone
Installing Oracle Primavera P6 Professional standaloneTen Six Consulting
 

What's hot (6)

Model Based Systems and Software Engineering an overview of the IBM Rational ...
Model Based Systems and Software Engineering an overview of the IBM Rational ...Model Based Systems and Software Engineering an overview of the IBM Rational ...
Model Based Systems and Software Engineering an overview of the IBM Rational ...
 
IBM Rational Rhapsody and Qt Integration
IBM Rational Rhapsody and Qt IntegrationIBM Rational Rhapsody and Qt Integration
IBM Rational Rhapsody and Qt Integration
 
Forrester Infra as code TLP_April2015
Forrester Infra as code TLP_April2015Forrester Infra as code TLP_April2015
Forrester Infra as code TLP_April2015
 
Rhapsody Software
Rhapsody SoftwareRhapsody Software
Rhapsody Software
 
Software architecture patterns
Software architecture patternsSoftware architecture patterns
Software architecture patterns
 
Installing Oracle Primavera P6 Professional standalone
Installing Oracle Primavera P6 Professional standaloneInstalling Oracle Primavera P6 Professional standalone
Installing Oracle Primavera P6 Professional standalone
 

Similar to Ds white papers_caa_radebyexample

A simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechA simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechPooja Gaikwad
 
A simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworkA simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworksonia merchant
 
IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...
IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...
IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...Fraser Chadburn
 
Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)
Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)
Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)Fraser Chadburn
 
Dot Net Fundamentals
Dot Net FundamentalsDot Net Fundamentals
Dot Net FundamentalsLiquidHub
 
Full Stack Web Development: Vision, Challenges and Future Scope
Full Stack Web Development: Vision, Challenges and Future ScopeFull Stack Web Development: Vision, Challenges and Future Scope
Full Stack Web Development: Vision, Challenges and Future ScopeIRJET Journal
 
Developing apps with techstack wp-dm
Developing apps with techstack wp-dmDeveloping apps with techstack wp-dm
Developing apps with techstack wp-dmActian Corporation
 
NetWeaver Developer Studio for New-Beas
NetWeaver Developer Studio for New-BeasNetWeaver Developer Studio for New-Beas
NetWeaver Developer Studio for New-BeasChander445
 
tarun 16 may sr.system eng Resume
tarun 16 may sr.system eng Resumetarun 16 may sr.system eng Resume
tarun 16 may sr.system eng Resumetarun prakash singh
 
Tools, Process & Technical Delivery at CMD
Tools, Process & Technical Delivery at CMDTools, Process & Technical Delivery at CMD
Tools, Process & Technical Delivery at CMDGarrett Gillas
 
Balsamiq mockups tutorial
Balsamiq mockups tutorialBalsamiq mockups tutorial
Balsamiq mockups tutorialHarikaReddy115
 
Atmel - Next-Generation IDE: Maximizing IP Reuse [WHITE PAPER]
Atmel - Next-Generation IDE: Maximizing IP Reuse [WHITE PAPER]Atmel - Next-Generation IDE: Maximizing IP Reuse [WHITE PAPER]
Atmel - Next-Generation IDE: Maximizing IP Reuse [WHITE PAPER]Atmel Corporation
 
Bpc 10.0 NW Mass User Management tool
Bpc 10.0 NW Mass User Management toolBpc 10.0 NW Mass User Management tool
Bpc 10.0 NW Mass User Management toolShanmugam Veerichetty
 
Deploying deep learning models with Docker and Kubernetes
Deploying deep learning models with Docker and KubernetesDeploying deep learning models with Docker and Kubernetes
Deploying deep learning models with Docker and KubernetesPetteriTeikariPhD
 
Pmo slides jun2010
Pmo slides jun2010Pmo slides jun2010
Pmo slides jun2010Steve Turner
 
UrbanCode Deploy course and product overview slides
UrbanCode Deploy course and product overview slidesUrbanCode Deploy course and product overview slides
UrbanCode Deploy course and product overview slidesIBM Rational software
 
Spring Boot & Spring Cloud on PAS- Nate Schutta (1/2)
Spring Boot & Spring Cloud on PAS- Nate Schutta (1/2)Spring Boot & Spring Cloud on PAS- Nate Schutta (1/2)
Spring Boot & Spring Cloud on PAS- Nate Schutta (1/2)VMware Tanzu
 

Similar to Ds white papers_caa_radebyexample (20)

A simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechA simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB Tech
 
A simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworkA simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-framework
 
IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...
IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...
IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...
 
Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)
Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)
Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)
 
Dot Net Fundamentals
Dot Net FundamentalsDot Net Fundamentals
Dot Net Fundamentals
 
Full Stack Web Development: Vision, Challenges and Future Scope
Full Stack Web Development: Vision, Challenges and Future ScopeFull Stack Web Development: Vision, Challenges and Future Scope
Full Stack Web Development: Vision, Challenges and Future Scope
 
Developing apps with techstack wp-dm
Developing apps with techstack wp-dmDeveloping apps with techstack wp-dm
Developing apps with techstack wp-dm
 
NetWeaver Developer Studio for New-Beas
NetWeaver Developer Studio for New-BeasNetWeaver Developer Studio for New-Beas
NetWeaver Developer Studio for New-Beas
 
tarun 16 may sr.system eng Resume
tarun 16 may sr.system eng Resumetarun 16 may sr.system eng Resume
tarun 16 may sr.system eng Resume
 
Tools, Process & Technical Delivery at CMD
Tools, Process & Technical Delivery at CMDTools, Process & Technical Delivery at CMD
Tools, Process & Technical Delivery at CMD
 
Balsamiq mockups tutorial
Balsamiq mockups tutorialBalsamiq mockups tutorial
Balsamiq mockups tutorial
 
Atmel - Next-Generation IDE: Maximizing IP Reuse [WHITE PAPER]
Atmel - Next-Generation IDE: Maximizing IP Reuse [WHITE PAPER]Atmel - Next-Generation IDE: Maximizing IP Reuse [WHITE PAPER]
Atmel - Next-Generation IDE: Maximizing IP Reuse [WHITE PAPER]
 
Bpc 10.0 NW Mass User Management tool
Bpc 10.0 NW Mass User Management toolBpc 10.0 NW Mass User Management tool
Bpc 10.0 NW Mass User Management tool
 
ABP.pptx
ABP.pptxABP.pptx
ABP.pptx
 
Deploying deep learning models with Docker and Kubernetes
Deploying deep learning models with Docker and KubernetesDeploying deep learning models with Docker and Kubernetes
Deploying deep learning models with Docker and Kubernetes
 
DevOps explained
DevOps explainedDevOps explained
DevOps explained
 
Pmo slides jun2010
Pmo slides jun2010Pmo slides jun2010
Pmo slides jun2010
 
Overview
OverviewOverview
Overview
 
UrbanCode Deploy course and product overview slides
UrbanCode Deploy course and product overview slidesUrbanCode Deploy course and product overview slides
UrbanCode Deploy course and product overview slides
 
Spring Boot & Spring Cloud on PAS- Nate Schutta (1/2)
Spring Boot & Spring Cloud on PAS- Nate Schutta (1/2)Spring Boot & Spring Cloud on PAS- Nate Schutta (1/2)
Spring Boot & Spring Cloud on PAS- Nate Schutta (1/2)
 

Recently uploaded

Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...akbard9823
 
FULL ENJOY - 9953040155 Call Girls in Shahdara | Delhi
FULL ENJOY - 9953040155 Call Girls in Shahdara | DelhiFULL ENJOY - 9953040155 Call Girls in Shahdara | Delhi
FULL ENJOY - 9953040155 Call Girls in Shahdara | DelhiMalviyaNagarCallGirl
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Vasant Kunj | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Vasant Kunj | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Vasant Kunj | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Vasant Kunj | Delhisoniya singh
 
Young⚡Call Girls in Lajpat Nagar Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Lajpat Nagar Delhi >༒9667401043 Escort ServiceYoung⚡Call Girls in Lajpat Nagar Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Lajpat Nagar Delhi >༒9667401043 Escort Servicesonnydelhi1992
 
The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)thephillipta
 
Gomti Nagar & High Profile Call Girls in Lucknow (Adult Only) 8923113531 Esc...
Gomti Nagar & High Profile Call Girls in Lucknow  (Adult Only) 8923113531 Esc...Gomti Nagar & High Profile Call Girls in Lucknow  (Adult Only) 8923113531 Esc...
Gomti Nagar & High Profile Call Girls in Lucknow (Adult Only) 8923113531 Esc...gurkirankumar98700
 
Alex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson StoryboardAlex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson Storyboardthephillipta
 
FULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
FULL ENJOY - 9953040155 Call Girls in Indirapuram | DelhiFULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
FULL ENJOY - 9953040155 Call Girls in Indirapuram | DelhiMalviyaNagarCallGirl
 
FULL ENJOY - 9953040155 Call Girls in Uttam Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Uttam Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in Uttam Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Uttam Nagar | DelhiMalviyaNagarCallGirl
 
Call girls in Kanpur - 9761072362 with room service
Call girls in Kanpur - 9761072362 with room serviceCall girls in Kanpur - 9761072362 with room service
Call girls in Kanpur - 9761072362 with room servicediscovermytutordmt
 
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comBridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comthephillipta
 
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...wdefrd
 
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...akbard9823
 
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...anilsa9823
 
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service HisarVip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisarsrsj9000
 
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad EscortsIslamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escortswdefrd
 
Akola Call Girls #9907093804 Contact Number Escorts Service Akola
Akola Call Girls #9907093804 Contact Number Escorts Service AkolaAkola Call Girls #9907093804 Contact Number Escorts Service Akola
Akola Call Girls #9907093804 Contact Number Escorts Service Akolasrsj9000
 
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...anilsa9823
 

Recently uploaded (20)

Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
 
FULL ENJOY - 9953040155 Call Girls in Shahdara | Delhi
FULL ENJOY - 9953040155 Call Girls in Shahdara | DelhiFULL ENJOY - 9953040155 Call Girls in Shahdara | Delhi
FULL ENJOY - 9953040155 Call Girls in Shahdara | Delhi
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Vasant Kunj | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Vasant Kunj | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Vasant Kunj | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Vasant Kunj | Delhi
 
Young⚡Call Girls in Lajpat Nagar Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Lajpat Nagar Delhi >༒9667401043 Escort ServiceYoung⚡Call Girls in Lajpat Nagar Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Lajpat Nagar Delhi >༒9667401043 Escort Service
 
The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)
 
Gomti Nagar & High Profile Call Girls in Lucknow (Adult Only) 8923113531 Esc...
Gomti Nagar & High Profile Call Girls in Lucknow  (Adult Only) 8923113531 Esc...Gomti Nagar & High Profile Call Girls in Lucknow  (Adult Only) 8923113531 Esc...
Gomti Nagar & High Profile Call Girls in Lucknow (Adult Only) 8923113531 Esc...
 
Alex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson StoryboardAlex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson Storyboard
 
FULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
FULL ENJOY - 9953040155 Call Girls in Indirapuram | DelhiFULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
FULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
 
FULL ENJOY - 9953040155 Call Girls in Uttam Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Uttam Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in Uttam Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Uttam Nagar | Delhi
 
Call girls in Kanpur - 9761072362 with room service
Call girls in Kanpur - 9761072362 with room serviceCall girls in Kanpur - 9761072362 with room service
Call girls in Kanpur - 9761072362 with room service
 
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comBridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
 
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
 
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
 
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
Lucknow 💋 Russian Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Ser...
 
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
 
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service HisarVip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
 
Indian Deira Call Girls # 0522916705 # Indian Call Girls In Deira Dubai || (UAE)
Indian Deira Call Girls # 0522916705 # Indian Call Girls In Deira Dubai || (UAE)Indian Deira Call Girls # 0522916705 # Indian Call Girls In Deira Dubai || (UAE)
Indian Deira Call Girls # 0522916705 # Indian Call Girls In Deira Dubai || (UAE)
 
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad EscortsIslamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
 
Akola Call Girls #9907093804 Contact Number Escorts Service Akola
Akola Call Girls #9907093804 Contact Number Escorts Service AkolaAkola Call Girls #9907093804 Contact Number Escorts Service Akola
Akola Call Girls #9907093804 Contact Number Escorts Service Akola
 
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
 

Ds white papers_caa_radebyexample

  • 1. White Paper 3DS.COM©DassaultSystèmes CAA Rade by Example Version 1.0 – 3/1/2014 Written by: Bernard Tanner Validated by: NA Edited by: Anne Marie Miller 3DS.COM©DassaultSystèmes
  • 2. White Paper 2 3DS.COM©DassaultSystèmes Executive Summary This document is intended to serve as an introduction to using CAA RADE. It includes information on the CAA RADE licensing mechanism, and how to integrate CAA RADE to work with the Microsoft Visual Studio environment. Two example CAA RADE applications are built and run. Then, source code changes are made, followed by a re- compilation and re-run of the programs. Introduction The administration of CAD/CAM systems is an important responsibility of a systems administrator in a design and manufacturing company. This paper covers some advanced tips and techniques for both Windows and UNIX workstations that will make your CATIA V5 Administration more efficient. These techniques will help simplify or eliminate some of the time consuming installation and customization tasks. This paper is intended for the administrators, who want to understand the concepts that are beyond the basics tasks and can help with the maintenance of existing installations.
  • 3. White Paper 3DS.COM©DassaultSystèmes Contents 1. What is CAA RADE?...................................................................................................... 4 2. Workspaces and Frameworks........................................................................................ 4 3. The Difference between a Script and a Program............................................................ 5 4. Compile-time and Run-time Failures.............................................................................. 5 5. The CAA RADE Licensing Mechanism .......................................................................... 5 6. Integration with Microsoft Visual Studio Environment..................................................... 7 7. Creating the Workspace................................................................................................. 9 8. Building the solution..................................................................................................... 18 9. Executing the Program................................................................................................. 19 10. Making a change to the source code........................................................................ 20 11. Rebuilding and running the new program ................................................................. 21 12. Exercise ................................................................................................................... 22 13. Conclusion ............................................................................................................... 24 14. References............................................................................................................... 24 15. Revision History ....................................................................................................... 25 16. Related Documentation............................................................................................ 25 17. Document History..................................................................................................... 25
  • 4. White Paper 4 3DS.COM©DassaultSystèmes 1. What is CAA RADE? The Component Application Architecture, Rapid Application Development Environment makes possible the quick development of programs and standalone applications that can be integrated with CATIA. CAA RADE enables improved productivity by means of enhancing the existing CATIA functionality and enables the development of new applications. Harnessing the full capabilities available with the CAA RADE software requires an in depth knowledge of the APIs (Application Programming Interfaces) contained within CAA RADE. As an example of the power a CAA RADE solution can have (a catch-all phrase for application/program/environment), a programmer could create a solution that when a user ran it, it would take the parameters that the user specified, and based on them the solution would then create a complex CATPart. The user could then use this newly created Part as a starting point for further design modeling. 2. Workspaces and Frameworks To make the development of your CAA RADE solutions logical and easier to manage it is a good idea to create new folders for each solution you develop. These folders are referred to as Workspaces. Each Workspace will have at least one Framework. As suggested by its name, a framework can be looked upon as a skeleton, a basic building block, providing an environment for faster solution development. Certain functions or interfaces, such as buttons and pop-up panels, will be common to any solution you create and are provided within the framework. A programmer new to CAA RADE should examine the source code supplied with the education Frameworks in conjunction with the CAA RADE documentation in order to begin learning how to develop their own CAA RADE solutions (the supplied “Use cases” are a good starting point). With the appropriate knowledge of the APIs, programmers can create new functionality, or extend existing functions or interfaces.
  • 5. White Paper 5 3DS.COM©DassaultSystèmes 3. The Difference between a Script and a Program A Script, also known as a macro, is what is commonly called interpreted. You can read a script like a sentence. It contains words and a grammatical structure. Each time a script is run these readable statements are converted - interpreted, into a language that the computer can understand. The converted language is known as machine code. A Program, on the other hand, is already machine code and is generated by running source code through a compiler. Although the source code for a program is in a readable format the Program / machine code is in a non-readable format. Unlike a Script the source code is compiled into a Program once and then the Program can be executed repeatedly without any intermediate or interpretative step. When the program is run the computer understands directly the operations it needs to do in order to execute the program. In a way, Scripts could also be seen as source code, but instead of being compiled once, are always interpreted on the fly each time the Script is run. The rest of this document addresses only CAA programs built (compiled) and executed within the Visual Studio IDE (Integrated Development Environment). 4. Compile-time and Run-time Failures Since we have discussed compilation of source code it is imperative that we understand there are two types of potential problems during the development cycle of a solution. Problems can occur at the time of compilation - Compile-time failures, and also at the time of running - Run-time failures. When reporting problems it is important to provide a clear description of the problem and indicate if the error was a run-time or compile-time error. A step-by-step scenario leading up to the error, a copy of the error message text and codes seen at the time of the error and a copy of the workspace should be included in any problem report submitted to Dassault Systemes. 5. The CAA RADE Licensing Mechanism In order to use CAA RADE you must configure it to use a valid license. Begin this process with the following selections on your workstation: Start => All Programs => CAA RADE => Tools => RADE Licenses Manager V5R19
  • 6. White Paper 6 3DS.COM©DassaultSystèmes Figure 1 – CATVBTLicenser panel Select the license appropriate for your environment and then select Apply button. You should see an informational pop up window indicating the Settings were saved successfully. Close the window.
  • 7. White Paper 7 3DS.COM©DassaultSystèmes 6. Integration with Microsoft Visual Studio Environment In order to develop CAA RADE solutions with the Microsoft Visual Studio environment, you must run the CATVBTSetup utility. On a default R19 environment this utility is located in: C:Program FilesDassault SystemesB19intel_acodebin. Execution of the “CATVBTSetup” will yield the window below. Figure 2 – CATVBTSetup panel Under Target applications make sure that Visual Studio is selected, along with the other components you wish to install, and then select the Install button. You will be asked to confirm this location. Figure 3 is an image of the window after the location has been confirmed.
  • 8. White Paper 8 3DS.COM©DassaultSystèmes Figure 3 – CATVBTSetup output Be certain the setup operation completes with the message “Setup done without errors”. With the setup completed you are ready to start building and running RADE applications within the Visual Studio environment.
  • 9. White Paper 9 3DS.COM©DassaultSystèmes 7. Creating the Workspace Begin creating a CATIA V5 Workspace with the creation of the following two folders: C:MyRootDirector C:MyRootDirectoryCAAxPDMInterfaces Assuming a default R19 installation location, navigate within your Explorer window to: C:Program FilesDassaultSystemesB19CAAdoc Copy the CAAxPDMItnterfaces.edu framework and paste it into: C:MyRootDirectoryCAAxPDMInterfaces Launch Microsoft Visual Studio from your Windows Start => All Programs menu If the CATVBTSetup you ran earlier worked OK, you should see the Welcome Panel.
  • 10. White Paper 10 3DS.COM©DassaultSystèmes Figure 4 – Welcome to CAA RADE Select the Close button in the Welcome panel.
  • 11. White Paper 11 3DS.COM©DassaultSystèmes If you don’t see the Welcome screen, or you wish to check the validity of the CAA RADE/Visual Studio integration, select Add-in Manager under the Visual Studio Tools menu. Figure 5 – Add-in Manager If the CATVBTSetup.exe operation you ran earlier was successful, you should see at least some of the CAA Add-in options as shown in Figure 5. Select the OK button in the Add-in Manager window. We are now ready to prepare our Workspace for compile-time and run-time operations. From the Visual Studio File menu choose Open CAA Workspace... Select Mkmk and enter or brows to C:MyRootDirectoryCAAxPDMInterfaces. Set the Tool level at R19 as seen in Figure 6.
  • 12. White Paper 12 3DS.COM©DassaultSystèmes Figure 6 – Open V5 Workspace Figure 7 – Tools Initialization Note the potential debugging information given, such as the compiler level that will be used. Closing the window in Figure 7 will result in the following warning:
  • 13. White Paper 13 3DS.COM©DassaultSystèmes Figure 8 – Prerequisite Warning Selecting OK will result in the Project Generation pop up message window Figure 9 – Project Generation Select OK in the Project Generation window and then expand the tree as shown if Figure 10. Select the CAAxPDMReadItemInfo module. Also select Generate projects for prerequisites option at the bottom of the window.
  • 14. White Paper 14 3DS.COM©DassaultSystèmes Figure 10 – Module Selection At this point the Prerequisite Warning message seen earlier in Figure 8 must be addressed. From the Visual Studio CAAV5 Workspace menu select Define Prerequisite Frameworks (OK to the warning). Select the Access Prerequisites from their original location under the Mode section. Select the Add button. Select C:Program FilesDassault SystemB19 in the Origin for prerequisites Frameworks section of the window.
  • 15. White Paper 15 3DS.COM©DassaultSystèmes Figure 11 – Prerequisite Workspaces Select OK and a Installation Prerequisites window will be displayed. Upon completion of the prerequisite installation the following window will be displayed:
  • 16. White Paper 16 3DS.COM©DassaultSystèmes Figure 12 – Prerequisite installation Select the Close button in the Installing Prereqs window and the Prerequisite Installation completes with the displaying of the Define Prerequisite Framework window, seen in Figure 13.
  • 17. White Paper 17 3DS.COM©DassaultSystèmes Figure 13 – Current Framework Select OK to close the window.
  • 18. White Paper 18 3DS.COM©DassaultSystèmes 8. Building the solution We are now ready to build (compile) the module. From the Visual Studio Build menu select Mkmk and select the options seen in Figure 14 before selecting OK. Figure 14 – Choose module(s) to build With the selection of OK in the Code Builder window, a Command Manager and a log window will appear. When the Command Manager completes, scroll through the log window to check for a successful return code (RC = 0). Providing the log window indicates a successful completion, you now have a functioning Module and are ready to execute the Program.
  • 19. White Paper 19 3DS.COM©DassaultSystèmes 9. Executing the Program From within the Visual Studio Window menu, select Open Runtime Window The name of the module that you have just compiled is called CAAxPDMReadItemInfo When in this Runtime Window the following command will list all modules: dir intel_acodebin*.exe Now let’s execute the program. Assuming you have a valid Part called C:Part1.CATPart, enter the following command: CAAxPDMReadItemInfo C:Part1.CATPart If the environment and build (compilation) is good, you should see output similar to the following: Figure 15 – First program run output
  • 20. White Paper 20 3DS.COM©DassaultSystèmes 10. Making a change to the source code Alterations to the source code are done by expanding the CAAxPDMReadItemInfo.m module in the Solution Explorer in order to access the source code file (CAAxPDMReadItemInfo.cpp) within the src folder. Double click the CAAxPDMReadItemInfo.cpp C++ source code file, and as per the image below see that it is now available for editing in the right hand windows Execute a find (Cntrl-F) for “Created”. Underneath the “A session is created” line, add another count statement to output another message that will be seen after the solution is recompiled and run again. Figure 16 – Editing the Source Code Do a Cntrl-S to save the changes you have made to the source code.
  • 21. White Paper 21 3DS.COM©DassaultSystèmes 11. Rebuilding and running the new program Because we have made an alteration to the source code we need to re-build the solution, updating the program module (CAAxPDMReadItemInfo.exe) Once again select Build =>Mkmk and select the options seen in Fig 18 before selecting OK. Figure 17 – Rebuilding after source code change When the module has been rebuilt, go the runtime window and again enter: CAAxPDMReadItemInfo C:Part1.CATPart We should see a different output, reflecting the change made in the source code.
  • 22. White Paper 22 3DS.COM©DassaultSystèmes Figure 18 – Output from the modified Source Code In the image seen in Fig 19 we can see the second line reflects what was changed in the source code. 12. Exercise In this exercise you will build and run the CAASkiBasicGeometries module, then make a source code change, recompile the module and re-run it. The CAASkiBasicGeometries module is part of the CAASketcherInterfaces.edu framework. The reader can refer to the previous material presented in this document if they need to refresh themselves with the procedure involved. Create a new appropriately named workspace for this new solution. Copy the CAASketcherInterfaces.edu framework into this new workspace. In the Visual Studio environment, open the newly created workspace. Do the necessary steps to prepare this new workspace for build-time and run-time execution. Build the solution. Open the Runtime Window. Enter the following command (choose a different Part name/location if desired): CAASkiBasicGeometries C:CAASkiBasicGeometries1.CATPart When the command completes, within CATIA open the CAASkiBasicGeometries1.CATPart Update the PartBody if necessary.
  • 23. White Paper 23 3DS.COM©DassaultSystèmes Double-click the profile to activate the sketch. Do a “Fit All in” if the sketch is not visible. Notice the radius value of 10mm as seen in Figure 19. Figure 19 – Profile with radius of 10mm Now make a change to the source code so that when the solution is run a different radius size is created. Use the Solution Explorer to locate and open the Source Code used to compile the CAASkiBasicGeometries.exe module. A Ctrl-F will present the find dialogue box. Underneath the // Creates corner + constraints comment line there will be the C++ statement used to create the radius. Change the value from 10 to 25. What is the C++ statement that is used to create this radius called, and how is it structured? Save the changes to the source code and then re-build (recompile) the module. Re-run the solution, but choose a different output file name: CAASkiBasicGeometries C:CAASkiBasicGeometries2.CATPart The images seen in Figure 20 display the radius differences between the original build and the re-compilation build.
  • 24. White Paper 24 3DS.COM©DassaultSystèmes Figure 20 – Result of a source code change, re-build, and re-run of the solution 13. Conclusion This document was written to be a hands-on introduction to using CAA RADE. Integration between CAA RADE and Visual Studio is described in detail. The reader is exposed to the process of building and running a solution along with making source code changes, rebuilding the solution and verifying the changes made with a re-run of the modified module. Examples provided leave the reader with the knowledge required to get started with CAA programming. 14. References CATIA V5 CAA Online Documentation: - Technical Articles - Use cases - Quick References
  • 25. White Paper 25 3DS.COM©DassaultSystèmes 15. Revision History May 2011 – original doc authored March 2014 – updated new template 16. Related Documentation For additional information, refer to the following Q&A’s from our Knowledge Base: KA QA00000007029 What is RADE? KA QA00000002180 RADE Licenses KA QA00000003673 How to build the CAA workspace on UNIX using visual studio and RSH? 17. Document History Document Revision Date Revised By Changes/Notes 0.0 May 2011 A3R Original 1.0 Mar 2014 A3R Updated to new template