Professional Documents
Culture Documents
Emmett Ross
http://www.scripting4v5.com
Heres a list of seven resources I use almost every day when programming macros in CATIA V5.
1. CATIA Visual Basic Help File
The CATIA Visual Basic Help Documentation (also known as CATIA Automation Documentation) can be
accessed using either the online help (if the complete CATIA Documentation is not installed) or by
opening the file:
<Catia_install_folder>\intel_a\code\biV5Automation.chm.
Navigate to the directory B18\intel_a\code\bin, right-click on the file V5Automation.chm, and choose
"Create Shortcut", which will create a shortcut to this file in this same directory. Move the shortcut to
your desktop and double-click on it to open it.
To navigate the CATIA object diagram click on the Contents tab, expand the CAA V5 Visual Basic
Reference node and then select CAA V5 Objects. The CATIA Object Diagram shown in the help files is
colored coded and distinguishes objects from abstract objects and collections. I use this all the time!
Lets say you want to figure out how to create a new rib feature. Open the VBA Object Browser and type
rib into the search bar. Look in the third column (member) for anything something that makes
sense, in this case AddNewRib looks good. The second column (class) will tell you what object is
needed to use the function. At the bottom of the window youll see how to use the function and what
inputs are needed. This is the first step to take when youre stuck.
My favorite tool for this task is Draw.IO because its free and it lets you create flowcharts right in your
internet browser and you can save your charts directly into Google Drive, DropBox, etc.
Begin sketching flowcharts here: https://www.draw.io/
Another option is to use something simple like Excel, Word, PowerPoint, or Snagit, like I did with this
flowchart:
4. VB Script Functions
No, I havent memorized every single function that can be used in VB. Instead, I prefer to know where that
information is and simply look it up really fast. This page contains all the built-in VBScript functions, like Date,
Array, IsEmpty, etc.
6. Notepad++
Sometimes you dont necessarily need CATIA to write your code, just a good notepad tool to help you
get the job done. You could use Notepad, Wordpad, or Microsoft word, but instead I recommend and
absolutely love Notepad++. I use it all the time for tasks like: looking through other programmers code,
record macros, compare text files for differences, view/edit files. Its much better than using plain ole
Notepad. Its also where I compile all my examples and tutorials before copying them to my website or
book pages.
Download for free here: http://notepad-plus-plus.org/
Thank you for reading! Questions or comments? Let me know if there are any other resources you use
almost every day. Contact me: Emmett@scripting4v5.com
Want to learn all the ins-and-outs of CATIA macro programming in one convenient location? Then join
my Quick Start Guide CATIA Macro Email course now, the fastest path towards automating your boring
tasks.
http://www.scripting4v5.com/catia-macro-email-course