Thursday, June 14, 2012

Screen Capture Catia Video Tutorial

Looking for a CATIA macro programming guide? I’ve created a new how-to catia video tutorial to go along with a script found in my VB Scripting for CATIA V5 ebook. The new video highlights how to use a capture photo CATIA macro. The code also includes how to toggle the specification tree allowing you to unhide or hide specification tree.

I wanted to clarify one thing from the video. You can easily modify the CATScript macro to either automatically zoom in or zoom out when taking the screen shot capture. I like to include these lines of code then simply use an apostrophe to turn them on or off. This is the lines of code I am referring to:

'zoom in
(where objViewer3D.Viewpoint3D = objCamera3D.Viewpoint3D)

Also, I save the catia capture file as .png but you can save it as TIFF, BMP, or JPEG if you want to by changing the number in this line of code or by adding your own file extension to the name (.png, .bmp).

Dim fileloc, Exten, Strname As String
Fileloc=”C:\Screen Capture\”
Exten = “.png”
Strname = fileloc & partName & exten
Objviewer3D.Capturetofile 4, strname

Here’s the process flow of the screen capture CATIA macro followed by the YouTube video tutorial:

1.       Run the macro (hit alt+F8 to set your macro libraries)
2.       Switches CATIA background color to white, hide the compass, hide specification tree.
3.       Input box 1: Enter the name you want to name the output file
4.       Input box 2:
a.        If user clicks Yes, automatically reframe and set to iso view, then take screen capture.
b.       If user clicks No, take picture as is (no reframe, use current view).
5.       Catia Screenshot is taken and saved as a .png file in a folder specified in the macro code.
6.       Resets properties including background color, unhide compass, and unhide spec tree.


Like I said earlier, the code in its entirety is found within my eBook, or you can try to figure it out yourself with the tips given in my CATIA macro articles and newsletters. This script is useful in car design in Catia to take catia images. 

Other useful CATScripts you will find in VB Scripting for CATA V5: Expanded Edition include:
·         Copy and paste axis system
·         Count number of parts catia macro
·         Catia tree reorder catscript
·         Capture picture vba catia

Monday, June 11, 2012

Kinect Hack Video: CATIA V5 Manipulation

KinectCAD for CATIA V5

I recently stumbled upon one of the coolest Kinect applications I’ve ever seen. The Kinect is Microsoft’s Xbox 360’s latest webcam style peripheral. This new high tech toy permits users to “be the controller” through natural user interface (NUI) by controlling the game with their voice and body movements. Microsoft took it a step further and released the Kinect software development kit (SDK) for Windows 7 allowing developers to write Kinect applications in C++, C#, or Visual Basic .NET. There are numerous “Kinect hacking” videos on YouTube. One such user has now manipulated the Kinect to provide a gesture based movement of CATIA part objects.

How to use Kinect with CATIA V5? Using this new application in development it is now possible to rotate and zoom in or out of your new Kinect 3D CAD model while standing in front of your monitor and using your arms. It gets even better: utilizing Kinect’s built in microphone there is a rudimentary speech recognition function you can use to change the rotation axes. Can you imagine creating every part in CATIA this way (or any other CAD system for that matter)?

Using the SDK V1 software for Kinect, KinectCAD has been created in Visual C# 2010. It may be a slow way to work (at first) but is a brilliant concept nonetheless. Pretty soon we’ll be seeing 3d Kinect models of all our CAD parts. It would be a great way for automakers to perform layout check in conference rooms (and funny to watch  too). Hats off to the creators and I can’t wait to see more. Checkout the Kinect video recording below:

Please note: this program is still in development.  To learn more please visit this site. So, what do you think of KinectCAD? What other applications could you see between Xbox Kinect and CATIA V5? Please leave a comment below!

Monday, June 4, 2012

CATIA V5 Macro Tutorial Update

I’ve wrote a series of how-to articles on my new site, These articles help beginners learn how to write VB script macros for CATIA V5. Below is a link and the title to each individual article. Also, don’t forget to sign up to my new VB Scripting for CATIA V5 newsletter where you’ll receive free CATIA macros tips in your inbox! Be sure to bookmark the articles page as well. More articles are in the works and will be added over time.

A new, updated revision of my book, VB Scripting for CATIA V5, is in the works (I have no idea when it will be complete – could be weeks or months), but until then here is a recap of the different versions (pdf and downloads) currently available. Actually, there are currently four versions/formats of VB Scripting for CATIA V5 available today, and they are as follows:

VB Scripting for CATIA V5, Kindle eBook.............................................$9.99
VB Scripting for CATIA V5, Paperback................................................$11.99
VB Scripting for CATIA V5: Expanded eBook Edition..........................$34.99
VB Scripting for CATIA V5: Expanded Edition ebook is the best value. No shipping fees and there is also a 60 day money-back guarantee - if you find the book isn't helpful you can get a full refund within sixty days and keep the ebook! Also, if you purchase this ebook, when I make additions and revisions based on YOUR feedback I will send you the latest updated copy absolutely FREE!
And speaking of feedback, I welcome any and all reviews, about my books or emails. What have you liked about them? Disliked? Is the Information what you expected? Anyone willing to submit a testimonial to be added to If you could please response I would be very appreciative. It will only help me improve the quality of the content. Thank you.