Archive

Archive for January, 2010

Generating code with Insert Object Resolution

January 27, 2010 9 comments

You are probably already aware that you can record macros in CATIA V5 much like you can in Microsoft Office and other softwares.  Recording macros is very simple, so I’m not going to discuss in detail how to do it in this article other than to direct you to the “Tools-Macros” pull down menu.  What I will discuss in this article is another related tool called Insert Object Resolution (I will refer to it as IOR) that you can also use to generate code.  I will discuss how to use IOR and show how it complements the recording capability. Read more…

Advertisements

How to use the StartCommand method

January 20, 2010 19 comments

In this article I will show how to launch almost any interactive CATIA command from your code.  I sometimes use this method when the command I need to use in my program is not exposed through an automation API.  There are also some rare situations where it might be useful to launch the actual interactive command from your program.  This allows the user to interact with the familiar CATIA dialogs to complete some task, but I will point out a potential problem that will depend on the command and your program flow. Read more…

Two methods to check geometry types

January 11, 2010 13 comments

In this article, I am going to discuss two different methods to interrogate a geometrical feature and understand what type of geometry it is.  By type of geometry I mean point, surface, line, solid and so on.  This is different from the automation object type that you would get from using the Visual Basic TypeName function, which I discussed in a previous article.
Read more…

Easily display array values in a Msgbox for debugging

January 4, 2010 6 comments

Happy New Year!  I hope you enjoyed some time off with family and friends for the holidays.  From time to time, I will post some shorter topics that are more like quick tips than full articles.  I figured everyone is just getting back to work this week and probably has a lot going on so this is a good time for a short and simple topic.  In this article, I will show a simple way to display array values in MsgBox.  This is a very handy debugging tool I sometimes use when I need to check array values as a program is running.  And best of all, it only requires one line of code.
Read more…