Archive

Archive for September, 2010

Executing CATIA scripts in batch mode

September 26, 2010 22 comments

I got the idea for this article from a reader of this blog.  He sent me an email asking what would be the best way to extract some information from thousands of drawings in an automated way.  That information in his scenario is the value of a handful of parameters that are attached to the root drawing node in each drawing.  I recommended to execute a script in batch mode that would open each drawing one by one and read those parameter values and write the data to a text file.

In our email exchanges, we both agreed that this seemed like a great topic to share with everyone for a few reasons.  First, this is a relatively common scenario so many people could benefit by sharing the code that opens the drawings and writes out the parameter values.  Also, I have a feeling that many have never run a script in batch mode so this article might unlock some new capabilities.  So in this article, I will discuss the basics of running a batch and share the code we developed and tested. Read more…

Advertisements

(Announcement) New Learning Series topic added today – Loops

September 2, 2010 Leave a comment

Just a quick announcement that I added a new topic to the learning series today discussing loops.  This topic discusses important techniques for using loops and includes many example code snippets that you can run in CATIA to practice and better understand the concepts.  Check it out!

  • Understanding the Visual Basic language

Loops <– New topic added today

For more information, visit the Learning Series page.